From 5429590fc8ca9e118e18f95ffbffad91d8cb6bfa Mon Sep 17 00:00:00 2001 From: Wlad Meixner Date: Mon, 13 Jan 2025 16:14:42 +0100 Subject: [PATCH] wip: initial client generation --- README.md | 24 +- cmd/cli/main.go | 147 + go.mod | 32 + go.sum | 189 + pkg/clockify/client.gen.go | 90800 +++++++++++++++++++++++++++++++++++ pkg/clockify/client.go | 20 + pkg/clockify/gogenerate.go | 3 + slim_api.json | 52214 ++++++++++++++++++++ tools/tools.go | 8 + 9 files changed, 143435 insertions(+), 2 deletions(-) create mode 100644 cmd/cli/main.go create mode 100644 go.mod create mode 100644 go.sum create mode 100644 pkg/clockify/client.gen.go create mode 100644 pkg/clockify/client.go create mode 100644 pkg/clockify/gogenerate.go create mode 100644 slim_api.json create mode 100644 tools/tools.go diff --git a/README.md b/README.md index b5b4147..1156bd2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ -# go-clockify -Clockify API SDK +# Go Clockify + +A client library for the Clockify API generated from a reduced OpenAPI Clockify definition. + +## Usage + +To use the client library you need an API endoint and an access token. The access token can be obtained from the Clockify web interface. +If you are not using the official Clockify API endpoint, you can use the `NewClockifyClientWithBaseURL` function to create a client with a custom base URL. + +```go +client, err := clockify.NewClockifyClient(accessToken) +if err != nil { + log.Fatal(err) +} + +// Get all workspaces of the accessToken user +resp, err := client.GetWorkspacesOfUserWithResponse(context.Background()) +if err != nil { + // Handle error +} + +``` diff --git a/cmd/cli/main.go b/cmd/cli/main.go new file mode 100644 index 0000000..d861698 --- /dev/null +++ b/cmd/cli/main.go @@ -0,0 +1,147 @@ +package main + +import ( + "bufio" + "context" + "fmt" + "log" + "os" + "strconv" + "strings" + + "github.com/foomo/go-clockify/pkg/clockify" + "github.com/spf13/cobra" +) + +var ( + apiURL = "https://api.clockify.me/api" + accessToken string + workspace *clockify.WorkspaceOverviewDto + workspaces []clockify.WorkspaceOverviewDto +) + +func main() { + var client *clockify.ClientWithResponses + + rootCmd := &cobra.Command{ + Use: "cli-tool", + Short: "A CLI tool for managing projects and users", + PersistentPreRunE: func(cmd *cobra.Command, args []string) error { + if accessToken == "" { + accessToken = promptForInput("Enter your access token: ") + c, err := clockify.NewClockifyClient(accessToken) + if err != nil { + log.Fatal(err) + } + client = c + + resp, err := client.GetWorkspacesOfUserWithResponse(context.Background()) + if err != nil { + log.Fatal(err) + } + if resp.JSON200 != nil { + workspaces = *resp.JSON200 + } + } + + if workspace == nil { + fmt.Println("Select a workspace:") + for i, ws := range workspaces { + fmt.Printf("%d. %s (%s)\n", i+1, *ws.Name, *ws.Id) + } + choice := promptForInput("Enter the number of the workspace: ") + idx := strings.TrimSpace(choice) + if i, err := strconv.Atoi(idx); err == nil && i > 0 && i <= len(workspaces) { + workspace = &workspaces[i-1] + } else { + return fmt.Errorf("invalid workspace selection") + } + } + return nil + }, + } + + projectsCmd := &cobra.Command{ + Use: "projects", + Short: "Manage projects", + } + + projectsLsCmd := &cobra.Command{ + Use: "ls", + Short: "List all projects", + Run: func(cmd *cobra.Command, args []string) { + fmt.Println("Listing projects for workspace:", *workspace.Name, *workspace.Id) + ps, err := client.GetProjectsListWithResponse(context.Background(), *workspace.Id, &clockify.GetProjectsListParams{}) + if err != nil { + log.Fatal(err) + return + } + users, err := client.GetMembersInfoWithResponse(context.Background(), *workspace.Id, &clockify.GetMembersInfoParams{}) + if err != nil { + log.Fatal(err) + return + } + for _, m := range *users.JSON200 { + fmt.Printf("- %s (%s) (%s)\n", *m.Name, *m.Email, *m.Id) + } + + if users.JSON200 == nil { + log.Fatal("No users found") + return + } + + someUser := (*users.JSON200)[0] + + for _, p := range *ps.JSON200 { + fmt.Println("- " + *p.Name) + resp, err := client.GetTimeEntriesWithResponse(context.Background(), *workspace.Id, *someUser.Id, &clockify.GetTimeEntriesParams{ + Project: p.Id, + }) + if err != nil { + log.Fatal(err) + } + for _, entry := range *resp.JSON200 { + fmt.Println(" - ", *entry.TimeInterval.Start, *entry.Type, ": ", *entry.Description) + } + } + }, + } + + usersCmd := &cobra.Command{ + Use: "users", + Short: "Manage users", + } + + usersLsCmd := &cobra.Command{ + Use: "ls", + Short: "List all users", + Run: func(cmd *cobra.Command, args []string) { + fmt.Println("Listing users for workspace:", *workspace.Name) + ps, err := client.GetMembersInfoWithResponse(context.Background(), *workspace.Id, &clockify.GetMembersInfoParams{}) + if err != nil { + fmt.Println(err) + return + } + for _, m := range *ps.JSON200 { + fmt.Printf("- %s (%s) (%s)\n", *m.Name, *m.Email, *m.Id) + } + }, + } + + projectsCmd.AddCommand(projectsLsCmd) + usersCmd.AddCommand(usersLsCmd) + + rootCmd.AddCommand(projectsCmd, usersCmd) + + if err := rootCmd.Execute(); err != nil { + fmt.Println(err) + os.Exit(1) + } +} + +func promptForInput(prompt string) string { + reader := bufio.NewReader(os.Stdin) + fmt.Print(prompt) + input, _ := reader.ReadString('\n') + return strings.TrimSpace(input) +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e8e089c --- /dev/null +++ b/go.mod @@ -0,0 +1,32 @@ +module github.com/foomo/go-clockify + +go 1.23.4 + +require ( + github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 + github.com/oapi-codegen/runtime v1.1.1 + github.com/spf13/cobra v1.7.0 +) + +require ( + github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect + github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect + github.com/getkin/kin-openapi v0.127.0 // indirect + github.com/go-openapi/jsonpointer v0.21.0 // indirect + github.com/go-openapi/swag v0.23.0 // indirect + github.com/google/uuid v1.5.0 // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/invopop/yaml v0.3.1 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/mailru/easyjson v0.7.7 // indirect + github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect + github.com/perimeterx/marshmallow v1.1.5 // indirect + github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect + github.com/spf13/pflag v1.0.5 // indirect + github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/text v0.18.0 // indirect + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..c565e6a --- /dev/null +++ b/go.sum @@ -0,0 +1,189 @@ +github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= +github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= +github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= +github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960/go.mod h1:9HQzr9D/0PGwMEbC3d5AB7oi67+h4TsQqItC1GVYG58= +github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 h1:PRxIJD8XjimM5aTknUK9w6DHLDox2r2M3DI4i2pnd3w= +github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936/go.mod h1:ttYvX5qlB+mlV1okblJqcSMtR4c52UKxDiX9GRBS8+Q= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/getkin/kin-openapi v0.127.0 h1:Mghqi3Dhryf3F8vR370nN67pAERW+3a95vomb3MAREY= +github.com/getkin/kin-openapi v0.127.0/go.mod h1:OZrfXzUfGrNbsKj+xmFBx6E5c6yH3At/tAKSc2UszXM= +github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= +github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= +github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= +github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= +github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/uuid v1.5.0 h1:1p67kYwdtXjb0gL0BPiP1Av9wiZPo5A8z2cWkTZ+eyU= +github.com/google/uuid v1.5.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= +github.com/invopop/yaml v0.3.1/go.mod h1:PMOp3nn4/12yEZUFfmOuNHJsZToEEOwoWsT+D81KkeA= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw= +github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 h1:ykgG34472DWey7TSjd8vIfNykXgjOgYJZoQbKfEeY/Q= +github.com/oapi-codegen/oapi-codegen/v2 v2.4.1/go.mod h1:N5+lY1tiTDV3V1BeHtOxeWXHoPVeApvsvjJqegfoaz8= +github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= +github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.10.2/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE= +github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg= +github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s= +github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= +github.com/speakeasy-api/openapi-overlay v0.9.0 h1:Wrz6NO02cNlLzx1fB093lBlYxSI54VRhy1aSutx0PQg= +github.com/speakeasy-api/openapi-overlay v0.9.0/go.mod h1:f5FloQrHA7MsxYg9djzMD5h6dxrHjVVByWKh7an8TRc= +github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I= +github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= +github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/vmware-labs/yaml-jsonpath v0.3.2 h1:/5QKeCBGdsInyDCyVNLbXyilb61MXGi9NP674f9Hobk= +github.com/vmware-labs/yaml-jsonpath v0.3.2/go.mod h1:U6whw1z03QyqgWdgXxvVnQ90zN1BWz5V+51Ewf8k+rQ= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224= +golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20191026110619-0b21df46bc1d/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/pkg/clockify/client.gen.go b/pkg/clockify/client.gen.go new file mode 100644 index 0000000..84e8167 --- /dev/null +++ b/pkg/clockify/client.gen.go @@ -0,0 +1,90800 @@ +// Package clockify provides primitives to interact with the openapi HTTP API. +// +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. +package clockify + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + "strings" + "time" + + "github.com/oapi-codegen/runtime" + openapi_types "github.com/oapi-codegen/runtime/types" +) + +const ( + AddonKeyAuthScopes = "AddonKeyAuth.Scopes" + ApiKeyAuthScopes = "ApiKeyAuth.Scopes" +) + +// Defines values for ABTestingDtoAbTestingType. +const ( + UPGRADESCREEN ABTestingDtoAbTestingType = "UPGRADE_SCREEN" +) + +// Defines values for ActivateTemplateRequestActivateOption. +const ( + ADD ActivateTemplateRequestActivateOption = "ADD" + REPLACE ActivateTemplateRequestActivateOption = "REPLACE" + SKIP ActivateTemplateRequestActivateOption = "SKIP" +) + +// Defines values for AddonComponentDtoAccessLevel. +const ( + AddonComponentDtoAccessLevelADMINS AddonComponentDtoAccessLevel = "ADMINS" + AddonComponentDtoAccessLevelEVERYONE AddonComponentDtoAccessLevel = "EVERYONE" +) + +// Defines values for AddonDtoMinimalSubscriptionPlan. +const ( + AddonDtoMinimalSubscriptionPlanBASIC AddonDtoMinimalSubscriptionPlan = "BASIC" + AddonDtoMinimalSubscriptionPlanENTERPRISE AddonDtoMinimalSubscriptionPlan = "ENTERPRISE" + AddonDtoMinimalSubscriptionPlanFREE AddonDtoMinimalSubscriptionPlan = "FREE" + AddonDtoMinimalSubscriptionPlanPRO AddonDtoMinimalSubscriptionPlan = "PRO" + AddonDtoMinimalSubscriptionPlanSTANDARD AddonDtoMinimalSubscriptionPlan = "STANDARD" +) + +// Defines values for AddonDtoStatus. +const ( + AddonDtoStatusACTIVE AddonDtoStatus = "ACTIVE" + AddonDtoStatusINACTIVE AddonDtoStatus = "INACTIVE" +) + +// Defines values for AddonSettingDtoType. +const ( + AddonSettingDtoTypeCHECKBOX AddonSettingDtoType = "CHECKBOX" + AddonSettingDtoTypeDROPDOWNMULTIPLE AddonSettingDtoType = "DROPDOWN_MULTIPLE" + AddonSettingDtoTypeDROPDOWNSINGLE AddonSettingDtoType = "DROPDOWN_SINGLE" + AddonSettingDtoTypeLINK AddonSettingDtoType = "LINK" + AddonSettingDtoTypeNUMBER AddonSettingDtoType = "NUMBER" + AddonSettingDtoTypeTXT AddonSettingDtoType = "TXT" + AddonSettingDtoTypeUSERDROPDOWNMULTIPLE AddonSettingDtoType = "USER_DROPDOWN_MULTIPLE" + AddonSettingDtoTypeUSERDROPDOWNSINGLE AddonSettingDtoType = "USER_DROPDOWN_SINGLE" +) + +// Defines values for AddonUpdateStatusRequestStatus. +const ( + AddonUpdateStatusRequestStatusACTIVE AddonUpdateStatusRequestStatus = "ACTIVE" + AddonUpdateStatusRequestStatusINACTIVE AddonUpdateStatusRequestStatus = "INACTIVE" +) + +// Defines values for AlertDtoAlertPerson. +const ( + AlertDtoAlertPersonPROJECTMANAGER AlertDtoAlertPerson = "PROJECT_MANAGER" + AlertDtoAlertPersonTEAMMEMBERS AlertDtoAlertPerson = "TEAM_MEMBERS" + AlertDtoAlertPersonWORKSPACEADMIN AlertDtoAlertPerson = "WORKSPACE_ADMIN" +) + +// Defines values for AlertDtoAlertType. +const ( + AlertDtoAlertTypePROJECT AlertDtoAlertType = "PROJECT" + AlertDtoAlertTypeTASK AlertDtoAlertType = "TASK" +) + +// Defines values for ApprovalGroupItemDtoApprovalState. +const ( + ApprovalGroupItemDtoApprovalStateAPPROVED ApprovalGroupItemDtoApprovalState = "APPROVED" + ApprovalGroupItemDtoApprovalStatePENDING ApprovalGroupItemDtoApprovalState = "PENDING" + ApprovalGroupItemDtoApprovalStateREJECTED ApprovalGroupItemDtoApprovalState = "REJECTED" + ApprovalGroupItemDtoApprovalStateWITHDRAWNAPPROVAL ApprovalGroupItemDtoApprovalState = "WITHDRAWN_APPROVAL" + ApprovalGroupItemDtoApprovalStateWITHDRAWNSUBMISSION ApprovalGroupItemDtoApprovalState = "WITHDRAWN_SUBMISSION" +) + +// Defines values for ApprovalRequestDtoApprovalStatuses. +const ( + ApprovalRequestDtoApprovalStatusesAPPROVED ApprovalRequestDtoApprovalStatuses = "APPROVED" + ApprovalRequestDtoApprovalStatusesPENDING ApprovalRequestDtoApprovalStatuses = "PENDING" + ApprovalRequestDtoApprovalStatusesUNSUBMITTED ApprovalRequestDtoApprovalStatuses = "UNSUBMITTED" +) + +// Defines values for ApprovalSettingsApprovalPeriod. +const ( + ApprovalSettingsApprovalPeriodMONTHLY ApprovalSettingsApprovalPeriod = "MONTHLY" + ApprovalSettingsApprovalPeriodSEMIMONTHLY ApprovalSettingsApprovalPeriod = "SEMI_MONTHLY" + ApprovalSettingsApprovalPeriodWEEKLY ApprovalSettingsApprovalPeriod = "WEEKLY" +) + +// Defines values for ApprovalSettingsApprovalRoles. +const ( + ApprovalSettingsApprovalRolesADMIN ApprovalSettingsApprovalRoles = "ADMIN" + ApprovalSettingsApprovalRolesPROJECTMANAGER ApprovalSettingsApprovalRoles = "PROJECT_MANAGER" + ApprovalSettingsApprovalRolesTEAMMANAGER ApprovalSettingsApprovalRoles = "TEAM_MANAGER" +) + +// Defines values for AssignmentPeriodRequestSeriesUpdateOption. +const ( + AssignmentPeriodRequestSeriesUpdateOptionALL AssignmentPeriodRequestSeriesUpdateOption = "ALL" + AssignmentPeriodRequestSeriesUpdateOptionTHISANDFOLLOWING AssignmentPeriodRequestSeriesUpdateOption = "THIS_AND_FOLLOWING" + AssignmentPeriodRequestSeriesUpdateOptionTHISONE AssignmentPeriodRequestSeriesUpdateOption = "THIS_ONE" +) + +// Defines values for AssignmentUpdateRequestSeriesUpdateOption. +const ( + AssignmentUpdateRequestSeriesUpdateOptionALL AssignmentUpdateRequestSeriesUpdateOption = "ALL" + AssignmentUpdateRequestSeriesUpdateOptionTHISANDFOLLOWING AssignmentUpdateRequestSeriesUpdateOption = "THIS_AND_FOLLOWING" + AssignmentUpdateRequestSeriesUpdateOptionTHISONE AssignmentUpdateRequestSeriesUpdateOption = "THIS_ONE" +) + +// Defines values for AuthDtoRoles. +const ( + AuthDtoRolesADMIN AuthDtoRoles = "ADMIN" + AuthDtoRolesBILLING AuthDtoRoles = "BILLING" + AuthDtoRolesMANAGER AuthDtoRoles = "MANAGER" + AuthDtoRolesNOTIFIER AuthDtoRoles = "NOTIFIER" + AuthDtoRolesSALESADMIN AuthDtoRoles = "SALES_ADMIN" + AuthDtoRolesSALESAGENT AuthDtoRoles = "SALES_AGENT" + AuthDtoRolesSALESPANEL AuthDtoRoles = "SALES_PANEL" + AuthDtoRolesSUPPORTAGENT AuthDtoRoles = "SUPPORT_AGENT" + AuthDtoRolesUSER AuthDtoRoles = "USER" +) + +// Defines values for AuthDtoStatus. +const ( + AuthDtoStatusACTIVE AuthDtoStatus = "ACTIVE" + AuthDtoStatusDELETED AuthDtoStatus = "DELETED" + AuthDtoStatusLIMITED AuthDtoStatus = "LIMITED" + AuthDtoStatusLIMITEDDELETED AuthDtoStatus = "LIMITED_DELETED" + AuthDtoStatusNOTREGISTERED AuthDtoStatus = "NOT_REGISTERED" + AuthDtoStatusPENDINGEMAILVERIFICATION AuthDtoStatus = "PENDING_EMAIL_VERIFICATION" +) + +// Defines values for AuthorizationSourceDtoType. +const ( + AuthorizationSourceDtoTypeUSERGROUP AuthorizationSourceDtoType = "USER_GROUP" +) + +// Defines values for AutomaticAccrualDtoPeriod. +const ( + AutomaticAccrualDtoPeriodMONTH AutomaticAccrualDtoPeriod = "MONTH" + AutomaticAccrualDtoPeriodYEAR AutomaticAccrualDtoPeriod = "YEAR" +) + +// Defines values for AutomaticAccrualDtoTimeUnit. +const ( + AutomaticAccrualDtoTimeUnitDAYS AutomaticAccrualDtoTimeUnit = "DAYS" + AutomaticAccrualDtoTimeUnitHOURS AutomaticAccrualDtoTimeUnit = "HOURS" +) + +// Defines values for AutomaticAccrualRequestPeriod. +const ( + AutomaticAccrualRequestPeriodMONTH AutomaticAccrualRequestPeriod = "MONTH" + AutomaticAccrualRequestPeriodYEAR AutomaticAccrualRequestPeriod = "YEAR" +) + +// Defines values for AutomaticAccrualRequestTimeUnit. +const ( + AutomaticAccrualRequestTimeUnitDAYS AutomaticAccrualRequestTimeUnit = "DAYS" + AutomaticAccrualRequestTimeUnitHOURS AutomaticAccrualRequestTimeUnit = "HOURS" +) + +// Defines values for AutomaticLockDtoChangeDay. +const ( + AutomaticLockDtoChangeDayFRIDAY AutomaticLockDtoChangeDay = "FRIDAY" + AutomaticLockDtoChangeDayMONDAY AutomaticLockDtoChangeDay = "MONDAY" + AutomaticLockDtoChangeDaySATURDAY AutomaticLockDtoChangeDay = "SATURDAY" + AutomaticLockDtoChangeDaySUNDAY AutomaticLockDtoChangeDay = "SUNDAY" + AutomaticLockDtoChangeDayTHURSDAY AutomaticLockDtoChangeDay = "THURSDAY" + AutomaticLockDtoChangeDayTUESDAY AutomaticLockDtoChangeDay = "TUESDAY" + AutomaticLockDtoChangeDayWEDNESDAY AutomaticLockDtoChangeDay = "WEDNESDAY" +) + +// Defines values for AutomaticLockDtoFirstDay. +const ( + AutomaticLockDtoFirstDayFRIDAY AutomaticLockDtoFirstDay = "FRIDAY" + AutomaticLockDtoFirstDayMONDAY AutomaticLockDtoFirstDay = "MONDAY" + AutomaticLockDtoFirstDaySATURDAY AutomaticLockDtoFirstDay = "SATURDAY" + AutomaticLockDtoFirstDaySUNDAY AutomaticLockDtoFirstDay = "SUNDAY" + AutomaticLockDtoFirstDayTHURSDAY AutomaticLockDtoFirstDay = "THURSDAY" + AutomaticLockDtoFirstDayTUESDAY AutomaticLockDtoFirstDay = "TUESDAY" + AutomaticLockDtoFirstDayWEDNESDAY AutomaticLockDtoFirstDay = "WEDNESDAY" +) + +// Defines values for AutomaticLockDtoOlderThanPeriod. +const ( + AutomaticLockDtoOlderThanPeriodDAYS AutomaticLockDtoOlderThanPeriod = "DAYS" + AutomaticLockDtoOlderThanPeriodMONTHS AutomaticLockDtoOlderThanPeriod = "MONTHS" + AutomaticLockDtoOlderThanPeriodWEEKS AutomaticLockDtoOlderThanPeriod = "WEEKS" +) + +// Defines values for AutomaticLockDtoType. +const ( + AutomaticLockDtoTypeMONTHLY AutomaticLockDtoType = "MONTHLY" + AutomaticLockDtoTypeOLDERTHAN AutomaticLockDtoType = "OLDER_THAN" + AutomaticLockDtoTypeWEEKLY AutomaticLockDtoType = "WEEKLY" +) + +// Defines values for BalanceHistoryDtoAction. +const ( + BalanceHistoryDtoActionAPPROVED BalanceHistoryDtoAction = "APPROVED" + BalanceHistoryDtoActionAUTOMATIC BalanceHistoryDtoAction = "AUTOMATIC" + BalanceHistoryDtoActionAUTOMATICAPPROVAL BalanceHistoryDtoAction = "AUTOMATIC_APPROVAL" + BalanceHistoryDtoActionMANUAL BalanceHistoryDtoAction = "MANUAL" + BalanceHistoryDtoActionPENDING BalanceHistoryDtoAction = "PENDING" + BalanceHistoryDtoActionREJECTED BalanceHistoryDtoAction = "REJECTED" + BalanceHistoryDtoActionWITHDRAWN BalanceHistoryDtoAction = "WITHDRAWN" +) + +// Defines values for BalanceHistoryDtoTimeUnit. +const ( + BalanceHistoryDtoTimeUnitDAYS BalanceHistoryDtoTimeUnit = "DAYS" + BalanceHistoryDtoTimeUnitHOURS BalanceHistoryDtoTimeUnit = "HOURS" +) + +// Defines values for BillingInformationDtoNextSubscriptionType. +const ( + BillingInformationDtoNextSubscriptionTypeBASIC2021 BillingInformationDtoNextSubscriptionType = "BASIC_2021" + BillingInformationDtoNextSubscriptionTypeBASICYEAR2021 BillingInformationDtoNextSubscriptionType = "BASIC_YEAR_2021" + BillingInformationDtoNextSubscriptionTypeBUNDLE2024 BillingInformationDtoNextSubscriptionType = "BUNDLE_2024" + BillingInformationDtoNextSubscriptionTypeBUNDLEYEAR2024 BillingInformationDtoNextSubscriptionType = "BUNDLE_YEAR_2024" + BillingInformationDtoNextSubscriptionTypeENTERPRISE BillingInformationDtoNextSubscriptionType = "ENTERPRISE" + BillingInformationDtoNextSubscriptionTypeENTERPRISE2021 BillingInformationDtoNextSubscriptionType = "ENTERPRISE_2021" + BillingInformationDtoNextSubscriptionTypeENTERPRISEYEAR BillingInformationDtoNextSubscriptionType = "ENTERPRISE_YEAR" + BillingInformationDtoNextSubscriptionTypeENTERPRISEYEAR2021 BillingInformationDtoNextSubscriptionType = "ENTERPRISE_YEAR_2021" + BillingInformationDtoNextSubscriptionTypeFREE BillingInformationDtoNextSubscriptionType = "FREE" + BillingInformationDtoNextSubscriptionTypePREMIUM BillingInformationDtoNextSubscriptionType = "PREMIUM" + BillingInformationDtoNextSubscriptionTypePREMIUMYEAR BillingInformationDtoNextSubscriptionType = "PREMIUM_YEAR" + BillingInformationDtoNextSubscriptionTypePRO2021 BillingInformationDtoNextSubscriptionType = "PRO_2021" + BillingInformationDtoNextSubscriptionTypePROYEAR2021 BillingInformationDtoNextSubscriptionType = "PRO_YEAR_2021" + BillingInformationDtoNextSubscriptionTypeSELFHOSTED BillingInformationDtoNextSubscriptionType = "SELF_HOSTED" + BillingInformationDtoNextSubscriptionTypeSPECIAL BillingInformationDtoNextSubscriptionType = "SPECIAL" + BillingInformationDtoNextSubscriptionTypeSPECIALYEAR BillingInformationDtoNextSubscriptionType = "SPECIAL_YEAR" + BillingInformationDtoNextSubscriptionTypeSTANDARD2021 BillingInformationDtoNextSubscriptionType = "STANDARD_2021" + BillingInformationDtoNextSubscriptionTypeSTANDARDYEAR2021 BillingInformationDtoNextSubscriptionType = "STANDARD_YEAR_2021" + BillingInformationDtoNextSubscriptionTypeTRIAL BillingInformationDtoNextSubscriptionType = "TRIAL" +) + +// Defines values for BillingInformationDtoType. +const ( + BillingInformationDtoTypeBASIC2021 BillingInformationDtoType = "BASIC_2021" + BillingInformationDtoTypeBASICYEAR2021 BillingInformationDtoType = "BASIC_YEAR_2021" + BillingInformationDtoTypeBUNDLE2024 BillingInformationDtoType = "BUNDLE_2024" + BillingInformationDtoTypeBUNDLEYEAR2024 BillingInformationDtoType = "BUNDLE_YEAR_2024" + BillingInformationDtoTypeENTERPRISE BillingInformationDtoType = "ENTERPRISE" + BillingInformationDtoTypeENTERPRISE2021 BillingInformationDtoType = "ENTERPRISE_2021" + BillingInformationDtoTypeENTERPRISEYEAR BillingInformationDtoType = "ENTERPRISE_YEAR" + BillingInformationDtoTypeENTERPRISEYEAR2021 BillingInformationDtoType = "ENTERPRISE_YEAR_2021" + BillingInformationDtoTypeFREE BillingInformationDtoType = "FREE" + BillingInformationDtoTypePREMIUM BillingInformationDtoType = "PREMIUM" + BillingInformationDtoTypePREMIUMYEAR BillingInformationDtoType = "PREMIUM_YEAR" + BillingInformationDtoTypePRO2021 BillingInformationDtoType = "PRO_2021" + BillingInformationDtoTypePROYEAR2021 BillingInformationDtoType = "PRO_YEAR_2021" + BillingInformationDtoTypeSELFHOSTED BillingInformationDtoType = "SELF_HOSTED" + BillingInformationDtoTypeSPECIAL BillingInformationDtoType = "SPECIAL" + BillingInformationDtoTypeSPECIALYEAR BillingInformationDtoType = "SPECIAL_YEAR" + BillingInformationDtoTypeSTANDARD2021 BillingInformationDtoType = "STANDARD_2021" + BillingInformationDtoTypeSTANDARDYEAR2021 BillingInformationDtoType = "STANDARD_YEAR_2021" + BillingInformationDtoTypeTRIAL BillingInformationDtoType = "TRIAL" +) + +// Defines values for ChangeInvoiceStatusRequestInvoiceStatus. +const ( + ChangeInvoiceStatusRequestInvoiceStatusOVERDUE ChangeInvoiceStatusRequestInvoiceStatus = "OVERDUE" + ChangeInvoiceStatusRequestInvoiceStatusPAID ChangeInvoiceStatusRequestInvoiceStatus = "PAID" + ChangeInvoiceStatusRequestInvoiceStatusPARTIALLYPAID ChangeInvoiceStatusRequestInvoiceStatus = "PARTIALLY_PAID" + ChangeInvoiceStatusRequestInvoiceStatusSENT ChangeInvoiceStatusRequestInvoiceStatus = "SENT" + ChangeInvoiceStatusRequestInvoiceStatusUNSENT ChangeInvoiceStatusRequestInvoiceStatus = "UNSENT" + ChangeInvoiceStatusRequestInvoiceStatusVOID ChangeInvoiceStatusRequestInvoiceStatus = "VOID" +) + +// Defines values for ContainsArchivedFilterRequestContains. +const ( + ContainsArchivedFilterRequestContainsCONTAINS ContainsArchivedFilterRequestContains = "CONTAINS" + ContainsArchivedFilterRequestContainsCONTAINSONLY ContainsArchivedFilterRequestContains = "CONTAINS_ONLY" + ContainsArchivedFilterRequestContainsDOESNOTCONTAIN ContainsArchivedFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsArchivedFilterRequestStatus. +const ( + ContainsArchivedFilterRequestStatusACTIVE ContainsArchivedFilterRequestStatus = "ACTIVE" + ContainsArchivedFilterRequestStatusALL ContainsArchivedFilterRequestStatus = "ALL" + ContainsArchivedFilterRequestStatusDECLINED ContainsArchivedFilterRequestStatus = "DECLINED" + ContainsArchivedFilterRequestStatusINACTIVE ContainsArchivedFilterRequestStatus = "INACTIVE" + ContainsArchivedFilterRequestStatusPENDING ContainsArchivedFilterRequestStatus = "PENDING" +) + +// Defines values for ContainsClientsFilterRequestContains. +const ( + ContainsClientsFilterRequestContainsCONTAINS ContainsClientsFilterRequestContains = "CONTAINS" + ContainsClientsFilterRequestContainsCONTAINSONLY ContainsClientsFilterRequestContains = "CONTAINS_ONLY" + ContainsClientsFilterRequestContainsDOESNOTCONTAIN ContainsClientsFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsClientsFilterRequestStatus. +const ( + ContainsClientsFilterRequestStatusACTIVE ContainsClientsFilterRequestStatus = "ACTIVE" + ContainsClientsFilterRequestStatusALL ContainsClientsFilterRequestStatus = "ALL" + ContainsClientsFilterRequestStatusDECLINED ContainsClientsFilterRequestStatus = "DECLINED" + ContainsClientsFilterRequestStatusINACTIVE ContainsClientsFilterRequestStatus = "INACTIVE" + ContainsClientsFilterRequestStatusPENDING ContainsClientsFilterRequestStatus = "PENDING" +) + +// Defines values for ContainsCompaniesFilterRequestContains. +const ( + ContainsCompaniesFilterRequestContainsCONTAINS ContainsCompaniesFilterRequestContains = "CONTAINS" + ContainsCompaniesFilterRequestContainsCONTAINSONLY ContainsCompaniesFilterRequestContains = "CONTAINS_ONLY" + ContainsCompaniesFilterRequestContainsDOESNOTCONTAIN ContainsCompaniesFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsCompaniesFilterRequestStatus. +const ( + ContainsCompaniesFilterRequestStatusACTIVE ContainsCompaniesFilterRequestStatus = "ACTIVE" + ContainsCompaniesFilterRequestStatusALL ContainsCompaniesFilterRequestStatus = "ALL" + ContainsCompaniesFilterRequestStatusDECLINED ContainsCompaniesFilterRequestStatus = "DECLINED" + ContainsCompaniesFilterRequestStatusINACTIVE ContainsCompaniesFilterRequestStatus = "INACTIVE" + ContainsCompaniesFilterRequestStatusPENDING ContainsCompaniesFilterRequestStatus = "PENDING" +) + +// Defines values for ContainsFilterRequestContains. +const ( + ContainsFilterRequestContainsCONTAINS ContainsFilterRequestContains = "CONTAINS" + ContainsFilterRequestContainsDOESNOTCONTAIN ContainsFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsFilterRequestStatus. +const ( + ContainsFilterRequestStatusACTIVE ContainsFilterRequestStatus = "ACTIVE" + ContainsFilterRequestStatusALL ContainsFilterRequestStatus = "ALL" + ContainsFilterRequestStatusINACTIVE ContainsFilterRequestStatus = "INACTIVE" +) + +// Defines values for ContainsProjectsFilterRequestContains. +const ( + ContainsProjectsFilterRequestContainsCONTAINS ContainsProjectsFilterRequestContains = "CONTAINS" + ContainsProjectsFilterRequestContainsCONTAINSONLY ContainsProjectsFilterRequestContains = "CONTAINS_ONLY" + ContainsProjectsFilterRequestContainsDOESNOTCONTAIN ContainsProjectsFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsProjectsFilterRequestStatus. +const ( + ContainsProjectsFilterRequestStatusACTIVE ContainsProjectsFilterRequestStatus = "ACTIVE" + ContainsProjectsFilterRequestStatusALL ContainsProjectsFilterRequestStatus = "ALL" + ContainsProjectsFilterRequestStatusDECLINED ContainsProjectsFilterRequestStatus = "DECLINED" + ContainsProjectsFilterRequestStatusINACTIVE ContainsProjectsFilterRequestStatus = "INACTIVE" + ContainsProjectsFilterRequestStatusPENDING ContainsProjectsFilterRequestStatus = "PENDING" +) + +// Defines values for ContainsUserGroupFilterRequestContains. +const ( + ContainsUserGroupFilterRequestContainsCONTAINS ContainsUserGroupFilterRequestContains = "CONTAINS" + ContainsUserGroupFilterRequestContainsCONTAINSONLY ContainsUserGroupFilterRequestContains = "CONTAINS_ONLY" + ContainsUserGroupFilterRequestContainsDOESNOTCONTAIN ContainsUserGroupFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsUserGroupFilterRequestStatus. +const ( + ContainsUserGroupFilterRequestStatusACTIVE ContainsUserGroupFilterRequestStatus = "ACTIVE" + ContainsUserGroupFilterRequestStatusALL ContainsUserGroupFilterRequestStatus = "ALL" + ContainsUserGroupFilterRequestStatusDECLINED ContainsUserGroupFilterRequestStatus = "DECLINED" + ContainsUserGroupFilterRequestStatusINACTIVE ContainsUserGroupFilterRequestStatus = "INACTIVE" + ContainsUserGroupFilterRequestStatusPENDING ContainsUserGroupFilterRequestStatus = "PENDING" +) + +// Defines values for ContainsUsersFilterRequestContains. +const ( + ContainsUsersFilterRequestContainsCONTAINS ContainsUsersFilterRequestContains = "CONTAINS" + ContainsUsersFilterRequestContainsCONTAINSONLY ContainsUsersFilterRequestContains = "CONTAINS_ONLY" + ContainsUsersFilterRequestContainsDOESNOTCONTAIN ContainsUsersFilterRequestContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsUsersFilterRequestSourceType. +const ( + ContainsUsersFilterRequestSourceTypeUSERGROUP ContainsUsersFilterRequestSourceType = "USER_GROUP" +) + +// Defines values for ContainsUsersFilterRequestStatus. +const ( + ContainsUsersFilterRequestStatusACTIVE ContainsUsersFilterRequestStatus = "ACTIVE" + ContainsUsersFilterRequestStatusALL ContainsUsersFilterRequestStatus = "ALL" + ContainsUsersFilterRequestStatusDECLINED ContainsUsersFilterRequestStatus = "DECLINED" + ContainsUsersFilterRequestStatusINACTIVE ContainsUsersFilterRequestStatus = "INACTIVE" + ContainsUsersFilterRequestStatusPENDING ContainsUsersFilterRequestStatus = "PENDING" +) + +// Defines values for ContainsUsersFilterRequestStatuses. +const ( + ContainsUsersFilterRequestStatusesACTIVE ContainsUsersFilterRequestStatuses = "ACTIVE" + ContainsUsersFilterRequestStatusesALL ContainsUsersFilterRequestStatuses = "ALL" + ContainsUsersFilterRequestStatusesDECLINED ContainsUsersFilterRequestStatuses = "DECLINED" + ContainsUsersFilterRequestStatusesINACTIVE ContainsUsersFilterRequestStatuses = "INACTIVE" + ContainsUsersFilterRequestStatusesPENDING ContainsUsersFilterRequestStatuses = "PENDING" +) + +// Defines values for ContainsUsersFilterRequestForHolidayContains. +const ( + ContainsUsersFilterRequestForHolidayContainsCONTAINS ContainsUsersFilterRequestForHolidayContains = "CONTAINS" + ContainsUsersFilterRequestForHolidayContainsCONTAINSONLY ContainsUsersFilterRequestForHolidayContains = "CONTAINS_ONLY" + ContainsUsersFilterRequestForHolidayContainsDOESNOTCONTAIN ContainsUsersFilterRequestForHolidayContains = "DOES_NOT_CONTAIN" +) + +// Defines values for ContainsUsersFilterRequestForHolidayStatus. +const ( + ContainsUsersFilterRequestForHolidayStatusACTIVE ContainsUsersFilterRequestForHolidayStatus = "ACTIVE" + ContainsUsersFilterRequestForHolidayStatusALL ContainsUsersFilterRequestForHolidayStatus = "ALL" + ContainsUsersFilterRequestForHolidayStatusDECLINED ContainsUsersFilterRequestForHolidayStatus = "DECLINED" + ContainsUsersFilterRequestForHolidayStatusINACTIVE ContainsUsersFilterRequestForHolidayStatus = "INACTIVE" + ContainsUsersFilterRequestForHolidayStatusPENDING ContainsUsersFilterRequestForHolidayStatus = "PENDING" +) + +// Defines values for CopyAssignmentRequestSeriesUpdateOption. +const ( + CopyAssignmentRequestSeriesUpdateOptionALL CopyAssignmentRequestSeriesUpdateOption = "ALL" + CopyAssignmentRequestSeriesUpdateOptionTHISANDFOLLOWING CopyAssignmentRequestSeriesUpdateOption = "THIS_AND_FOLLOWING" + CopyAssignmentRequestSeriesUpdateOptionTHISONE CopyAssignmentRequestSeriesUpdateOption = "THIS_ONE" +) + +// Defines values for CreateAlertRequestAlertPerson. +const ( + CreateAlertRequestAlertPersonPROJECTMANAGER CreateAlertRequestAlertPerson = "PROJECT_MANAGER" + CreateAlertRequestAlertPersonTEAMMEMBERS CreateAlertRequestAlertPerson = "TEAM_MEMBERS" + CreateAlertRequestAlertPersonWORKSPACEADMIN CreateAlertRequestAlertPerson = "WORKSPACE_ADMIN" +) + +// Defines values for CreateAlertRequestAlertType. +const ( + CreateAlertRequestAlertTypePROJECT CreateAlertRequestAlertType = "PROJECT" + CreateAlertRequestAlertTypeTASK CreateAlertRequestAlertType = "TASK" +) + +// Defines values for CreateApprovalRequestPeriod. +const ( + CreateApprovalRequestPeriodMONTHLY CreateApprovalRequestPeriod = "MONTHLY" + CreateApprovalRequestPeriodSEMIMONTHLY CreateApprovalRequestPeriod = "SEMI_MONTHLY" + CreateApprovalRequestPeriodWEEKLY CreateApprovalRequestPeriod = "WEEKLY" +) + +// Defines values for CreateFavoriteEntriesRequestType. +const ( + CreateFavoriteEntriesRequestTypeBREAK CreateFavoriteEntriesRequestType = "BREAK" + CreateFavoriteEntriesRequestTypeHOLIDAY CreateFavoriteEntriesRequestType = "HOLIDAY" + CreateFavoriteEntriesRequestTypeREGULAR CreateFavoriteEntriesRequestType = "REGULAR" + CreateFavoriteEntriesRequestTypeTIMEOFF CreateFavoriteEntriesRequestType = "TIME_OFF" +) + +// Defines values for CreateReminderRequestDateRange. +const ( + CreateReminderRequestDateRangeDAY CreateReminderRequestDateRange = "DAY" + CreateReminderRequestDateRangeMONTH CreateReminderRequestDateRange = "MONTH" + CreateReminderRequestDateRangeWEEK CreateReminderRequestDateRange = "WEEK" +) + +// Defines values for CustomFieldProjectDefaultValuesRequestStatus. +const ( + CustomFieldProjectDefaultValuesRequestStatusINACTIVE CustomFieldProjectDefaultValuesRequestStatus = "INACTIVE" + CustomFieldProjectDefaultValuesRequestStatusINVISIBLE CustomFieldProjectDefaultValuesRequestStatus = "INVISIBLE" + CustomFieldProjectDefaultValuesRequestStatusVISIBLE CustomFieldProjectDefaultValuesRequestStatus = "VISIBLE" +) + +// Defines values for CustomFieldRequestStatus. +const ( + CustomFieldRequestStatusINACTIVE CustomFieldRequestStatus = "INACTIVE" + CustomFieldRequestStatusINVISIBLE CustomFieldRequestStatus = "INVISIBLE" + CustomFieldRequestStatusVISIBLE CustomFieldRequestStatus = "VISIBLE" +) + +// Defines values for CustomFieldRequestType. +const ( + CustomFieldRequestTypeCHECKBOX CustomFieldRequestType = "CHECKBOX" + CustomFieldRequestTypeDROPDOWNMULTIPLE CustomFieldRequestType = "DROPDOWN_MULTIPLE" + CustomFieldRequestTypeDROPDOWNSINGLE CustomFieldRequestType = "DROPDOWN_SINGLE" + CustomFieldRequestTypeLINK CustomFieldRequestType = "LINK" + CustomFieldRequestTypeNUMBER CustomFieldRequestType = "NUMBER" + CustomFieldRequestTypeTXT CustomFieldRequestType = "TXT" +) + +// Defines values for CustomFieldValueDtoSourceType. +const ( + CustomFieldValueDtoSourceTypePROJECT CustomFieldValueDtoSourceType = "PROJECT" + CustomFieldValueDtoSourceTypeTIMEENTRY CustomFieldValueDtoSourceType = "TIMEENTRY" + CustomFieldValueDtoSourceTypeWORKSPACE CustomFieldValueDtoSourceType = "WORKSPACE" +) + +// Defines values for CustomerDtoSource. +const ( + CAKEAG CustomerDtoSource = "CAKE_AG" + CAKEINC CustomerDtoSource = "CAKE_INC" + COINGINC CustomerDtoSource = "COING_INC" + CSMCAKEAG CustomerDtoSource = "CSM_CAKE_AG" +) + +// Defines values for DayOfWeek. +const ( + DayOfWeekFRIDAY DayOfWeek = "FRIDAY" + DayOfWeekMONDAY DayOfWeek = "MONDAY" + DayOfWeekSATURDAY DayOfWeek = "SATURDAY" + DayOfWeekSUNDAY DayOfWeek = "SUNDAY" + DayOfWeekTHURSDAY DayOfWeek = "THURSDAY" + DayOfWeekTUESDAY DayOfWeek = "TUESDAY" + DayOfWeekWEDNESDAY DayOfWeek = "WEDNESDAY" +) + +// Defines values for EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients. +const ( + EntityCreationPermissionsDtoWhoCanCreateProjectsAndClientsADMINS EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients = "ADMINS" + EntityCreationPermissionsDtoWhoCanCreateProjectsAndClientsADMINSANDPROJECTMANAGERS EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients = "ADMINS_AND_PROJECT_MANAGERS" + EntityCreationPermissionsDtoWhoCanCreateProjectsAndClientsEVERYONE EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients = "EVERYONE" +) + +// Defines values for EntityCreationPermissionsDtoWhoCanCreateTags. +const ( + EntityCreationPermissionsDtoWhoCanCreateTagsADMINS EntityCreationPermissionsDtoWhoCanCreateTags = "ADMINS" + EntityCreationPermissionsDtoWhoCanCreateTagsADMINSANDPROJECTMANAGERS EntityCreationPermissionsDtoWhoCanCreateTags = "ADMINS_AND_PROJECT_MANAGERS" + EntityCreationPermissionsDtoWhoCanCreateTagsEVERYONE EntityCreationPermissionsDtoWhoCanCreateTags = "EVERYONE" +) + +// Defines values for EntityCreationPermissionsDtoWhoCanCreateTasks. +const ( + EntityCreationPermissionsDtoWhoCanCreateTasksADMINS EntityCreationPermissionsDtoWhoCanCreateTasks = "ADMINS" + EntityCreationPermissionsDtoWhoCanCreateTasksADMINSANDPROJECTMANAGERS EntityCreationPermissionsDtoWhoCanCreateTasks = "ADMINS_AND_PROJECT_MANAGERS" + EntityCreationPermissionsDtoWhoCanCreateTasksEVERYONE EntityCreationPermissionsDtoWhoCanCreateTasks = "EVERYONE" +) + +// Defines values for EstimateDtoType. +const ( + EstimateDtoTypeAUTO EstimateDtoType = "AUTO" + EstimateDtoTypeMANUAL EstimateDtoType = "MANUAL" +) + +// Defines values for EstimateRequestType. +const ( + EstimateRequestTypeAUTO EstimateRequestType = "AUTO" + EstimateRequestTypeMANUAL EstimateRequestType = "MANUAL" +) + +// Defines values for EstimateResetDtoDayOfWeek. +const ( + EstimateResetDtoDayOfWeekFRIDAY EstimateResetDtoDayOfWeek = "FRIDAY" + EstimateResetDtoDayOfWeekMONDAY EstimateResetDtoDayOfWeek = "MONDAY" + EstimateResetDtoDayOfWeekSATURDAY EstimateResetDtoDayOfWeek = "SATURDAY" + EstimateResetDtoDayOfWeekSUNDAY EstimateResetDtoDayOfWeek = "SUNDAY" + EstimateResetDtoDayOfWeekTHURSDAY EstimateResetDtoDayOfWeek = "THURSDAY" + EstimateResetDtoDayOfWeekTUESDAY EstimateResetDtoDayOfWeek = "TUESDAY" + EstimateResetDtoDayOfWeekWEDNESDAY EstimateResetDtoDayOfWeek = "WEDNESDAY" +) + +// Defines values for EstimateResetDtoInterval. +const ( + EstimateResetDtoIntervalMONTHLY EstimateResetDtoInterval = "MONTHLY" + EstimateResetDtoIntervalWEEKLY EstimateResetDtoInterval = "WEEKLY" + EstimateResetDtoIntervalYEARLY EstimateResetDtoInterval = "YEARLY" +) + +// Defines values for EstimateResetDtoMonth. +const ( + EstimateResetDtoMonthAPRIL EstimateResetDtoMonth = "APRIL" + EstimateResetDtoMonthAUGUST EstimateResetDtoMonth = "AUGUST" + EstimateResetDtoMonthDECEMBER EstimateResetDtoMonth = "DECEMBER" + EstimateResetDtoMonthFEBRUARY EstimateResetDtoMonth = "FEBRUARY" + EstimateResetDtoMonthJANUARY EstimateResetDtoMonth = "JANUARY" + EstimateResetDtoMonthJULY EstimateResetDtoMonth = "JULY" + EstimateResetDtoMonthJUNE EstimateResetDtoMonth = "JUNE" + EstimateResetDtoMonthMARCH EstimateResetDtoMonth = "MARCH" + EstimateResetDtoMonthMAY EstimateResetDtoMonth = "MAY" + EstimateResetDtoMonthNOVEMBER EstimateResetDtoMonth = "NOVEMBER" + EstimateResetDtoMonthOCTOBER EstimateResetDtoMonth = "OCTOBER" + EstimateResetDtoMonthSEPTEMBER EstimateResetDtoMonth = "SEPTEMBER" +) + +// Defines values for EstimateResetRequestDayOfWeek. +const ( + EstimateResetRequestDayOfWeekFRIDAY EstimateResetRequestDayOfWeek = "FRIDAY" + EstimateResetRequestDayOfWeekMONDAY EstimateResetRequestDayOfWeek = "MONDAY" + EstimateResetRequestDayOfWeekSATURDAY EstimateResetRequestDayOfWeek = "SATURDAY" + EstimateResetRequestDayOfWeekSUNDAY EstimateResetRequestDayOfWeek = "SUNDAY" + EstimateResetRequestDayOfWeekTHURSDAY EstimateResetRequestDayOfWeek = "THURSDAY" + EstimateResetRequestDayOfWeekTUESDAY EstimateResetRequestDayOfWeek = "TUESDAY" + EstimateResetRequestDayOfWeekWEDNESDAY EstimateResetRequestDayOfWeek = "WEDNESDAY" +) + +// Defines values for EstimateResetRequestInterval. +const ( + EstimateResetRequestIntervalMONTHLY EstimateResetRequestInterval = "MONTHLY" + EstimateResetRequestIntervalWEEKLY EstimateResetRequestInterval = "WEEKLY" + EstimateResetRequestIntervalYEARLY EstimateResetRequestInterval = "YEARLY" +) + +// Defines values for EstimateResetRequestMonth. +const ( + EstimateResetRequestMonthAPRIL EstimateResetRequestMonth = "APRIL" + EstimateResetRequestMonthAUGUST EstimateResetRequestMonth = "AUGUST" + EstimateResetRequestMonthDECEMBER EstimateResetRequestMonth = "DECEMBER" + EstimateResetRequestMonthFEBRUARY EstimateResetRequestMonth = "FEBRUARY" + EstimateResetRequestMonthJANUARY EstimateResetRequestMonth = "JANUARY" + EstimateResetRequestMonthJULY EstimateResetRequestMonth = "JULY" + EstimateResetRequestMonthJUNE EstimateResetRequestMonth = "JUNE" + EstimateResetRequestMonthMARCH EstimateResetRequestMonth = "MARCH" + EstimateResetRequestMonthMAY EstimateResetRequestMonth = "MAY" + EstimateResetRequestMonthNOVEMBER EstimateResetRequestMonth = "NOVEMBER" + EstimateResetRequestMonthOCTOBER EstimateResetRequestMonth = "OCTOBER" + EstimateResetRequestMonthSEPTEMBER EstimateResetRequestMonth = "SEPTEMBER" +) + +// Defines values for EstimateWithOptionsDtoResetOption. +const ( + EstimateWithOptionsDtoResetOptionMONTHLY EstimateWithOptionsDtoResetOption = "MONTHLY" + EstimateWithOptionsDtoResetOptionWEEKLY EstimateWithOptionsDtoResetOption = "WEEKLY" + EstimateWithOptionsDtoResetOptionYEARLY EstimateWithOptionsDtoResetOption = "YEARLY" +) + +// Defines values for EstimateWithOptionsDtoType. +const ( + EstimateWithOptionsDtoTypeAUTO EstimateWithOptionsDtoType = "AUTO" + EstimateWithOptionsDtoTypeMANUAL EstimateWithOptionsDtoType = "MANUAL" +) + +// Defines values for EstimateWithOptionsRequestResetOption. +const ( + EstimateWithOptionsRequestResetOptionMONTHLY EstimateWithOptionsRequestResetOption = "MONTHLY" + EstimateWithOptionsRequestResetOptionWEEKLY EstimateWithOptionsRequestResetOption = "WEEKLY" + EstimateWithOptionsRequestResetOptionYEARLY EstimateWithOptionsRequestResetOption = "YEARLY" +) + +// Defines values for EstimateWithOptionsRequestType. +const ( + EstimateWithOptionsRequestTypeAUTO EstimateWithOptionsRequestType = "AUTO" + EstimateWithOptionsRequestTypeMANUAL EstimateWithOptionsRequestType = "MANUAL" +) + +// Defines values for ExpenseHydratedDtoApprovalStatus. +const ( + ExpenseHydratedDtoApprovalStatusAPPROVED ExpenseHydratedDtoApprovalStatus = "APPROVED" + ExpenseHydratedDtoApprovalStatusPENDING ExpenseHydratedDtoApprovalStatus = "PENDING" + ExpenseHydratedDtoApprovalStatusUNSUBMITTED ExpenseHydratedDtoApprovalStatus = "UNSUBMITTED" +) + +// Defines values for ExpensesAndTotalsDtoApprovalPeriod. +const ( + ExpensesAndTotalsDtoApprovalPeriodMONTHLY ExpensesAndTotalsDtoApprovalPeriod = "MONTHLY" + ExpensesAndTotalsDtoApprovalPeriodSEMIMONTHLY ExpensesAndTotalsDtoApprovalPeriod = "SEMI_MONTHLY" + ExpensesAndTotalsDtoApprovalPeriodWEEKLY ExpensesAndTotalsDtoApprovalPeriod = "WEEKLY" +) + +// Defines values for FeatureSubscriptionsDtoStatus. +const ( + FeatureSubscriptionsDtoStatusACTIVE FeatureSubscriptionsDtoStatus = "ACTIVE" + FeatureSubscriptionsDtoStatusPASTDUE FeatureSubscriptionsDtoStatus = "PAST_DUE" + FeatureSubscriptionsDtoStatusTERMINATED FeatureSubscriptionsDtoStatus = "TERMINATED" +) + +// Defines values for FeatureSubscriptionsDtoType. +const ( + FeatureSubscriptionsDtoTypeBASIC2021 FeatureSubscriptionsDtoType = "BASIC_2021" + FeatureSubscriptionsDtoTypeBASICYEAR2021 FeatureSubscriptionsDtoType = "BASIC_YEAR_2021" + FeatureSubscriptionsDtoTypeBUNDLE2024 FeatureSubscriptionsDtoType = "BUNDLE_2024" + FeatureSubscriptionsDtoTypeBUNDLEYEAR2024 FeatureSubscriptionsDtoType = "BUNDLE_YEAR_2024" + FeatureSubscriptionsDtoTypeENTERPRISE FeatureSubscriptionsDtoType = "ENTERPRISE" + FeatureSubscriptionsDtoTypeENTERPRISE2021 FeatureSubscriptionsDtoType = "ENTERPRISE_2021" + FeatureSubscriptionsDtoTypeENTERPRISEYEAR FeatureSubscriptionsDtoType = "ENTERPRISE_YEAR" + FeatureSubscriptionsDtoTypeENTERPRISEYEAR2021 FeatureSubscriptionsDtoType = "ENTERPRISE_YEAR_2021" + FeatureSubscriptionsDtoTypeFREE FeatureSubscriptionsDtoType = "FREE" + FeatureSubscriptionsDtoTypePREMIUM FeatureSubscriptionsDtoType = "PREMIUM" + FeatureSubscriptionsDtoTypePREMIUMYEAR FeatureSubscriptionsDtoType = "PREMIUM_YEAR" + FeatureSubscriptionsDtoTypePRO2021 FeatureSubscriptionsDtoType = "PRO_2021" + FeatureSubscriptionsDtoTypePROYEAR2021 FeatureSubscriptionsDtoType = "PRO_YEAR_2021" + FeatureSubscriptionsDtoTypeSELFHOSTED FeatureSubscriptionsDtoType = "SELF_HOSTED" + FeatureSubscriptionsDtoTypeSPECIAL FeatureSubscriptionsDtoType = "SPECIAL" + FeatureSubscriptionsDtoTypeSPECIALYEAR FeatureSubscriptionsDtoType = "SPECIAL_YEAR" + FeatureSubscriptionsDtoTypeSTANDARD2021 FeatureSubscriptionsDtoType = "STANDARD_2021" + FeatureSubscriptionsDtoTypeSTANDARDYEAR2021 FeatureSubscriptionsDtoType = "STANDARD_YEAR_2021" + FeatureSubscriptionsDtoTypeTRIAL FeatureSubscriptionsDtoType = "TRIAL" +) + +// Defines values for GetDraftCountRequestViewType. +const ( + GetDraftCountRequestViewTypeALL GetDraftCountRequestViewType = "ALL" + GetDraftCountRequestViewTypePROJECTS GetDraftCountRequestViewType = "PROJECTS" + GetDraftCountRequestViewTypeTEAM GetDraftCountRequestViewType = "TEAM" +) + +// Defines values for GetMainReportRequestAccess. +const ( + GetMainReportRequestAccessME GetMainReportRequestAccess = "ME" + GetMainReportRequestAccessTEAM GetMainReportRequestAccess = "TEAM" +) + +// Defines values for GetMainReportRequestType. +const ( + GetMainReportRequestTypeBILLABILITY GetMainReportRequestType = "BILLABILITY" + GetMainReportRequestTypePROJECT GetMainReportRequestType = "PROJECT" +) + +// Defines values for GetMainReportRequestZoomLevel. +const ( + GetMainReportRequestZoomLevelMONTH GetMainReportRequestZoomLevel = "MONTH" + GetMainReportRequestZoomLevelWEEK GetMainReportRequestZoomLevel = "WEEK" + GetMainReportRequestZoomLevelYEAR GetMainReportRequestZoomLevel = "YEAR" +) + +// Defines values for GetTimeOffRequestsRequestStatuses. +const ( + GetTimeOffRequestsRequestStatusesALL GetTimeOffRequestsRequestStatuses = "ALL" + GetTimeOffRequestsRequestStatusesAPPROVED GetTimeOffRequestsRequestStatuses = "APPROVED" + GetTimeOffRequestsRequestStatusesPENDING GetTimeOffRequestsRequestStatuses = "PENDING" + GetTimeOffRequestsRequestStatusesREJECTED GetTimeOffRequestsRequestStatuses = "REJECTED" +) + +// Defines values for GetUnsubmittedEntriesDurationRequestShowUsers. +const ( + GetUnsubmittedEntriesDurationRequestShowUsersALL GetUnsubmittedEntriesDurationRequestShowUsers = "ALL" + GetUnsubmittedEntriesDurationRequestShowUsersTRACKED GetUnsubmittedEntriesDurationRequestShowUsers = "TRACKED" + GetUnsubmittedEntriesDurationRequestShowUsersUNTRACKED GetUnsubmittedEntriesDurationRequestShowUsers = "UNTRACKED" +) + +// Defines values for GetUserTotalsRequestStatusFilter. +const ( + GetUserTotalsRequestStatusFilterALL GetUserTotalsRequestStatusFilter = "ALL" + GetUserTotalsRequestStatusFilterPUBLISHED GetUserTotalsRequestStatusFilter = "PUBLISHED" + GetUserTotalsRequestStatusFilterUNPUBLISHED GetUserTotalsRequestStatusFilter = "UNPUBLISHED" +) + +// Defines values for InvoiceDefaultSettingsDtoTaxType. +const ( + InvoiceDefaultSettingsDtoTaxTypeCOMPOUND InvoiceDefaultSettingsDtoTaxType = "COMPOUND" + InvoiceDefaultSettingsDtoTaxTypeNONE InvoiceDefaultSettingsDtoTaxType = "NONE" + InvoiceDefaultSettingsDtoTaxTypeSIMPLE InvoiceDefaultSettingsDtoTaxType = "SIMPLE" +) + +// Defines values for InvoiceDefaultSettingsRequestTaxType. +const ( + InvoiceDefaultSettingsRequestTaxTypeCOMPOUND InvoiceDefaultSettingsRequestTaxType = "COMPOUND" + InvoiceDefaultSettingsRequestTaxTypeNONE InvoiceDefaultSettingsRequestTaxType = "NONE" + InvoiceDefaultSettingsRequestTaxTypeSIMPLE InvoiceDefaultSettingsRequestTaxType = "SIMPLE" +) + +// Defines values for InvoiceEmailTemplateDtoInvoiceEmailTemplateType. +const ( + InvoiceEmailTemplateDtoInvoiceEmailTemplateTypeINVOICE InvoiceEmailTemplateDtoInvoiceEmailTemplateType = "INVOICE" + InvoiceEmailTemplateDtoInvoiceEmailTemplateTypeREMINDER InvoiceEmailTemplateDtoInvoiceEmailTemplateType = "REMINDER" +) + +// Defines values for InvoiceEmailTemplateDtoInvoiceEmailType. +const ( + InvoiceEmailTemplateDtoInvoiceEmailTypeINVOICE InvoiceEmailTemplateDtoInvoiceEmailType = "INVOICE" + InvoiceEmailTemplateDtoInvoiceEmailTypeREMINDER InvoiceEmailTemplateDtoInvoiceEmailType = "REMINDER" +) + +// Defines values for InvoiceFilterRequestStatuses. +const ( + InvoiceFilterRequestStatusesOVERDUE InvoiceFilterRequestStatuses = "OVERDUE" + InvoiceFilterRequestStatusesPAID InvoiceFilterRequestStatuses = "PAID" + InvoiceFilterRequestStatusesPARTIALLYPAID InvoiceFilterRequestStatuses = "PARTIALLY_PAID" + InvoiceFilterRequestStatusesSENT InvoiceFilterRequestStatuses = "SENT" + InvoiceFilterRequestStatusesUNSENT InvoiceFilterRequestStatuses = "UNSENT" + InvoiceFilterRequestStatusesVOID InvoiceFilterRequestStatuses = "VOID" +) + +// Defines values for InvoiceInfoDtoStatus. +const ( + InvoiceInfoDtoStatusOVERDUE InvoiceInfoDtoStatus = "OVERDUE" + InvoiceInfoDtoStatusPAID InvoiceInfoDtoStatus = "PAID" + InvoiceInfoDtoStatusPARTIALLYPAID InvoiceInfoDtoStatus = "PARTIALLY_PAID" + InvoiceInfoDtoStatusSENT InvoiceInfoDtoStatus = "SENT" + InvoiceInfoDtoStatusUNSENT InvoiceInfoDtoStatus = "UNSENT" + InvoiceInfoDtoStatusVOID InvoiceInfoDtoStatus = "VOID" +) + +// Defines values for InvoiceInfoDtoVisibleZeroFields. +const ( + InvoiceInfoDtoVisibleZeroFieldsDISCOUNT InvoiceInfoDtoVisibleZeroFields = "DISCOUNT" + InvoiceInfoDtoVisibleZeroFieldsTAX InvoiceInfoDtoVisibleZeroFields = "TAX" + InvoiceInfoDtoVisibleZeroFieldsTAX2 InvoiceInfoDtoVisibleZeroFields = "TAX_2" +) + +// Defines values for InvoiceOverviewDtoStatus. +const ( + InvoiceOverviewDtoStatusOVERDUE InvoiceOverviewDtoStatus = "OVERDUE" + InvoiceOverviewDtoStatusPAID InvoiceOverviewDtoStatus = "PAID" + InvoiceOverviewDtoStatusPARTIALLYPAID InvoiceOverviewDtoStatus = "PARTIALLY_PAID" + InvoiceOverviewDtoStatusSENT InvoiceOverviewDtoStatus = "SENT" + InvoiceOverviewDtoStatusUNSENT InvoiceOverviewDtoStatus = "UNSENT" + InvoiceOverviewDtoStatusVOID InvoiceOverviewDtoStatus = "VOID" +) + +// Defines values for InvoiceOverviewDtoVisibleZeroFields. +const ( + InvoiceOverviewDtoVisibleZeroFieldsDISCOUNT InvoiceOverviewDtoVisibleZeroFields = "DISCOUNT" + InvoiceOverviewDtoVisibleZeroFieldsTAX InvoiceOverviewDtoVisibleZeroFields = "TAX" + InvoiceOverviewDtoVisibleZeroFieldsTAX2 InvoiceOverviewDtoVisibleZeroFields = "TAX_2" +) + +// Defines values for KioskDtoStatus. +const ( + KioskDtoStatusACTIVE KioskDtoStatus = "ACTIVE" + KioskDtoStatusDELETED KioskDtoStatus = "DELETED" + KioskDtoStatusINACTIVE KioskDtoStatus = "INACTIVE" +) + +// Defines values for KioskHydratedDtoStatus. +const ( + KioskHydratedDtoStatusACTIVE KioskHydratedDtoStatus = "ACTIVE" + KioskHydratedDtoStatusDELETED KioskHydratedDtoStatus = "DELETED" + KioskHydratedDtoStatusINACTIVE KioskHydratedDtoStatus = "INACTIVE" +) + +// Defines values for KioskUserPinCodeDtoPinCodeContext. +const ( + KioskUserPinCodeDtoPinCodeContextADMIN KioskUserPinCodeDtoPinCodeContext = "ADMIN" + KioskUserPinCodeDtoPinCodeContextINITIAL KioskUserPinCodeDtoPinCodeContext = "INITIAL" + KioskUserPinCodeDtoPinCodeContextUNIVERSAL KioskUserPinCodeDtoPinCodeContext = "UNIVERSAL" + KioskUserPinCodeDtoPinCodeContextUSER KioskUserPinCodeDtoPinCodeContext = "USER" +) + +// Defines values for MemberProfileFullRequestWeekStart. +const ( + MemberProfileFullRequestWeekStartFRIDAY MemberProfileFullRequestWeekStart = "FRIDAY" + MemberProfileFullRequestWeekStartMONDAY MemberProfileFullRequestWeekStart = "MONDAY" + MemberProfileFullRequestWeekStartSATURDAY MemberProfileFullRequestWeekStart = "SATURDAY" + MemberProfileFullRequestWeekStartSUNDAY MemberProfileFullRequestWeekStart = "SUNDAY" + MemberProfileFullRequestWeekStartTHURSDAY MemberProfileFullRequestWeekStart = "THURSDAY" + MemberProfileFullRequestWeekStartTUESDAY MemberProfileFullRequestWeekStart = "TUESDAY" + MemberProfileFullRequestWeekStartWEDNESDAY MemberProfileFullRequestWeekStart = "WEDNESDAY" +) + +// Defines values for MemberProfileFullRequestWorkingDays. +const ( + MemberProfileFullRequestWorkingDaysFRIDAY MemberProfileFullRequestWorkingDays = "FRIDAY" + MemberProfileFullRequestWorkingDaysMONDAY MemberProfileFullRequestWorkingDays = "MONDAY" + MemberProfileFullRequestWorkingDaysSATURDAY MemberProfileFullRequestWorkingDays = "SATURDAY" + MemberProfileFullRequestWorkingDaysSUNDAY MemberProfileFullRequestWorkingDays = "SUNDAY" + MemberProfileFullRequestWorkingDaysTHURSDAY MemberProfileFullRequestWorkingDays = "THURSDAY" + MemberProfileFullRequestWorkingDaysTUESDAY MemberProfileFullRequestWorkingDays = "TUESDAY" + MemberProfileFullRequestWorkingDaysWEDNESDAY MemberProfileFullRequestWorkingDays = "WEDNESDAY" +) + +// Defines values for MemberProfileRequestWeekStart. +const ( + MemberProfileRequestWeekStartFRIDAY MemberProfileRequestWeekStart = "FRIDAY" + MemberProfileRequestWeekStartMONDAY MemberProfileRequestWeekStart = "MONDAY" + MemberProfileRequestWeekStartSATURDAY MemberProfileRequestWeekStart = "SATURDAY" + MemberProfileRequestWeekStartSUNDAY MemberProfileRequestWeekStart = "SUNDAY" + MemberProfileRequestWeekStartTHURSDAY MemberProfileRequestWeekStart = "THURSDAY" + MemberProfileRequestWeekStartTUESDAY MemberProfileRequestWeekStart = "TUESDAY" + MemberProfileRequestWeekStartWEDNESDAY MemberProfileRequestWeekStart = "WEDNESDAY" +) + +// Defines values for MemberProfileRequestWorkingDays. +const ( + MemberProfileRequestWorkingDaysFRIDAY MemberProfileRequestWorkingDays = "FRIDAY" + MemberProfileRequestWorkingDaysMONDAY MemberProfileRequestWorkingDays = "MONDAY" + MemberProfileRequestWorkingDaysSATURDAY MemberProfileRequestWorkingDays = "SATURDAY" + MemberProfileRequestWorkingDaysSUNDAY MemberProfileRequestWorkingDays = "SUNDAY" + MemberProfileRequestWorkingDaysTHURSDAY MemberProfileRequestWorkingDays = "THURSDAY" + MemberProfileRequestWorkingDaysTUESDAY MemberProfileRequestWorkingDays = "TUESDAY" + MemberProfileRequestWorkingDaysWEDNESDAY MemberProfileRequestWorkingDays = "WEDNESDAY" +) + +// Defines values for MemberSettingsRequestWeekStart. +const ( + MemberSettingsRequestWeekStartFRIDAY MemberSettingsRequestWeekStart = "FRIDAY" + MemberSettingsRequestWeekStartMONDAY MemberSettingsRequestWeekStart = "MONDAY" + MemberSettingsRequestWeekStartSATURDAY MemberSettingsRequestWeekStart = "SATURDAY" + MemberSettingsRequestWeekStartSUNDAY MemberSettingsRequestWeekStart = "SUNDAY" + MemberSettingsRequestWeekStartTHURSDAY MemberSettingsRequestWeekStart = "THURSDAY" + MemberSettingsRequestWeekStartTUESDAY MemberSettingsRequestWeekStart = "TUESDAY" + MemberSettingsRequestWeekStartWEDNESDAY MemberSettingsRequestWeekStart = "WEDNESDAY" +) + +// Defines values for MemberSettingsRequestWorkingDays. +const ( + MemberSettingsRequestWorkingDaysFRIDAY MemberSettingsRequestWorkingDays = "FRIDAY" + MemberSettingsRequestWorkingDaysMONDAY MemberSettingsRequestWorkingDays = "MONDAY" + MemberSettingsRequestWorkingDaysSATURDAY MemberSettingsRequestWorkingDays = "SATURDAY" + MemberSettingsRequestWorkingDaysSUNDAY MemberSettingsRequestWorkingDays = "SUNDAY" + MemberSettingsRequestWorkingDaysTHURSDAY MemberSettingsRequestWorkingDays = "THURSDAY" + MemberSettingsRequestWorkingDaysTUESDAY MemberSettingsRequestWorkingDays = "TUESDAY" + MemberSettingsRequestWorkingDaysWEDNESDAY MemberSettingsRequestWorkingDays = "WEDNESDAY" +) + +// Defines values for MembershipDtoMembershipStatus. +const ( + MembershipDtoMembershipStatusACTIVE MembershipDtoMembershipStatus = "ACTIVE" + MembershipDtoMembershipStatusALL MembershipDtoMembershipStatus = "ALL" + MembershipDtoMembershipStatusDECLINED MembershipDtoMembershipStatus = "DECLINED" + MembershipDtoMembershipStatusINACTIVE MembershipDtoMembershipStatus = "INACTIVE" + MembershipDtoMembershipStatusPENDING MembershipDtoMembershipStatus = "PENDING" +) + +// Defines values for MembershipRequestMembershipStatus. +const ( + MembershipRequestMembershipStatusACTIVE MembershipRequestMembershipStatus = "ACTIVE" + MembershipRequestMembershipStatusALL MembershipRequestMembershipStatus = "ALL" + MembershipRequestMembershipStatusDECLINED MembershipRequestMembershipStatus = "DECLINED" + MembershipRequestMembershipStatusINACTIVE MembershipRequestMembershipStatus = "INACTIVE" + MembershipRequestMembershipStatusPENDING MembershipRequestMembershipStatus = "PENDING" +) + +// Defines values for MembershipRequestMembershipType. +const ( + MembershipRequestMembershipTypePROJECT MembershipRequestMembershipType = "PROJECT" + MembershipRequestMembershipTypeUSERGROUP MembershipRequestMembershipType = "USERGROUP" + MembershipRequestMembershipTypeWORKSPACE MembershipRequestMembershipType = "WORKSPACE" +) + +// Defines values for NegativeBalanceRequestPeriod. +const ( + NegativeBalanceRequestPeriodMONTH NegativeBalanceRequestPeriod = "MONTH" + NegativeBalanceRequestPeriodYEAR NegativeBalanceRequestPeriod = "YEAR" +) + +// Defines values for NegativeBalanceRequestTimeUnit. +const ( + NegativeBalanceRequestTimeUnitDAYS NegativeBalanceRequestTimeUnit = "DAYS" + NegativeBalanceRequestTimeUnitHOURS NegativeBalanceRequestTimeUnit = "HOURS" +) + +// Defines values for NewsDtoUserRole. +const ( + NewsDtoUserRoleADMIN NewsDtoUserRole = "ADMIN" + NewsDtoUserRoleBILLING NewsDtoUserRole = "BILLING" + NewsDtoUserRoleMANAGER NewsDtoUserRole = "MANAGER" + NewsDtoUserRoleNOTIFIER NewsDtoUserRole = "NOTIFIER" + NewsDtoUserRoleSALESADMIN NewsDtoUserRole = "SALES_ADMIN" + NewsDtoUserRoleSALESAGENT NewsDtoUserRole = "SALES_AGENT" + NewsDtoUserRoleSALESPANEL NewsDtoUserRole = "SALES_PANEL" + NewsDtoUserRoleSUPPORTAGENT NewsDtoUserRole = "SUPPORT_AGENT" + NewsDtoUserRoleUSER NewsDtoUserRole = "USER" +) + +// Defines values for NewsDtoWorkspacePlan. +const ( + NewsDtoWorkspacePlanALL NewsDtoWorkspacePlan = "ALL" + NewsDtoWorkspacePlanFREE NewsDtoWorkspacePlan = "FREE" + NewsDtoWorkspacePlanPAID NewsDtoWorkspacePlan = "PAID" +) + +// Defines values for NewsRequestRole. +const ( + NewsRequestRoleADMIN NewsRequestRole = "ADMIN" + NewsRequestRoleBILLING NewsRequestRole = "BILLING" + NewsRequestRoleMANAGER NewsRequestRole = "MANAGER" + NewsRequestRoleNOTIFIER NewsRequestRole = "NOTIFIER" + NewsRequestRoleSALESADMIN NewsRequestRole = "SALES_ADMIN" + NewsRequestRoleSALESAGENT NewsRequestRole = "SALES_AGENT" + NewsRequestRoleSALESPANEL NewsRequestRole = "SALES_PANEL" + NewsRequestRoleSUPPORTAGENT NewsRequestRole = "SUPPORT_AGENT" + NewsRequestRoleUSER NewsRequestRole = "USER" +) + +// Defines values for NewsRequestWorkspacePlan. +const ( + NewsRequestWorkspacePlanALL NewsRequestWorkspacePlan = "ALL" + NewsRequestWorkspacePlanFREE NewsRequestWorkspacePlan = "FREE" + NewsRequestWorkspacePlanPAID NewsRequestWorkspacePlan = "PAID" +) + +// Defines values for NotificationDataDtoType. +const ( + NotificationDataDtoTypeACCOUNTVERIFICATION NotificationDataDtoType = "ACCOUNT_VERIFICATION" + NotificationDataDtoTypeCONTACTSALES NotificationDataDtoType = "CONTACT_SALES" + NotificationDataDtoTypeEMAILVERIFICATION NotificationDataDtoType = "EMAIL_VERIFICATION" + NotificationDataDtoTypeFEATURESUBSCRIPTION NotificationDataDtoType = "FEATURE_SUBSCRIPTION" + NotificationDataDtoTypeFILEIMPORTCOMPLETED NotificationDataDtoType = "FILE_IMPORT_COMPLETED" + NotificationDataDtoTypeMONITORING NotificationDataDtoType = "MONITORING" + NotificationDataDtoTypeNEWS NotificationDataDtoType = "NEWS" + NotificationDataDtoTypePAYMENTFAILED NotificationDataDtoType = "PAYMENT_FAILED" + NotificationDataDtoTypePUMBLECOUPON NotificationDataDtoType = "PUMBLE_COUPON" + NotificationDataDtoTypeUSERSETTINGS NotificationDataDtoType = "USER_SETTINGS" + NotificationDataDtoTypeWORKSPACECHANGED NotificationDataDtoType = "WORKSPACE_CHANGED" + NotificationDataDtoTypeWORKSPACEINVITATION NotificationDataDtoType = "WORKSPACE_INVITATION" +) + +// Defines values for NotificationDtoStatus. +const ( + READ NotificationDtoStatus = "READ" + UNREAD NotificationDtoStatus = "UNREAD" +) + +// Defines values for NotificationDtoType. +const ( + NotificationDtoTypeACCOUNTVERIFICATION NotificationDtoType = "ACCOUNT_VERIFICATION" + NotificationDtoTypeCONTACTSALES NotificationDtoType = "CONTACT_SALES" + NotificationDtoTypeEMAILVERIFICATION NotificationDtoType = "EMAIL_VERIFICATION" + NotificationDtoTypeFEATURESUBSCRIPTION NotificationDtoType = "FEATURE_SUBSCRIPTION" + NotificationDtoTypeFILEIMPORTCOMPLETED NotificationDtoType = "FILE_IMPORT_COMPLETED" + NotificationDtoTypeMONITORING NotificationDtoType = "MONITORING" + NotificationDtoTypeNEWS NotificationDtoType = "NEWS" + NotificationDtoTypePAYMENTFAILED NotificationDtoType = "PAYMENT_FAILED" + NotificationDtoTypePUMBLECOUPON NotificationDtoType = "PUMBLE_COUPON" + NotificationDtoTypeUSERSETTINGS NotificationDtoType = "USER_SETTINGS" + NotificationDtoTypeWORKSPACECHANGED NotificationDtoType = "WORKSPACE_CHANGED" + NotificationDtoTypeWORKSPACEINVITATION NotificationDtoType = "WORKSPACE_INVITATION" +) + +// Defines values for OrganizationDtoAutoLogin. +const ( + OrganizationDtoAutoLoginOAUTH2 OrganizationDtoAutoLogin = "OAUTH2" + OrganizationDtoAutoLoginOFF OrganizationDtoAutoLogin = "OFF" + OrganizationDtoAutoLoginSAML2 OrganizationDtoAutoLogin = "SAML2" +) + +// Defines values for OrganizationRequestAutoLogin. +const ( + OrganizationRequestAutoLoginOAUTH2 OrganizationRequestAutoLogin = "OAUTH2" + OrganizationRequestAutoLoginOFF OrganizationRequestAutoLogin = "OFF" + OrganizationRequestAutoLoginSAML2 OrganizationRequestAutoLogin = "SAML2" +) + +// Defines values for PatchProjectRequestChangeFields. +const ( + PatchProjectRequestChangeFieldsARCHIVED PatchProjectRequestChangeFields = "ARCHIVED" + PatchProjectRequestChangeFieldsBILLABLE PatchProjectRequestChangeFields = "BILLABLE" + PatchProjectRequestChangeFieldsCLIENT PatchProjectRequestChangeFields = "CLIENT" + PatchProjectRequestChangeFieldsCOLOR PatchProjectRequestChangeFields = "COLOR" + PatchProjectRequestChangeFieldsESTIMATE PatchProjectRequestChangeFields = "ESTIMATE" + PatchProjectRequestChangeFieldsHOURLYRATE PatchProjectRequestChangeFields = "HOURLY_RATE" + PatchProjectRequestChangeFieldsMEMBERS PatchProjectRequestChangeFields = "MEMBERS" + PatchProjectRequestChangeFieldsMEMBERSADD PatchProjectRequestChangeFields = "MEMBERS_ADD" + PatchProjectRequestChangeFieldsTASK PatchProjectRequestChangeFields = "TASK" + PatchProjectRequestChangeFieldsVISIBILITY PatchProjectRequestChangeFields = "VISIBILITY" +) + +// Defines values for PaymentCardInformationMonth. +const ( + APRIL PaymentCardInformationMonth = "APRIL" + AUGUST PaymentCardInformationMonth = "AUGUST" + DECEMBER PaymentCardInformationMonth = "DECEMBER" + FEBRUARY PaymentCardInformationMonth = "FEBRUARY" + JANUARY PaymentCardInformationMonth = "JANUARY" + JULY PaymentCardInformationMonth = "JULY" + JUNE PaymentCardInformationMonth = "JUNE" + MARCH PaymentCardInformationMonth = "MARCH" + MAY PaymentCardInformationMonth = "MAY" + NOVEMBER PaymentCardInformationMonth = "NOVEMBER" + OCTOBER PaymentCardInformationMonth = "OCTOBER" + SEPTEMBER PaymentCardInformationMonth = "SEPTEMBER" +) + +// Defines values for PaymentRequestType. +const ( + PaymentRequestTypeBASIC2021 PaymentRequestType = "BASIC_2021" + PaymentRequestTypeBASICYEAR2021 PaymentRequestType = "BASIC_YEAR_2021" + PaymentRequestTypeBUNDLE2024 PaymentRequestType = "BUNDLE_2024" + PaymentRequestTypeBUNDLEYEAR2024 PaymentRequestType = "BUNDLE_YEAR_2024" + PaymentRequestTypeENTERPRISE PaymentRequestType = "ENTERPRISE" + PaymentRequestTypeENTERPRISE2021 PaymentRequestType = "ENTERPRISE_2021" + PaymentRequestTypeENTERPRISEYEAR PaymentRequestType = "ENTERPRISE_YEAR" + PaymentRequestTypeENTERPRISEYEAR2021 PaymentRequestType = "ENTERPRISE_YEAR_2021" + PaymentRequestTypeFREE PaymentRequestType = "FREE" + PaymentRequestTypePREMIUM PaymentRequestType = "PREMIUM" + PaymentRequestTypePREMIUMYEAR PaymentRequestType = "PREMIUM_YEAR" + PaymentRequestTypePRO2021 PaymentRequestType = "PRO_2021" + PaymentRequestTypePROYEAR2021 PaymentRequestType = "PRO_YEAR_2021" + PaymentRequestTypeSELFHOSTED PaymentRequestType = "SELF_HOSTED" + PaymentRequestTypeSPECIAL PaymentRequestType = "SPECIAL" + PaymentRequestTypeSPECIALYEAR PaymentRequestType = "SPECIAL_YEAR" + PaymentRequestTypeSTANDARD2021 PaymentRequestType = "STANDARD_2021" + PaymentRequestTypeSTANDARDYEAR2021 PaymentRequestType = "STANDARD_YEAR_2021" + PaymentRequestTypeTRIAL PaymentRequestType = "TRIAL" +) + +// Defines values for PenalizeTimeEntryRequestPenaltyType. +const ( + DELETE PenalizeTimeEntryRequestPenaltyType = "DELETE" + END PenalizeTimeEntryRequestPenaltyType = "END" + SPLIT PenalizeTimeEntryRequestPenaltyType = "SPLIT" + START PenalizeTimeEntryRequestPenaltyType = "START" +) + +// Defines values for PolicyAssignmentFullDtoStatus. +const ( + PolicyAssignmentFullDtoStatusACTIVE PolicyAssignmentFullDtoStatus = "ACTIVE" + PolicyAssignmentFullDtoStatusINACTIVE PolicyAssignmentFullDtoStatus = "INACTIVE" +) + +// Defines values for PolicyDtoTimeUnit. +const ( + PolicyDtoTimeUnitDAYS PolicyDtoTimeUnit = "DAYS" + PolicyDtoTimeUnitHOURS PolicyDtoTimeUnit = "HOURS" +) + +// Defines values for PolicyFullDtoTimeUnit. +const ( + PolicyFullDtoTimeUnitDAYS PolicyFullDtoTimeUnit = "DAYS" + PolicyFullDtoTimeUnitHOURS PolicyFullDtoTimeUnit = "HOURS" +) + +// Defines values for PolicyRedactedDtoTimeUnit. +const ( + PolicyRedactedDtoTimeUnitDAYS PolicyRedactedDtoTimeUnit = "DAYS" + PolicyRedactedDtoTimeUnitHOURS PolicyRedactedDtoTimeUnit = "HOURS" +) + +// Defines values for ProjectTotalsRequestStatusFilter. +const ( + ProjectTotalsRequestStatusFilterALL ProjectTotalsRequestStatusFilter = "ALL" + ProjectTotalsRequestStatusFilterPUBLISHED ProjectTotalsRequestStatusFilter = "PUBLISHED" + ProjectTotalsRequestStatusFilterUNPUBLISHED ProjectTotalsRequestStatusFilter = "UNPUBLISHED" +) + +// Defines values for PublishAssignmentsRequestViewType. +const ( + PublishAssignmentsRequestViewTypeALL PublishAssignmentsRequestViewType = "ALL" + PublishAssignmentsRequestViewTypePROJECTS PublishAssignmentsRequestViewType = "PROJECTS" + PublishAssignmentsRequestViewTypeTEAM PublishAssignmentsRequestViewType = "TEAM" +) + +// Defines values for ReminderDtoDateRange. +const ( + ReminderDtoDateRangeDAY ReminderDtoDateRange = "DAY" + ReminderDtoDateRangeMONTH ReminderDtoDateRange = "MONTH" + ReminderDtoDateRangeWEEK ReminderDtoDateRange = "WEEK" +) + +// Defines values for SchedulingExcludeDayType. +const ( + SchedulingExcludeDayTypeHOLIDAY SchedulingExcludeDayType = "HOLIDAY" + SchedulingExcludeDayTypeTIMEOFF SchedulingExcludeDayType = "TIME_OFF" + SchedulingExcludeDayTypeWEEKEND SchedulingExcludeDayType = "WEEKEND" +) + +// Defines values for SchedulingSettingsDtoWhoCanCreateAssignments. +const ( + ADMINS SchedulingSettingsDtoWhoCanCreateAssignments = "ADMINS" + ADMINSANDPROJECTMANAGERS SchedulingSettingsDtoWhoCanCreateAssignments = "ADMINS_AND_PROJECT_MANAGERS" + ANYONE SchedulingSettingsDtoWhoCanCreateAssignments = "ANYONE" +) + +// Defines values for SchedulingUsersTotalsWithoutBillableDtoWorkingDays. +const ( + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysFRIDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "FRIDAY" + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysMONDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "MONDAY" + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysSATURDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "SATURDAY" + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysSUNDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "SUNDAY" + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysTHURSDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "THURSDAY" + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysTUESDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "TUESDAY" + SchedulingUsersTotalsWithoutBillableDtoWorkingDaysWEDNESDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "WEDNESDAY" +) + +// Defines values for SetWorkspaceMembershipStatusRequestMembershipStatus. +const ( + SetWorkspaceMembershipStatusRequestMembershipStatusACTIVE SetWorkspaceMembershipStatusRequestMembershipStatus = "ACTIVE" + SetWorkspaceMembershipStatusRequestMembershipStatusALL SetWorkspaceMembershipStatusRequestMembershipStatus = "ALL" + SetWorkspaceMembershipStatusRequestMembershipStatusDECLINED SetWorkspaceMembershipStatusRequestMembershipStatus = "DECLINED" + SetWorkspaceMembershipStatusRequestMembershipStatusINACTIVE SetWorkspaceMembershipStatusRequestMembershipStatus = "INACTIVE" + SetWorkspaceMembershipStatusRequestMembershipStatusPENDING SetWorkspaceMembershipStatusRequestMembershipStatus = "PENDING" +) + +// Defines values for StopStopwatchRequestState. +const ( + STOPPED StopStopwatchRequestState = "STOPPED" +) + +// Defines values for StripeInvoiceDtoCakeProduct. +const ( + StripeInvoiceDtoCakeProductBUNDLE StripeInvoiceDtoCakeProduct = "BUNDLE" + StripeInvoiceDtoCakeProductCLOCKIFY StripeInvoiceDtoCakeProduct = "CLOCKIFY" + StripeInvoiceDtoCakeProductMARKETPLACE StripeInvoiceDtoCakeProduct = "MARKETPLACE" + StripeInvoiceDtoCakeProductPLAKY StripeInvoiceDtoCakeProduct = "PLAKY" + StripeInvoiceDtoCakeProductPUMBLE StripeInvoiceDtoCakeProduct = "PUMBLE" + StripeInvoiceDtoCakeProductUNKNOWN StripeInvoiceDtoCakeProduct = "UNKNOWN" +) + +// Defines values for StripeInvoiceDtoDescription. +const ( + StripeInvoiceDtoDescriptionADDEDSEATS StripeInvoiceDtoDescription = "ADDED_SEATS" + StripeInvoiceDtoDescriptionMONTHLYRENEWAL StripeInvoiceDtoDescription = "MONTHLY_RENEWAL" + StripeInvoiceDtoDescriptionPLANUPGRADE StripeInvoiceDtoDescription = "PLAN_UPGRADE" + StripeInvoiceDtoDescriptionREMOVEDSEATS StripeInvoiceDtoDescription = "REMOVED_SEATS" + StripeInvoiceDtoDescriptionUNKNOWN StripeInvoiceDtoDescription = "UNKNOWN" + StripeInvoiceDtoDescriptionYEARLYRENEWAL StripeInvoiceDtoDescription = "YEARLY_RENEWAL" +) + +// Defines values for TaskDtoStatus. +const ( + TaskDtoStatusACTIVE TaskDtoStatus = "ACTIVE" + TaskDtoStatusALL TaskDtoStatus = "ALL" + TaskDtoStatusDONE TaskDtoStatus = "DONE" +) + +// Defines values for TaskDtoImplStatus. +const ( + TaskDtoImplStatusACTIVE TaskDtoImplStatus = "ACTIVE" + TaskDtoImplStatusALL TaskDtoImplStatus = "ALL" + TaskDtoImplStatusDONE TaskDtoImplStatus = "DONE" +) + +// Defines values for TaskFullDtoStatus. +const ( + TaskFullDtoStatusACTIVE TaskFullDtoStatus = "ACTIVE" + TaskFullDtoStatusALL TaskFullDtoStatus = "ALL" + TaskFullDtoStatusDONE TaskFullDtoStatus = "DONE" +) + +// Defines values for TimeEntriesPatchRequestChangeFields. +const ( + TimeEntriesPatchRequestChangeFieldsBILLABLE TimeEntriesPatchRequestChangeFields = "BILLABLE" + TimeEntriesPatchRequestChangeFieldsCUSTOMFIELDS TimeEntriesPatchRequestChangeFields = "CUSTOM_FIELDS" + TimeEntriesPatchRequestChangeFieldsDATE TimeEntriesPatchRequestChangeFields = "DATE" + TimeEntriesPatchRequestChangeFieldsDESCRIPTION TimeEntriesPatchRequestChangeFields = "DESCRIPTION" + TimeEntriesPatchRequestChangeFieldsPROJECT TimeEntriesPatchRequestChangeFields = "PROJECT" + TimeEntriesPatchRequestChangeFieldsTAG TimeEntriesPatchRequestChangeFields = "TAG" + TimeEntriesPatchRequestChangeFieldsTAGADD TimeEntriesPatchRequestChangeFields = "TAG_ADD" + TimeEntriesPatchRequestChangeFieldsTASK TimeEntriesPatchRequestChangeFields = "TASK" + TimeEntriesPatchRequestChangeFieldsTIME TimeEntriesPatchRequestChangeFields = "TIME" + TimeEntriesPatchRequestChangeFieldsTIMEINTERVAL TimeEntriesPatchRequestChangeFields = "TIMEINTERVAL" + TimeEntriesPatchRequestChangeFieldsTYPE TimeEntriesPatchRequestChangeFields = "TYPE" + TimeEntriesPatchRequestChangeFieldsUSER TimeEntriesPatchRequestChangeFields = "USER" +) + +// Defines values for TimeEntryDtoImplApprovalStatus. +const ( + TimeEntryDtoImplApprovalStatusAPPROVED TimeEntryDtoImplApprovalStatus = "APPROVED" + TimeEntryDtoImplApprovalStatusPENDING TimeEntryDtoImplApprovalStatus = "PENDING" + TimeEntryDtoImplApprovalStatusUNSUBMITTED TimeEntryDtoImplApprovalStatus = "UNSUBMITTED" +) + +// Defines values for TimeEntryFullDtoApprovalStatus. +const ( + TimeEntryFullDtoApprovalStatusAPPROVED TimeEntryFullDtoApprovalStatus = "APPROVED" + TimeEntryFullDtoApprovalStatusPENDING TimeEntryFullDtoApprovalStatus = "PENDING" + TimeEntryFullDtoApprovalStatusUNSUBMITTED TimeEntryFullDtoApprovalStatus = "UNSUBMITTED" +) + +// Defines values for TimeEntryInfoDtoType. +const ( + TimeEntryInfoDtoTypeBREAK TimeEntryInfoDtoType = "BREAK" + TimeEntryInfoDtoTypeHOLIDAY TimeEntryInfoDtoType = "HOLIDAY" + TimeEntryInfoDtoTypeREGULAR TimeEntryInfoDtoType = "REGULAR" + TimeEntryInfoDtoTypeTIMEOFF TimeEntryInfoDtoType = "TIME_OFF" +) + +// Defines values for TimeEntryUpdatedDtoApprovalStatus. +const ( + TimeEntryUpdatedDtoApprovalStatusAPPROVED TimeEntryUpdatedDtoApprovalStatus = "APPROVED" + TimeEntryUpdatedDtoApprovalStatusPENDING TimeEntryUpdatedDtoApprovalStatus = "PENDING" + TimeEntryUpdatedDtoApprovalStatusUNSUBMITTED TimeEntryUpdatedDtoApprovalStatus = "UNSUBMITTED" +) + +// Defines values for TimeEntryWithUsernameDtoApprovalStatus. +const ( + TimeEntryWithUsernameDtoApprovalStatusAPPROVED TimeEntryWithUsernameDtoApprovalStatus = "APPROVED" + TimeEntryWithUsernameDtoApprovalStatusPENDING TimeEntryWithUsernameDtoApprovalStatus = "PENDING" + TimeEntryWithUsernameDtoApprovalStatusUNSUBMITTED TimeEntryWithUsernameDtoApprovalStatus = "UNSUBMITTED" +) + +// Defines values for TimeEstimateDtoResetOption. +const ( + TimeEstimateDtoResetOptionMONTHLY TimeEstimateDtoResetOption = "MONTHLY" + TimeEstimateDtoResetOptionWEEKLY TimeEstimateDtoResetOption = "WEEKLY" + TimeEstimateDtoResetOptionYEARLY TimeEstimateDtoResetOption = "YEARLY" +) + +// Defines values for TimeEstimateDtoType. +const ( + TimeEstimateDtoTypeAUTO TimeEstimateDtoType = "AUTO" + TimeEstimateDtoTypeMANUAL TimeEstimateDtoType = "MANUAL" +) + +// Defines values for TimeEstimateRequestResetOption. +const ( + TimeEstimateRequestResetOptionMONTHLY TimeEstimateRequestResetOption = "MONTHLY" + TimeEstimateRequestResetOptionWEEKLY TimeEstimateRequestResetOption = "WEEKLY" + TimeEstimateRequestResetOptionYEARLY TimeEstimateRequestResetOption = "YEARLY" +) + +// Defines values for TimeEstimateRequestType. +const ( + TimeEstimateRequestTypeAUTO TimeEstimateRequestType = "AUTO" + TimeEstimateRequestTypeMANUAL TimeEstimateRequestType = "MANUAL" +) + +// Defines values for TimeOffRequestPeriodHalfDayPeriod. +const ( + FIRSTHALF TimeOffRequestPeriodHalfDayPeriod = "FIRST_HALF" + NOTDEFINED TimeOffRequestPeriodHalfDayPeriod = "NOT_DEFINED" + SECONDHALF TimeOffRequestPeriodHalfDayPeriod = "SECOND_HALF" +) + +// Defines values for TimeOffRequestStatusStatusType. +const ( + TimeOffRequestStatusStatusTypeALL TimeOffRequestStatusStatusType = "ALL" + TimeOffRequestStatusStatusTypeAPPROVED TimeOffRequestStatusStatusType = "APPROVED" + TimeOffRequestStatusStatusTypePENDING TimeOffRequestStatusStatusType = "PENDING" + TimeOffRequestStatusStatusTypeREJECTED TimeOffRequestStatusStatusType = "REJECTED" +) + +// Defines values for TrialActivationDataDtoFeaturesToActivate. +const ( + TrialActivationDataDtoFeaturesToActivateADDTIMEFOROTHERS TrialActivationDataDtoFeaturesToActivate = "ADD_TIME_FOR_OTHERS" + TrialActivationDataDtoFeaturesToActivateADMINPANEL TrialActivationDataDtoFeaturesToActivate = "ADMIN_PANEL" + TrialActivationDataDtoFeaturesToActivateALERTS TrialActivationDataDtoFeaturesToActivate = "ALERTS" + TrialActivationDataDtoFeaturesToActivateAPPROVAL TrialActivationDataDtoFeaturesToActivate = "APPROVAL" + TrialActivationDataDtoFeaturesToActivateATTENDANCEREPORT TrialActivationDataDtoFeaturesToActivate = "ATTENDANCE_REPORT" + TrialActivationDataDtoFeaturesToActivateAUDITLOG TrialActivationDataDtoFeaturesToActivate = "AUDIT_LOG" + TrialActivationDataDtoFeaturesToActivateAUTOMATICLOCK TrialActivationDataDtoFeaturesToActivate = "AUTOMATIC_LOCK" + TrialActivationDataDtoFeaturesToActivateBRANDEDREPORTS TrialActivationDataDtoFeaturesToActivate = "BRANDED_REPORTS" + TrialActivationDataDtoFeaturesToActivateBREAKS TrialActivationDataDtoFeaturesToActivate = "BREAKS" + TrialActivationDataDtoFeaturesToActivateBULKEDIT TrialActivationDataDtoFeaturesToActivate = "BULK_EDIT" + TrialActivationDataDtoFeaturesToActivateCLIENTCURRENCY TrialActivationDataDtoFeaturesToActivate = "CLIENT_CURRENCY" + TrialActivationDataDtoFeaturesToActivateCUSTOMFIELDS TrialActivationDataDtoFeaturesToActivate = "CUSTOM_FIELDS" + TrialActivationDataDtoFeaturesToActivateCUSTOMREPORTING TrialActivationDataDtoFeaturesToActivate = "CUSTOM_REPORTING" + TrialActivationDataDtoFeaturesToActivateCUSTOMSUBDOMAIN TrialActivationDataDtoFeaturesToActivate = "CUSTOM_SUBDOMAIN" + TrialActivationDataDtoFeaturesToActivateDECIMALFORMAT TrialActivationDataDtoFeaturesToActivate = "DECIMAL_FORMAT" + TrialActivationDataDtoFeaturesToActivateDISABLEMANUALMODE TrialActivationDataDtoFeaturesToActivate = "DISABLE_MANUAL_MODE" + TrialActivationDataDtoFeaturesToActivateEDITMEMBERPROFILE TrialActivationDataDtoFeaturesToActivate = "EDIT_MEMBER_PROFILE" + TrialActivationDataDtoFeaturesToActivateEXCLUDENONBILLABLEFROMESTIMATE TrialActivationDataDtoFeaturesToActivate = "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE" + TrialActivationDataDtoFeaturesToActivateEXPENSES TrialActivationDataDtoFeaturesToActivate = "EXPENSES" + TrialActivationDataDtoFeaturesToActivateFAVORITEENTRIES TrialActivationDataDtoFeaturesToActivate = "FAVORITE_ENTRIES" + TrialActivationDataDtoFeaturesToActivateFILEIMPORT TrialActivationDataDtoFeaturesToActivate = "FILE_IMPORT" + TrialActivationDataDtoFeaturesToActivateFORECASTING TrialActivationDataDtoFeaturesToActivate = "FORECASTING" + TrialActivationDataDtoFeaturesToActivateHIDEPAGES TrialActivationDataDtoFeaturesToActivate = "HIDE_PAGES" + TrialActivationDataDtoFeaturesToActivateHISTORICRATES TrialActivationDataDtoFeaturesToActivate = "HISTORIC_RATES" + TrialActivationDataDtoFeaturesToActivateINVOICEEMAILS TrialActivationDataDtoFeaturesToActivate = "INVOICE_EMAILS" + TrialActivationDataDtoFeaturesToActivateINVOICING TrialActivationDataDtoFeaturesToActivate = "INVOICING" + TrialActivationDataDtoFeaturesToActivateKIOSK TrialActivationDataDtoFeaturesToActivate = "KIOSK" + TrialActivationDataDtoFeaturesToActivateKIOSKPINREQUIRED TrialActivationDataDtoFeaturesToActivate = "KIOSK_PIN_REQUIRED" + TrialActivationDataDtoFeaturesToActivateKIOSKSESSIONDURATION TrialActivationDataDtoFeaturesToActivate = "KIOSK_SESSION_DURATION" + TrialActivationDataDtoFeaturesToActivateLABORCOST TrialActivationDataDtoFeaturesToActivate = "LABOR_COST" + TrialActivationDataDtoFeaturesToActivateLOCATIONS TrialActivationDataDtoFeaturesToActivate = "LOCATIONS" + TrialActivationDataDtoFeaturesToActivateMANAGERROLE TrialActivationDataDtoFeaturesToActivate = "MANAGER_ROLE" + TrialActivationDataDtoFeaturesToActivateMULTIFACTORAUTHENTICATION TrialActivationDataDtoFeaturesToActivate = "MULTI_FACTOR_AUTHENTICATION" + TrialActivationDataDtoFeaturesToActivatePROJECTBUDGET TrialActivationDataDtoFeaturesToActivate = "PROJECT_BUDGET" + TrialActivationDataDtoFeaturesToActivatePROJECTTEMPLATES TrialActivationDataDtoFeaturesToActivate = "PROJECT_TEMPLATES" + TrialActivationDataDtoFeaturesToActivateQUICKBOOKSINTEGRATION TrialActivationDataDtoFeaturesToActivate = "QUICKBOOKS_INTEGRATION" + TrialActivationDataDtoFeaturesToActivateRECURRINGESTIMATES TrialActivationDataDtoFeaturesToActivate = "RECURRING_ESTIMATES" + TrialActivationDataDtoFeaturesToActivateREQUIREDFIELDS TrialActivationDataDtoFeaturesToActivate = "REQUIRED_FIELDS" + TrialActivationDataDtoFeaturesToActivateSCHEDULEDREPORTS TrialActivationDataDtoFeaturesToActivate = "SCHEDULED_REPORTS" + TrialActivationDataDtoFeaturesToActivateSCHEDULING TrialActivationDataDtoFeaturesToActivate = "SCHEDULING" + TrialActivationDataDtoFeaturesToActivateSCHEDULINGFORECASTING TrialActivationDataDtoFeaturesToActivate = "SCHEDULING_FORECASTING" + TrialActivationDataDtoFeaturesToActivateSCREENSHOTS TrialActivationDataDtoFeaturesToActivate = "SCREENSHOTS" + TrialActivationDataDtoFeaturesToActivateSPLITTIMEENTRY TrialActivationDataDtoFeaturesToActivate = "SPLIT_TIME_ENTRY" + TrialActivationDataDtoFeaturesToActivateSSO TrialActivationDataDtoFeaturesToActivate = "SSO" + TrialActivationDataDtoFeaturesToActivateSUMMARYESTIMATE TrialActivationDataDtoFeaturesToActivate = "SUMMARY_ESTIMATE" + TrialActivationDataDtoFeaturesToActivateTARGETSANDREMINDERS TrialActivationDataDtoFeaturesToActivate = "TARGETS_AND_REMINDERS" + TrialActivationDataDtoFeaturesToActivateTASKRATES TrialActivationDataDtoFeaturesToActivate = "TASK_RATES" + TrialActivationDataDtoFeaturesToActivateTIMEOFF TrialActivationDataDtoFeaturesToActivate = "TIME_OFF" + TrialActivationDataDtoFeaturesToActivateTIMETRACKING TrialActivationDataDtoFeaturesToActivate = "TIME_TRACKING" + TrialActivationDataDtoFeaturesToActivateUNLIMITEDREPORTS TrialActivationDataDtoFeaturesToActivate = "UNLIMITED_REPORTS" + TrialActivationDataDtoFeaturesToActivateUSERCUSTOMFIELDS TrialActivationDataDtoFeaturesToActivate = "USER_CUSTOM_FIELDS" + TrialActivationDataDtoFeaturesToActivateWHOCANCHANGETIMEENTRYBILLABILITY TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY" + TrialActivationDataDtoFeaturesToActivateWHOCANSEEALLTIMEENTRIES TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_ALL_TIME_ENTRIES" + TrialActivationDataDtoFeaturesToActivateWHOCANSEEPROJECTSTATUS TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_PROJECT_STATUS" + TrialActivationDataDtoFeaturesToActivateWHOCANSEEPUBLICPROJECTSENTRIES TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES" + TrialActivationDataDtoFeaturesToActivateWHOCANSEETEAMSDASHBOARD TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_TEAMS_DASHBOARD" + TrialActivationDataDtoFeaturesToActivateWORKSPACELOCKTIMEENTRIES TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_LOCK_TIMEENTRIES" + TrialActivationDataDtoFeaturesToActivateWORKSPACETIMEAUDIT TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_TIME_AUDIT" + TrialActivationDataDtoFeaturesToActivateWORKSPACETIMEROUNDING TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_TIME_ROUNDING" + TrialActivationDataDtoFeaturesToActivateWORKSPACETRANSFER TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_TRANSFER" +) + +// Defines values for UpdateApprovalRequestState. +const ( + UpdateApprovalRequestStateAPPROVED UpdateApprovalRequestState = "APPROVED" + UpdateApprovalRequestStatePENDING UpdateApprovalRequestState = "PENDING" + UpdateApprovalRequestStateREJECTED UpdateApprovalRequestState = "REJECTED" + UpdateApprovalRequestStateWITHDRAWNAPPROVAL UpdateApprovalRequestState = "WITHDRAWN_APPROVAL" + UpdateApprovalRequestStateWITHDRAWNSUBMISSION UpdateApprovalRequestState = "WITHDRAWN_SUBMISSION" +) + +// Defines values for UpdateApprovalSettingsRequestApprovalPeriod. +const ( + MONTHLY UpdateApprovalSettingsRequestApprovalPeriod = "MONTHLY" + SEMIMONTHLY UpdateApprovalSettingsRequestApprovalPeriod = "SEMI_MONTHLY" + WEEKLY UpdateApprovalSettingsRequestApprovalPeriod = "WEEKLY" +) + +// Defines values for UpdateApprovalSettingsRequestApprovalRoles. +const ( + UpdateApprovalSettingsRequestApprovalRolesADMIN UpdateApprovalSettingsRequestApprovalRoles = "ADMIN" + UpdateApprovalSettingsRequestApprovalRolesPROJECTMANAGER UpdateApprovalSettingsRequestApprovalRoles = "PROJECT_MANAGER" + UpdateApprovalSettingsRequestApprovalRolesTEAMMANAGER UpdateApprovalSettingsRequestApprovalRoles = "TEAM_MANAGER" +) + +// Defines values for UpdateCustomFieldRequestSourceType. +const ( + UpdateCustomFieldRequestSourceTypePROJECT UpdateCustomFieldRequestSourceType = "PROJECT" + UpdateCustomFieldRequestSourceTypeTIMEENTRY UpdateCustomFieldRequestSourceType = "TIMEENTRY" + UpdateCustomFieldRequestSourceTypeWORKSPACE UpdateCustomFieldRequestSourceType = "WORKSPACE" +) + +// Defines values for UpdateDashboardSelectionDashboardSelection. +const ( + UpdateDashboardSelectionDashboardSelectionME UpdateDashboardSelectionDashboardSelection = "ME" + UpdateDashboardSelectionDashboardSelectionTEAM UpdateDashboardSelectionDashboardSelection = "TEAM" +) + +// Defines values for UpdateExpenseRequestChangeFields. +const ( + UpdateExpenseRequestChangeFieldsAMOUNT UpdateExpenseRequestChangeFields = "AMOUNT" + UpdateExpenseRequestChangeFieldsBILLABLE UpdateExpenseRequestChangeFields = "BILLABLE" + UpdateExpenseRequestChangeFieldsCATEGORY UpdateExpenseRequestChangeFields = "CATEGORY" + UpdateExpenseRequestChangeFieldsDATE UpdateExpenseRequestChangeFields = "DATE" + UpdateExpenseRequestChangeFieldsFILE UpdateExpenseRequestChangeFields = "FILE" + UpdateExpenseRequestChangeFieldsNOTES UpdateExpenseRequestChangeFields = "NOTES" + UpdateExpenseRequestChangeFieldsPROJECT UpdateExpenseRequestChangeFields = "PROJECT" + UpdateExpenseRequestChangeFieldsTASK UpdateExpenseRequestChangeFields = "TASK" + UpdateExpenseRequestChangeFieldsUSER UpdateExpenseRequestChangeFields = "USER" +) + +// Defines values for UpdateKioskStatusRequestStatus. +const ( + UpdateKioskStatusRequestStatusACTIVE UpdateKioskStatusRequestStatus = "ACTIVE" + UpdateKioskStatusRequestStatusDELETED UpdateKioskStatusRequestStatus = "DELETED" + UpdateKioskStatusRequestStatusINACTIVE UpdateKioskStatusRequestStatus = "INACTIVE" +) + +// Defines values for UpdateQuantityRequestSeatType. +const ( + UpdateQuantityRequestSeatTypeLIMITED UpdateQuantityRequestSeatType = "LIMITED" + UpdateQuantityRequestSeatTypeREGULAR UpdateQuantityRequestSeatType = "REGULAR" +) + +// Defines values for UpdateRoleRequestRole. +const ( + OWNER UpdateRoleRequestRole = "OWNER" + PROJECTMANAGER UpdateRoleRequestRole = "PROJECT_MANAGER" + TEAMMANAGER UpdateRoleRequestRole = "TEAM_MANAGER" + WORKSPACEADMIN UpdateRoleRequestRole = "WORKSPACE_ADMIN" +) + +// Defines values for UpdateWorkspaceSettingsRequestAdminOnlyPages. +const ( + UpdateWorkspaceSettingsRequestAdminOnlyPagesPROJECT UpdateWorkspaceSettingsRequestAdminOnlyPages = "PROJECT" + UpdateWorkspaceSettingsRequestAdminOnlyPagesREPORTS UpdateWorkspaceSettingsRequestAdminOnlyPages = "REPORTS" + UpdateWorkspaceSettingsRequestAdminOnlyPagesTEAM UpdateWorkspaceSettingsRequestAdminOnlyPages = "TEAM" +) + +// Defines values for UpdateWorkspaceSettingsRequestCurrencyFormat. +const ( + UpdateWorkspaceSettingsRequestCurrencyFormatCURRENCYSPACEVALUE UpdateWorkspaceSettingsRequestCurrencyFormat = "CURRENCY_SPACE_VALUE" + UpdateWorkspaceSettingsRequestCurrencyFormatCURRENCYVALUE UpdateWorkspaceSettingsRequestCurrencyFormat = "CURRENCY_VALUE" + UpdateWorkspaceSettingsRequestCurrencyFormatVALUECURRENCY UpdateWorkspaceSettingsRequestCurrencyFormat = "VALUE_CURRENCY" + UpdateWorkspaceSettingsRequestCurrencyFormatVALUESPACECURRENCY UpdateWorkspaceSettingsRequestCurrencyFormat = "VALUE_SPACE_CURRENCY" +) + +// Defines values for UpdateWorkspaceSettingsRequestDurationFormat. +const ( + UpdateWorkspaceSettingsRequestDurationFormatCOMPACT UpdateWorkspaceSettingsRequestDurationFormat = "COMPACT" + UpdateWorkspaceSettingsRequestDurationFormatDECIMAL UpdateWorkspaceSettingsRequestDurationFormat = "DECIMAL" + UpdateWorkspaceSettingsRequestDurationFormatFULL UpdateWorkspaceSettingsRequestDurationFormat = "FULL" +) + +// Defines values for UpdateWorkspaceSettingsRequestNumberFormat. +const ( + UpdateWorkspaceSettingsRequestNumberFormatCOMMAPERIOD UpdateWorkspaceSettingsRequestNumberFormat = "COMMA_PERIOD" + UpdateWorkspaceSettingsRequestNumberFormatPERIODCOMMA UpdateWorkspaceSettingsRequestNumberFormat = "PERIOD_COMMA" + UpdateWorkspaceSettingsRequestNumberFormatQUOTATIONMARKPERIOD UpdateWorkspaceSettingsRequestNumberFormat = "QUOTATION_MARK_PERIOD" + UpdateWorkspaceSettingsRequestNumberFormatSPACECOMMA UpdateWorkspaceSettingsRequestNumberFormat = "SPACE_COMMA" +) + +// Defines values for UpdateWorkspaceSettingsRequestTimeTrackingMode. +const ( + UpdateWorkspaceSettingsRequestTimeTrackingModeDEFAULT UpdateWorkspaceSettingsRequestTimeTrackingMode = "DEFAULT" + UpdateWorkspaceSettingsRequestTimeTrackingModeSTOPWATCHONLY UpdateWorkspaceSettingsRequestTimeTrackingMode = "STOPWATCH_ONLY" +) + +// Defines values for UserAdminDtoStatus. +const ( + UserAdminDtoStatusACTIVE UserAdminDtoStatus = "ACTIVE" + UserAdminDtoStatusDELETED UserAdminDtoStatus = "DELETED" + UserAdminDtoStatusLIMITED UserAdminDtoStatus = "LIMITED" + UserAdminDtoStatusLIMITEDDELETED UserAdminDtoStatus = "LIMITED_DELETED" + UserAdminDtoStatusNOTREGISTERED UserAdminDtoStatus = "NOT_REGISTERED" + UserAdminDtoStatusPENDINGEMAILVERIFICATION UserAdminDtoStatus = "PENDING_EMAIL_VERIFICATION" +) + +// Defines values for UserAssignmentsRequestStatusFilter. +const ( + UserAssignmentsRequestStatusFilterALL UserAssignmentsRequestStatusFilter = "ALL" + UserAssignmentsRequestStatusFilterPUBLISHED UserAssignmentsRequestStatusFilter = "PUBLISHED" + UserAssignmentsRequestStatusFilterUNPUBLISHED UserAssignmentsRequestStatusFilter = "UNPUBLISHED" +) + +// Defines values for UserDtoStatus. +const ( + UserDtoStatusACTIVE UserDtoStatus = "ACTIVE" + UserDtoStatusDELETED UserDtoStatus = "DELETED" + UserDtoStatusLIMITED UserDtoStatus = "LIMITED" + UserDtoStatusLIMITEDDELETED UserDtoStatus = "LIMITED_DELETED" + UserDtoStatusNOTREGISTERED UserDtoStatus = "NOT_REGISTERED" + UserDtoStatusPENDINGEMAILVERIFICATION UserDtoStatus = "PENDING_EMAIL_VERIFICATION" +) + +// Defines values for UserInfoWithMembershipStatusDtoMembershipStatus. +const ( + UserInfoWithMembershipStatusDtoMembershipStatusACTIVE UserInfoWithMembershipStatusDtoMembershipStatus = "ACTIVE" + UserInfoWithMembershipStatusDtoMembershipStatusALL UserInfoWithMembershipStatusDtoMembershipStatus = "ALL" + UserInfoWithMembershipStatusDtoMembershipStatusDECLINED UserInfoWithMembershipStatusDtoMembershipStatus = "DECLINED" + UserInfoWithMembershipStatusDtoMembershipStatusINACTIVE UserInfoWithMembershipStatusDtoMembershipStatus = "INACTIVE" + UserInfoWithMembershipStatusDtoMembershipStatusPENDING UserInfoWithMembershipStatusDtoMembershipStatus = "PENDING" +) + +// Defines values for UserSettingsDtoDashboardSelection. +const ( + UserSettingsDtoDashboardSelectionME UserSettingsDtoDashboardSelection = "ME" + UserSettingsDtoDashboardSelectionTEAM UserSettingsDtoDashboardSelection = "TEAM" +) + +// Defines values for UserSettingsDtoDashboardViewType. +const ( + UserSettingsDtoDashboardViewTypeBILLABILITY UserSettingsDtoDashboardViewType = "BILLABILITY" + UserSettingsDtoDashboardViewTypePROJECT UserSettingsDtoDashboardViewType = "PROJECT" +) + +// Defines values for UserSettingsDtoTheme. +const ( + UserSettingsDtoThemeDARK UserSettingsDtoTheme = "DARK" + UserSettingsDtoThemeDEFAULT UserSettingsDtoTheme = "DEFAULT" +) + +// Defines values for UserSettingsDtoWeekStart. +const ( + UserSettingsDtoWeekStartFRIDAY UserSettingsDtoWeekStart = "FRIDAY" + UserSettingsDtoWeekStartMONDAY UserSettingsDtoWeekStart = "MONDAY" + UserSettingsDtoWeekStartSATURDAY UserSettingsDtoWeekStart = "SATURDAY" + UserSettingsDtoWeekStartSUNDAY UserSettingsDtoWeekStart = "SUNDAY" + UserSettingsDtoWeekStartTHURSDAY UserSettingsDtoWeekStart = "THURSDAY" + UserSettingsDtoWeekStartTUESDAY UserSettingsDtoWeekStart = "TUESDAY" + UserSettingsDtoWeekStartWEDNESDAY UserSettingsDtoWeekStart = "WEDNESDAY" +) + +// Defines values for WalkthroughDtoUnfinished. +const ( + INITIALAPPSWITCHER WalkthroughDtoUnfinished = "INITIAL_APP_SWITCHER" +) + +// Defines values for WebhookDtoTriggerSourceType. +const ( + WebhookDtoTriggerSourceTypeASSIGNMENTID WebhookDtoTriggerSourceType = "ASSIGNMENT_ID" + WebhookDtoTriggerSourceTypeEXPENSEID WebhookDtoTriggerSourceType = "EXPENSE_ID" + WebhookDtoTriggerSourceTypeINVOICEID WebhookDtoTriggerSourceType = "INVOICE_ID" + WebhookDtoTriggerSourceTypePROJECTID WebhookDtoTriggerSourceType = "PROJECT_ID" + WebhookDtoTriggerSourceTypeTAGID WebhookDtoTriggerSourceType = "TAG_ID" + WebhookDtoTriggerSourceTypeTASKID WebhookDtoTriggerSourceType = "TASK_ID" + WebhookDtoTriggerSourceTypeUSERGROUPID WebhookDtoTriggerSourceType = "USER_GROUP_ID" + WebhookDtoTriggerSourceTypeUSERID WebhookDtoTriggerSourceType = "USER_ID" + WebhookDtoTriggerSourceTypeWORKSPACEID WebhookDtoTriggerSourceType = "WORKSPACE_ID" +) + +// Defines values for WebhookDtoWebhookEvent. +const ( + WebhookDtoWebhookEventAPPROVALREQUESTSTATUSUPDATED WebhookDtoWebhookEvent = "APPROVAL_REQUEST_STATUS_UPDATED" + WebhookDtoWebhookEventASSIGNMENTCREATED WebhookDtoWebhookEvent = "ASSIGNMENT_CREATED" + WebhookDtoWebhookEventASSIGNMENTDELETED WebhookDtoWebhookEvent = "ASSIGNMENT_DELETED" + WebhookDtoWebhookEventASSIGNMENTPUBLISHED WebhookDtoWebhookEvent = "ASSIGNMENT_PUBLISHED" + WebhookDtoWebhookEventASSIGNMENTUPDATED WebhookDtoWebhookEvent = "ASSIGNMENT_UPDATED" + WebhookDtoWebhookEventBALANCEUPDATED WebhookDtoWebhookEvent = "BALANCE_UPDATED" + WebhookDtoWebhookEventCLIENTDELETED WebhookDtoWebhookEvent = "CLIENT_DELETED" + WebhookDtoWebhookEventCLIENTUPDATED WebhookDtoWebhookEvent = "CLIENT_UPDATED" + WebhookDtoWebhookEventEXPENSECREATED WebhookDtoWebhookEvent = "EXPENSE_CREATED" + WebhookDtoWebhookEventEXPENSEDELETED WebhookDtoWebhookEvent = "EXPENSE_DELETED" + WebhookDtoWebhookEventEXPENSERESTORED WebhookDtoWebhookEvent = "EXPENSE_RESTORED" + WebhookDtoWebhookEventEXPENSEUPDATED WebhookDtoWebhookEvent = "EXPENSE_UPDATED" + WebhookDtoWebhookEventINVOICEUPDATED WebhookDtoWebhookEvent = "INVOICE_UPDATED" + WebhookDtoWebhookEventNEWAPPROVALREQUEST WebhookDtoWebhookEvent = "NEW_APPROVAL_REQUEST" + WebhookDtoWebhookEventNEWCLIENT WebhookDtoWebhookEvent = "NEW_CLIENT" + WebhookDtoWebhookEventNEWINVOICE WebhookDtoWebhookEvent = "NEW_INVOICE" + WebhookDtoWebhookEventNEWPROJECT WebhookDtoWebhookEvent = "NEW_PROJECT" + WebhookDtoWebhookEventNEWTAG WebhookDtoWebhookEvent = "NEW_TAG" + WebhookDtoWebhookEventNEWTASK WebhookDtoWebhookEvent = "NEW_TASK" + WebhookDtoWebhookEventNEWTIMEENTRY WebhookDtoWebhookEvent = "NEW_TIME_ENTRY" + WebhookDtoWebhookEventNEWTIMERSTARTED WebhookDtoWebhookEvent = "NEW_TIMER_STARTED" + WebhookDtoWebhookEventRESEND WebhookDtoWebhookEvent = "RESEND" + WebhookDtoWebhookEventTAGDELETED WebhookDtoWebhookEvent = "TAG_DELETED" + WebhookDtoWebhookEventTAGUPDATED WebhookDtoWebhookEvent = "TAG_UPDATED" + WebhookDtoWebhookEventTASKDELETED WebhookDtoWebhookEvent = "TASK_DELETED" + WebhookDtoWebhookEventTASKUPDATED WebhookDtoWebhookEvent = "TASK_UPDATED" + WebhookDtoWebhookEventTEST WebhookDtoWebhookEvent = "TEST" + WebhookDtoWebhookEventTIMEENTRYDELETED WebhookDtoWebhookEvent = "TIME_ENTRY_DELETED" + WebhookDtoWebhookEventTIMEENTRYRESTORED WebhookDtoWebhookEvent = "TIME_ENTRY_RESTORED" + WebhookDtoWebhookEventTIMEENTRYSPLIT WebhookDtoWebhookEvent = "TIME_ENTRY_SPLIT" + WebhookDtoWebhookEventTIMEENTRYUPDATED WebhookDtoWebhookEvent = "TIME_ENTRY_UPDATED" + WebhookDtoWebhookEventTIMEOFFREQUESTAPPROVED WebhookDtoWebhookEvent = "TIME_OFF_REQUEST_APPROVED" + WebhookDtoWebhookEventTIMEOFFREQUESTED WebhookDtoWebhookEvent = "TIME_OFF_REQUESTED" + WebhookDtoWebhookEventTIMEOFFREQUESTREJECTED WebhookDtoWebhookEvent = "TIME_OFF_REQUEST_REJECTED" + WebhookDtoWebhookEventTIMEOFFREQUESTWITHDRAWN WebhookDtoWebhookEvent = "TIME_OFF_REQUEST_WITHDRAWN" + WebhookDtoWebhookEventTIMERSTOPPED WebhookDtoWebhookEvent = "TIMER_STOPPED" + WebhookDtoWebhookEventUSERACTIVATEDONWORKSPACE WebhookDtoWebhookEvent = "USER_ACTIVATED_ON_WORKSPACE" + WebhookDtoWebhookEventUSERDEACTIVATEDONWORKSPACE WebhookDtoWebhookEvent = "USER_DEACTIVATED_ON_WORKSPACE" + WebhookDtoWebhookEventUSERDELETEDFROMWORKSPACE WebhookDtoWebhookEvent = "USER_DELETED_FROM_WORKSPACE" + WebhookDtoWebhookEventUSEREMAILCHANGED WebhookDtoWebhookEvent = "USER_EMAIL_CHANGED" + WebhookDtoWebhookEventUSERJOINEDWORKSPACE WebhookDtoWebhookEvent = "USER_JOINED_WORKSPACE" + WebhookDtoWebhookEventUSERUPDATED WebhookDtoWebhookEvent = "USER_UPDATED" +) + +// Defines values for WebhookRequestTriggerSourceType. +const ( + WebhookRequestTriggerSourceTypeASSIGNMENTID WebhookRequestTriggerSourceType = "ASSIGNMENT_ID" + WebhookRequestTriggerSourceTypeEXPENSEID WebhookRequestTriggerSourceType = "EXPENSE_ID" + WebhookRequestTriggerSourceTypeINVOICEID WebhookRequestTriggerSourceType = "INVOICE_ID" + WebhookRequestTriggerSourceTypePROJECTID WebhookRequestTriggerSourceType = "PROJECT_ID" + WebhookRequestTriggerSourceTypeTAGID WebhookRequestTriggerSourceType = "TAG_ID" + WebhookRequestTriggerSourceTypeTASKID WebhookRequestTriggerSourceType = "TASK_ID" + WebhookRequestTriggerSourceTypeUSERGROUPID WebhookRequestTriggerSourceType = "USER_GROUP_ID" + WebhookRequestTriggerSourceTypeUSERID WebhookRequestTriggerSourceType = "USER_ID" + WebhookRequestTriggerSourceTypeWORKSPACEID WebhookRequestTriggerSourceType = "WORKSPACE_ID" +) + +// Defines values for WebhookRequestWebhookEvent. +const ( + WebhookRequestWebhookEventAPPROVALREQUESTSTATUSUPDATED WebhookRequestWebhookEvent = "APPROVAL_REQUEST_STATUS_UPDATED" + WebhookRequestWebhookEventASSIGNMENTCREATED WebhookRequestWebhookEvent = "ASSIGNMENT_CREATED" + WebhookRequestWebhookEventASSIGNMENTDELETED WebhookRequestWebhookEvent = "ASSIGNMENT_DELETED" + WebhookRequestWebhookEventASSIGNMENTPUBLISHED WebhookRequestWebhookEvent = "ASSIGNMENT_PUBLISHED" + WebhookRequestWebhookEventASSIGNMENTUPDATED WebhookRequestWebhookEvent = "ASSIGNMENT_UPDATED" + WebhookRequestWebhookEventBALANCEUPDATED WebhookRequestWebhookEvent = "BALANCE_UPDATED" + WebhookRequestWebhookEventCLIENTDELETED WebhookRequestWebhookEvent = "CLIENT_DELETED" + WebhookRequestWebhookEventCLIENTUPDATED WebhookRequestWebhookEvent = "CLIENT_UPDATED" + WebhookRequestWebhookEventEXPENSECREATED WebhookRequestWebhookEvent = "EXPENSE_CREATED" + WebhookRequestWebhookEventEXPENSEDELETED WebhookRequestWebhookEvent = "EXPENSE_DELETED" + WebhookRequestWebhookEventEXPENSERESTORED WebhookRequestWebhookEvent = "EXPENSE_RESTORED" + WebhookRequestWebhookEventEXPENSEUPDATED WebhookRequestWebhookEvent = "EXPENSE_UPDATED" + WebhookRequestWebhookEventINVOICEUPDATED WebhookRequestWebhookEvent = "INVOICE_UPDATED" + WebhookRequestWebhookEventNEWAPPROVALREQUEST WebhookRequestWebhookEvent = "NEW_APPROVAL_REQUEST" + WebhookRequestWebhookEventNEWCLIENT WebhookRequestWebhookEvent = "NEW_CLIENT" + WebhookRequestWebhookEventNEWINVOICE WebhookRequestWebhookEvent = "NEW_INVOICE" + WebhookRequestWebhookEventNEWPROJECT WebhookRequestWebhookEvent = "NEW_PROJECT" + WebhookRequestWebhookEventNEWTAG WebhookRequestWebhookEvent = "NEW_TAG" + WebhookRequestWebhookEventNEWTASK WebhookRequestWebhookEvent = "NEW_TASK" + WebhookRequestWebhookEventNEWTIMEENTRY WebhookRequestWebhookEvent = "NEW_TIME_ENTRY" + WebhookRequestWebhookEventNEWTIMERSTARTED WebhookRequestWebhookEvent = "NEW_TIMER_STARTED" + WebhookRequestWebhookEventRESEND WebhookRequestWebhookEvent = "RESEND" + WebhookRequestWebhookEventTAGDELETED WebhookRequestWebhookEvent = "TAG_DELETED" + WebhookRequestWebhookEventTAGUPDATED WebhookRequestWebhookEvent = "TAG_UPDATED" + WebhookRequestWebhookEventTASKDELETED WebhookRequestWebhookEvent = "TASK_DELETED" + WebhookRequestWebhookEventTASKUPDATED WebhookRequestWebhookEvent = "TASK_UPDATED" + WebhookRequestWebhookEventTEST WebhookRequestWebhookEvent = "TEST" + WebhookRequestWebhookEventTIMEENTRYDELETED WebhookRequestWebhookEvent = "TIME_ENTRY_DELETED" + WebhookRequestWebhookEventTIMEENTRYRESTORED WebhookRequestWebhookEvent = "TIME_ENTRY_RESTORED" + WebhookRequestWebhookEventTIMEENTRYSPLIT WebhookRequestWebhookEvent = "TIME_ENTRY_SPLIT" + WebhookRequestWebhookEventTIMEENTRYUPDATED WebhookRequestWebhookEvent = "TIME_ENTRY_UPDATED" + WebhookRequestWebhookEventTIMEOFFREQUESTAPPROVED WebhookRequestWebhookEvent = "TIME_OFF_REQUEST_APPROVED" + WebhookRequestWebhookEventTIMEOFFREQUESTED WebhookRequestWebhookEvent = "TIME_OFF_REQUESTED" + WebhookRequestWebhookEventTIMEOFFREQUESTREJECTED WebhookRequestWebhookEvent = "TIME_OFF_REQUEST_REJECTED" + WebhookRequestWebhookEventTIMEOFFREQUESTWITHDRAWN WebhookRequestWebhookEvent = "TIME_OFF_REQUEST_WITHDRAWN" + WebhookRequestWebhookEventTIMERSTOPPED WebhookRequestWebhookEvent = "TIMER_STOPPED" + WebhookRequestWebhookEventUSERACTIVATEDONWORKSPACE WebhookRequestWebhookEvent = "USER_ACTIVATED_ON_WORKSPACE" + WebhookRequestWebhookEventUSERDEACTIVATEDONWORKSPACE WebhookRequestWebhookEvent = "USER_DEACTIVATED_ON_WORKSPACE" + WebhookRequestWebhookEventUSERDELETEDFROMWORKSPACE WebhookRequestWebhookEvent = "USER_DELETED_FROM_WORKSPACE" + WebhookRequestWebhookEventUSEREMAILCHANGED WebhookRequestWebhookEvent = "USER_EMAIL_CHANGED" + WebhookRequestWebhookEventUSERJOINEDWORKSPACE WebhookRequestWebhookEvent = "USER_JOINED_WORKSPACE" + WebhookRequestWebhookEventUSERUPDATED WebhookRequestWebhookEvent = "USER_UPDATED" +) + +// Defines values for WorkspaceDtoFeatureSubscriptionType. +const ( + WorkspaceDtoFeatureSubscriptionTypeBASIC2021 WorkspaceDtoFeatureSubscriptionType = "BASIC_2021" + WorkspaceDtoFeatureSubscriptionTypeBASICYEAR2021 WorkspaceDtoFeatureSubscriptionType = "BASIC_YEAR_2021" + WorkspaceDtoFeatureSubscriptionTypeBUNDLE2024 WorkspaceDtoFeatureSubscriptionType = "BUNDLE_2024" + WorkspaceDtoFeatureSubscriptionTypeBUNDLEYEAR2024 WorkspaceDtoFeatureSubscriptionType = "BUNDLE_YEAR_2024" + WorkspaceDtoFeatureSubscriptionTypeENTERPRISE WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE" + WorkspaceDtoFeatureSubscriptionTypeENTERPRISE2021 WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE_2021" + WorkspaceDtoFeatureSubscriptionTypeENTERPRISEYEAR WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE_YEAR" + WorkspaceDtoFeatureSubscriptionTypeENTERPRISEYEAR2021 WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE_YEAR_2021" + WorkspaceDtoFeatureSubscriptionTypeFREE WorkspaceDtoFeatureSubscriptionType = "FREE" + WorkspaceDtoFeatureSubscriptionTypePREMIUM WorkspaceDtoFeatureSubscriptionType = "PREMIUM" + WorkspaceDtoFeatureSubscriptionTypePREMIUMYEAR WorkspaceDtoFeatureSubscriptionType = "PREMIUM_YEAR" + WorkspaceDtoFeatureSubscriptionTypePRO2021 WorkspaceDtoFeatureSubscriptionType = "PRO_2021" + WorkspaceDtoFeatureSubscriptionTypePROYEAR2021 WorkspaceDtoFeatureSubscriptionType = "PRO_YEAR_2021" + WorkspaceDtoFeatureSubscriptionTypeSELFHOSTED WorkspaceDtoFeatureSubscriptionType = "SELF_HOSTED" + WorkspaceDtoFeatureSubscriptionTypeSPECIAL WorkspaceDtoFeatureSubscriptionType = "SPECIAL" + WorkspaceDtoFeatureSubscriptionTypeSPECIALYEAR WorkspaceDtoFeatureSubscriptionType = "SPECIAL_YEAR" + WorkspaceDtoFeatureSubscriptionTypeSTANDARD2021 WorkspaceDtoFeatureSubscriptionType = "STANDARD_2021" + WorkspaceDtoFeatureSubscriptionTypeSTANDARDYEAR2021 WorkspaceDtoFeatureSubscriptionType = "STANDARD_YEAR_2021" + WorkspaceDtoFeatureSubscriptionTypeTRIAL WorkspaceDtoFeatureSubscriptionType = "TRIAL" +) + +// Defines values for WorkspaceDtoFeatures. +const ( + WorkspaceDtoFeaturesADDTIMEFOROTHERS WorkspaceDtoFeatures = "ADD_TIME_FOR_OTHERS" + WorkspaceDtoFeaturesADMINPANEL WorkspaceDtoFeatures = "ADMIN_PANEL" + WorkspaceDtoFeaturesALERTS WorkspaceDtoFeatures = "ALERTS" + WorkspaceDtoFeaturesAPPROVAL WorkspaceDtoFeatures = "APPROVAL" + WorkspaceDtoFeaturesATTENDANCEREPORT WorkspaceDtoFeatures = "ATTENDANCE_REPORT" + WorkspaceDtoFeaturesAUDITLOG WorkspaceDtoFeatures = "AUDIT_LOG" + WorkspaceDtoFeaturesAUTOMATICLOCK WorkspaceDtoFeatures = "AUTOMATIC_LOCK" + WorkspaceDtoFeaturesBRANDEDREPORTS WorkspaceDtoFeatures = "BRANDED_REPORTS" + WorkspaceDtoFeaturesBREAKS WorkspaceDtoFeatures = "BREAKS" + WorkspaceDtoFeaturesBULKEDIT WorkspaceDtoFeatures = "BULK_EDIT" + WorkspaceDtoFeaturesCLIENTCURRENCY WorkspaceDtoFeatures = "CLIENT_CURRENCY" + WorkspaceDtoFeaturesCUSTOMFIELDS WorkspaceDtoFeatures = "CUSTOM_FIELDS" + WorkspaceDtoFeaturesCUSTOMREPORTING WorkspaceDtoFeatures = "CUSTOM_REPORTING" + WorkspaceDtoFeaturesCUSTOMSUBDOMAIN WorkspaceDtoFeatures = "CUSTOM_SUBDOMAIN" + WorkspaceDtoFeaturesDECIMALFORMAT WorkspaceDtoFeatures = "DECIMAL_FORMAT" + WorkspaceDtoFeaturesDISABLEMANUALMODE WorkspaceDtoFeatures = "DISABLE_MANUAL_MODE" + WorkspaceDtoFeaturesEDITMEMBERPROFILE WorkspaceDtoFeatures = "EDIT_MEMBER_PROFILE" + WorkspaceDtoFeaturesEXCLUDENONBILLABLEFROMESTIMATE WorkspaceDtoFeatures = "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE" + WorkspaceDtoFeaturesEXPENSES WorkspaceDtoFeatures = "EXPENSES" + WorkspaceDtoFeaturesFAVORITEENTRIES WorkspaceDtoFeatures = "FAVORITE_ENTRIES" + WorkspaceDtoFeaturesFILEIMPORT WorkspaceDtoFeatures = "FILE_IMPORT" + WorkspaceDtoFeaturesFORECASTING WorkspaceDtoFeatures = "FORECASTING" + WorkspaceDtoFeaturesHIDEPAGES WorkspaceDtoFeatures = "HIDE_PAGES" + WorkspaceDtoFeaturesHISTORICRATES WorkspaceDtoFeatures = "HISTORIC_RATES" + WorkspaceDtoFeaturesINVOICEEMAILS WorkspaceDtoFeatures = "INVOICE_EMAILS" + WorkspaceDtoFeaturesINVOICING WorkspaceDtoFeatures = "INVOICING" + WorkspaceDtoFeaturesKIOSK WorkspaceDtoFeatures = "KIOSK" + WorkspaceDtoFeaturesKIOSKPINREQUIRED WorkspaceDtoFeatures = "KIOSK_PIN_REQUIRED" + WorkspaceDtoFeaturesKIOSKSESSIONDURATION WorkspaceDtoFeatures = "KIOSK_SESSION_DURATION" + WorkspaceDtoFeaturesLABORCOST WorkspaceDtoFeatures = "LABOR_COST" + WorkspaceDtoFeaturesLOCATIONS WorkspaceDtoFeatures = "LOCATIONS" + WorkspaceDtoFeaturesMANAGERROLE WorkspaceDtoFeatures = "MANAGER_ROLE" + WorkspaceDtoFeaturesMULTIFACTORAUTHENTICATION WorkspaceDtoFeatures = "MULTI_FACTOR_AUTHENTICATION" + WorkspaceDtoFeaturesPROJECTBUDGET WorkspaceDtoFeatures = "PROJECT_BUDGET" + WorkspaceDtoFeaturesPROJECTTEMPLATES WorkspaceDtoFeatures = "PROJECT_TEMPLATES" + WorkspaceDtoFeaturesQUICKBOOKSINTEGRATION WorkspaceDtoFeatures = "QUICKBOOKS_INTEGRATION" + WorkspaceDtoFeaturesRECURRINGESTIMATES WorkspaceDtoFeatures = "RECURRING_ESTIMATES" + WorkspaceDtoFeaturesREQUIREDFIELDS WorkspaceDtoFeatures = "REQUIRED_FIELDS" + WorkspaceDtoFeaturesSCHEDULEDREPORTS WorkspaceDtoFeatures = "SCHEDULED_REPORTS" + WorkspaceDtoFeaturesSCHEDULING WorkspaceDtoFeatures = "SCHEDULING" + WorkspaceDtoFeaturesSCHEDULINGFORECASTING WorkspaceDtoFeatures = "SCHEDULING_FORECASTING" + WorkspaceDtoFeaturesSCREENSHOTS WorkspaceDtoFeatures = "SCREENSHOTS" + WorkspaceDtoFeaturesSPLITTIMEENTRY WorkspaceDtoFeatures = "SPLIT_TIME_ENTRY" + WorkspaceDtoFeaturesSSO WorkspaceDtoFeatures = "SSO" + WorkspaceDtoFeaturesSUMMARYESTIMATE WorkspaceDtoFeatures = "SUMMARY_ESTIMATE" + WorkspaceDtoFeaturesTARGETSANDREMINDERS WorkspaceDtoFeatures = "TARGETS_AND_REMINDERS" + WorkspaceDtoFeaturesTASKRATES WorkspaceDtoFeatures = "TASK_RATES" + WorkspaceDtoFeaturesTIMEOFF WorkspaceDtoFeatures = "TIME_OFF" + WorkspaceDtoFeaturesTIMETRACKING WorkspaceDtoFeatures = "TIME_TRACKING" + WorkspaceDtoFeaturesUNLIMITEDREPORTS WorkspaceDtoFeatures = "UNLIMITED_REPORTS" + WorkspaceDtoFeaturesUSERCUSTOMFIELDS WorkspaceDtoFeatures = "USER_CUSTOM_FIELDS" + WorkspaceDtoFeaturesWHOCANCHANGETIMEENTRYBILLABILITY WorkspaceDtoFeatures = "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY" + WorkspaceDtoFeaturesWHOCANSEEALLTIMEENTRIES WorkspaceDtoFeatures = "WHO_CAN_SEE_ALL_TIME_ENTRIES" + WorkspaceDtoFeaturesWHOCANSEEPROJECTSTATUS WorkspaceDtoFeatures = "WHO_CAN_SEE_PROJECT_STATUS" + WorkspaceDtoFeaturesWHOCANSEEPUBLICPROJECTSENTRIES WorkspaceDtoFeatures = "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES" + WorkspaceDtoFeaturesWHOCANSEETEAMSDASHBOARD WorkspaceDtoFeatures = "WHO_CAN_SEE_TEAMS_DASHBOARD" + WorkspaceDtoFeaturesWORKSPACELOCKTIMEENTRIES WorkspaceDtoFeatures = "WORKSPACE_LOCK_TIMEENTRIES" + WorkspaceDtoFeaturesWORKSPACETIMEAUDIT WorkspaceDtoFeatures = "WORKSPACE_TIME_AUDIT" + WorkspaceDtoFeaturesWORKSPACETIMEROUNDING WorkspaceDtoFeatures = "WORKSPACE_TIME_ROUNDING" + WorkspaceDtoFeaturesWORKSPACETRANSFER WorkspaceDtoFeatures = "WORKSPACE_TRANSFER" +) + +// Defines values for WorkspaceOverviewDtoFeatureSubscriptionType. +const ( + WorkspaceOverviewDtoFeatureSubscriptionTypeBASIC2021 WorkspaceOverviewDtoFeatureSubscriptionType = "BASIC_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeBASICYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "BASIC_YEAR_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeBUNDLE2024 WorkspaceOverviewDtoFeatureSubscriptionType = "BUNDLE_2024" + WorkspaceOverviewDtoFeatureSubscriptionTypeBUNDLEYEAR2024 WorkspaceOverviewDtoFeatureSubscriptionType = "BUNDLE_YEAR_2024" + WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISE WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE" + WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISE2021 WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISEYEAR WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE_YEAR" + WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISEYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE_YEAR_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeFREE WorkspaceOverviewDtoFeatureSubscriptionType = "FREE" + WorkspaceOverviewDtoFeatureSubscriptionTypePREMIUM WorkspaceOverviewDtoFeatureSubscriptionType = "PREMIUM" + WorkspaceOverviewDtoFeatureSubscriptionTypePREMIUMYEAR WorkspaceOverviewDtoFeatureSubscriptionType = "PREMIUM_YEAR" + WorkspaceOverviewDtoFeatureSubscriptionTypePRO2021 WorkspaceOverviewDtoFeatureSubscriptionType = "PRO_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypePROYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "PRO_YEAR_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeSELFHOSTED WorkspaceOverviewDtoFeatureSubscriptionType = "SELF_HOSTED" + WorkspaceOverviewDtoFeatureSubscriptionTypeSPECIAL WorkspaceOverviewDtoFeatureSubscriptionType = "SPECIAL" + WorkspaceOverviewDtoFeatureSubscriptionTypeSPECIALYEAR WorkspaceOverviewDtoFeatureSubscriptionType = "SPECIAL_YEAR" + WorkspaceOverviewDtoFeatureSubscriptionTypeSTANDARD2021 WorkspaceOverviewDtoFeatureSubscriptionType = "STANDARD_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeSTANDARDYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "STANDARD_YEAR_2021" + WorkspaceOverviewDtoFeatureSubscriptionTypeTRIAL WorkspaceOverviewDtoFeatureSubscriptionType = "TRIAL" +) + +// Defines values for WorkspaceOverviewDtoFeatures. +const ( + WorkspaceOverviewDtoFeaturesADDTIMEFOROTHERS WorkspaceOverviewDtoFeatures = "ADD_TIME_FOR_OTHERS" + WorkspaceOverviewDtoFeaturesADMINPANEL WorkspaceOverviewDtoFeatures = "ADMIN_PANEL" + WorkspaceOverviewDtoFeaturesALERTS WorkspaceOverviewDtoFeatures = "ALERTS" + WorkspaceOverviewDtoFeaturesAPPROVAL WorkspaceOverviewDtoFeatures = "APPROVAL" + WorkspaceOverviewDtoFeaturesATTENDANCEREPORT WorkspaceOverviewDtoFeatures = "ATTENDANCE_REPORT" + WorkspaceOverviewDtoFeaturesAUDITLOG WorkspaceOverviewDtoFeatures = "AUDIT_LOG" + WorkspaceOverviewDtoFeaturesAUTOMATICLOCK WorkspaceOverviewDtoFeatures = "AUTOMATIC_LOCK" + WorkspaceOverviewDtoFeaturesBRANDEDREPORTS WorkspaceOverviewDtoFeatures = "BRANDED_REPORTS" + WorkspaceOverviewDtoFeaturesBREAKS WorkspaceOverviewDtoFeatures = "BREAKS" + WorkspaceOverviewDtoFeaturesBULKEDIT WorkspaceOverviewDtoFeatures = "BULK_EDIT" + WorkspaceOverviewDtoFeaturesCLIENTCURRENCY WorkspaceOverviewDtoFeatures = "CLIENT_CURRENCY" + WorkspaceOverviewDtoFeaturesCUSTOMFIELDS WorkspaceOverviewDtoFeatures = "CUSTOM_FIELDS" + WorkspaceOverviewDtoFeaturesCUSTOMREPORTING WorkspaceOverviewDtoFeatures = "CUSTOM_REPORTING" + WorkspaceOverviewDtoFeaturesCUSTOMSUBDOMAIN WorkspaceOverviewDtoFeatures = "CUSTOM_SUBDOMAIN" + WorkspaceOverviewDtoFeaturesDECIMALFORMAT WorkspaceOverviewDtoFeatures = "DECIMAL_FORMAT" + WorkspaceOverviewDtoFeaturesDISABLEMANUALMODE WorkspaceOverviewDtoFeatures = "DISABLE_MANUAL_MODE" + WorkspaceOverviewDtoFeaturesEDITMEMBERPROFILE WorkspaceOverviewDtoFeatures = "EDIT_MEMBER_PROFILE" + WorkspaceOverviewDtoFeaturesEXCLUDENONBILLABLEFROMESTIMATE WorkspaceOverviewDtoFeatures = "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE" + WorkspaceOverviewDtoFeaturesEXPENSES WorkspaceOverviewDtoFeatures = "EXPENSES" + WorkspaceOverviewDtoFeaturesFAVORITEENTRIES WorkspaceOverviewDtoFeatures = "FAVORITE_ENTRIES" + WorkspaceOverviewDtoFeaturesFILEIMPORT WorkspaceOverviewDtoFeatures = "FILE_IMPORT" + WorkspaceOverviewDtoFeaturesFORECASTING WorkspaceOverviewDtoFeatures = "FORECASTING" + WorkspaceOverviewDtoFeaturesHIDEPAGES WorkspaceOverviewDtoFeatures = "HIDE_PAGES" + WorkspaceOverviewDtoFeaturesHISTORICRATES WorkspaceOverviewDtoFeatures = "HISTORIC_RATES" + WorkspaceOverviewDtoFeaturesINVOICEEMAILS WorkspaceOverviewDtoFeatures = "INVOICE_EMAILS" + WorkspaceOverviewDtoFeaturesINVOICING WorkspaceOverviewDtoFeatures = "INVOICING" + WorkspaceOverviewDtoFeaturesKIOSK WorkspaceOverviewDtoFeatures = "KIOSK" + WorkspaceOverviewDtoFeaturesKIOSKPINREQUIRED WorkspaceOverviewDtoFeatures = "KIOSK_PIN_REQUIRED" + WorkspaceOverviewDtoFeaturesKIOSKSESSIONDURATION WorkspaceOverviewDtoFeatures = "KIOSK_SESSION_DURATION" + WorkspaceOverviewDtoFeaturesLABORCOST WorkspaceOverviewDtoFeatures = "LABOR_COST" + WorkspaceOverviewDtoFeaturesLOCATIONS WorkspaceOverviewDtoFeatures = "LOCATIONS" + WorkspaceOverviewDtoFeaturesMANAGERROLE WorkspaceOverviewDtoFeatures = "MANAGER_ROLE" + WorkspaceOverviewDtoFeaturesMULTIFACTORAUTHENTICATION WorkspaceOverviewDtoFeatures = "MULTI_FACTOR_AUTHENTICATION" + WorkspaceOverviewDtoFeaturesPROJECTBUDGET WorkspaceOverviewDtoFeatures = "PROJECT_BUDGET" + WorkspaceOverviewDtoFeaturesPROJECTTEMPLATES WorkspaceOverviewDtoFeatures = "PROJECT_TEMPLATES" + WorkspaceOverviewDtoFeaturesQUICKBOOKSINTEGRATION WorkspaceOverviewDtoFeatures = "QUICKBOOKS_INTEGRATION" + WorkspaceOverviewDtoFeaturesRECURRINGESTIMATES WorkspaceOverviewDtoFeatures = "RECURRING_ESTIMATES" + WorkspaceOverviewDtoFeaturesREQUIREDFIELDS WorkspaceOverviewDtoFeatures = "REQUIRED_FIELDS" + WorkspaceOverviewDtoFeaturesSCHEDULEDREPORTS WorkspaceOverviewDtoFeatures = "SCHEDULED_REPORTS" + WorkspaceOverviewDtoFeaturesSCHEDULING WorkspaceOverviewDtoFeatures = "SCHEDULING" + WorkspaceOverviewDtoFeaturesSCHEDULINGFORECASTING WorkspaceOverviewDtoFeatures = "SCHEDULING_FORECASTING" + WorkspaceOverviewDtoFeaturesSCREENSHOTS WorkspaceOverviewDtoFeatures = "SCREENSHOTS" + WorkspaceOverviewDtoFeaturesSPLITTIMEENTRY WorkspaceOverviewDtoFeatures = "SPLIT_TIME_ENTRY" + WorkspaceOverviewDtoFeaturesSSO WorkspaceOverviewDtoFeatures = "SSO" + WorkspaceOverviewDtoFeaturesSUMMARYESTIMATE WorkspaceOverviewDtoFeatures = "SUMMARY_ESTIMATE" + WorkspaceOverviewDtoFeaturesTARGETSANDREMINDERS WorkspaceOverviewDtoFeatures = "TARGETS_AND_REMINDERS" + WorkspaceOverviewDtoFeaturesTASKRATES WorkspaceOverviewDtoFeatures = "TASK_RATES" + WorkspaceOverviewDtoFeaturesTIMEOFF WorkspaceOverviewDtoFeatures = "TIME_OFF" + WorkspaceOverviewDtoFeaturesTIMETRACKING WorkspaceOverviewDtoFeatures = "TIME_TRACKING" + WorkspaceOverviewDtoFeaturesUNLIMITEDREPORTS WorkspaceOverviewDtoFeatures = "UNLIMITED_REPORTS" + WorkspaceOverviewDtoFeaturesUSERCUSTOMFIELDS WorkspaceOverviewDtoFeatures = "USER_CUSTOM_FIELDS" + WorkspaceOverviewDtoFeaturesWHOCANCHANGETIMEENTRYBILLABILITY WorkspaceOverviewDtoFeatures = "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY" + WorkspaceOverviewDtoFeaturesWHOCANSEEALLTIMEENTRIES WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_ALL_TIME_ENTRIES" + WorkspaceOverviewDtoFeaturesWHOCANSEEPROJECTSTATUS WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_PROJECT_STATUS" + WorkspaceOverviewDtoFeaturesWHOCANSEEPUBLICPROJECTSENTRIES WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES" + WorkspaceOverviewDtoFeaturesWHOCANSEETEAMSDASHBOARD WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_TEAMS_DASHBOARD" + WorkspaceOverviewDtoFeaturesWORKSPACELOCKTIMEENTRIES WorkspaceOverviewDtoFeatures = "WORKSPACE_LOCK_TIMEENTRIES" + WorkspaceOverviewDtoFeaturesWORKSPACETIMEAUDIT WorkspaceOverviewDtoFeatures = "WORKSPACE_TIME_AUDIT" + WorkspaceOverviewDtoFeaturesWORKSPACETIMEROUNDING WorkspaceOverviewDtoFeatures = "WORKSPACE_TIME_ROUNDING" + WorkspaceOverviewDtoFeaturesWORKSPACETRANSFER WorkspaceOverviewDtoFeatures = "WORKSPACE_TRANSFER" +) + +// Defines values for WorkspaceSettingsDtoAdminOnlyPages. +const ( + WorkspaceSettingsDtoAdminOnlyPagesPROJECT WorkspaceSettingsDtoAdminOnlyPages = "PROJECT" + WorkspaceSettingsDtoAdminOnlyPagesREPORTS WorkspaceSettingsDtoAdminOnlyPages = "REPORTS" + WorkspaceSettingsDtoAdminOnlyPagesTEAM WorkspaceSettingsDtoAdminOnlyPages = "TEAM" +) + +// Defines values for WorkspaceSettingsDtoCurrencyFormat. +const ( + WorkspaceSettingsDtoCurrencyFormatCURRENCYSPACEVALUE WorkspaceSettingsDtoCurrencyFormat = "CURRENCY_SPACE_VALUE" + WorkspaceSettingsDtoCurrencyFormatCURRENCYVALUE WorkspaceSettingsDtoCurrencyFormat = "CURRENCY_VALUE" + WorkspaceSettingsDtoCurrencyFormatVALUECURRENCY WorkspaceSettingsDtoCurrencyFormat = "VALUE_CURRENCY" + WorkspaceSettingsDtoCurrencyFormatVALUESPACECURRENCY WorkspaceSettingsDtoCurrencyFormat = "VALUE_SPACE_CURRENCY" +) + +// Defines values for WorkspaceSettingsDtoDurationFormat. +const ( + WorkspaceSettingsDtoDurationFormatCOMPACT WorkspaceSettingsDtoDurationFormat = "COMPACT" + WorkspaceSettingsDtoDurationFormatDECIMAL WorkspaceSettingsDtoDurationFormat = "DECIMAL" + WorkspaceSettingsDtoDurationFormatFULL WorkspaceSettingsDtoDurationFormat = "FULL" +) + +// Defines values for WorkspaceSettingsDtoNumberFormat. +const ( + WorkspaceSettingsDtoNumberFormatCOMMAPERIOD WorkspaceSettingsDtoNumberFormat = "COMMA_PERIOD" + WorkspaceSettingsDtoNumberFormatPERIODCOMMA WorkspaceSettingsDtoNumberFormat = "PERIOD_COMMA" + WorkspaceSettingsDtoNumberFormatQUOTATIONMARKPERIOD WorkspaceSettingsDtoNumberFormat = "QUOTATION_MARK_PERIOD" + WorkspaceSettingsDtoNumberFormatSPACECOMMA WorkspaceSettingsDtoNumberFormat = "SPACE_COMMA" +) + +// Defines values for WorkspaceSettingsDtoTimeTrackingMode. +const ( + WorkspaceSettingsDtoTimeTrackingModeDEFAULT WorkspaceSettingsDtoTimeTrackingMode = "DEFAULT" + WorkspaceSettingsDtoTimeTrackingModeSTOPWATCHONLY WorkspaceSettingsDtoTimeTrackingMode = "STOPWATCH_ONLY" +) + +// Defines values for WorkspaceSettingsDtoWeekStart. +const ( + WorkspaceSettingsDtoWeekStartFRIDAY WorkspaceSettingsDtoWeekStart = "FRIDAY" + WorkspaceSettingsDtoWeekStartMONDAY WorkspaceSettingsDtoWeekStart = "MONDAY" + WorkspaceSettingsDtoWeekStartSATURDAY WorkspaceSettingsDtoWeekStart = "SATURDAY" + WorkspaceSettingsDtoWeekStartSUNDAY WorkspaceSettingsDtoWeekStart = "SUNDAY" + WorkspaceSettingsDtoWeekStartTHURSDAY WorkspaceSettingsDtoWeekStart = "THURSDAY" + WorkspaceSettingsDtoWeekStartTUESDAY WorkspaceSettingsDtoWeekStart = "TUESDAY" + WorkspaceSettingsDtoWeekStartWEDNESDAY WorkspaceSettingsDtoWeekStart = "WEDNESDAY" +) + +// Defines values for WorkspaceSettingsDtoWorkingDays. +const ( + FRIDAY WorkspaceSettingsDtoWorkingDays = "FRIDAY" + MONDAY WorkspaceSettingsDtoWorkingDays = "MONDAY" + SATURDAY WorkspaceSettingsDtoWorkingDays = "SATURDAY" + SUNDAY WorkspaceSettingsDtoWorkingDays = "SUNDAY" + THURSDAY WorkspaceSettingsDtoWorkingDays = "THURSDAY" + TUESDAY WorkspaceSettingsDtoWorkingDays = "TUESDAY" + WEDNESDAY WorkspaceSettingsDtoWorkingDays = "WEDNESDAY" +) + +// Defines values for WorkspaceTransferPossibleDtoReason. +const ( + WorkspaceTransferPossibleDtoReasonACCOUNTONDESTINATION WorkspaceTransferPossibleDtoReason = "ACCOUNT_ON_DESTINATION" + WorkspaceTransferPossibleDtoReasonBUNDLESUBSCRIPTION WorkspaceTransferPossibleDtoReason = "BUNDLE_SUBSCRIPTION" + WorkspaceTransferPossibleDtoReasonCAKEMIGRATION WorkspaceTransferPossibleDtoReason = "CAKE_MIGRATION" + WorkspaceTransferPossibleDtoReasonCUSTOMPRICE WorkspaceTransferPossibleDtoReason = "CUSTOM_PRICE" + WorkspaceTransferPossibleDtoReasonDEFAULT WorkspaceTransferPossibleDtoReason = "DEFAULT" + WorkspaceTransferPossibleDtoReasonNOACTIVESUBSCRIPTION WorkspaceTransferPossibleDtoReason = "NO_ACTIVE_SUBSCRIPTION" + WorkspaceTransferPossibleDtoReasonUNPAIDINVOICES WorkspaceTransferPossibleDtoReason = "UNPAID_INVOICES" + WorkspaceTransferPossibleDtoReasonWORKSPACELOCKED WorkspaceTransferPossibleDtoReason = "WORKSPACE_LOCKED" +) + +// Defines values for IsAvailableParamsPinContext. +const ( + IsAvailableParamsPinContextADMIN IsAvailableParamsPinContext = "ADMIN" + IsAvailableParamsPinContextINITIAL IsAvailableParamsPinContext = "INITIAL" + IsAvailableParamsPinContextUNIVERSAL IsAvailableParamsPinContext = "UNIVERSAL" + IsAvailableParamsPinContextUSER IsAvailableParamsPinContext = "USER" +) + +// Defines values for GeneratePinCodeParamsContext. +const ( + GeneratePinCodeParamsContextADMIN GeneratePinCodeParamsContext = "ADMIN" + GeneratePinCodeParamsContextINITIAL GeneratePinCodeParamsContext = "INITIAL" + GeneratePinCodeParamsContextUNIVERSAL GeneratePinCodeParamsContext = "UNIVERSAL" + GeneratePinCodeParamsContextUSER GeneratePinCodeParamsContext = "USER" +) + +// Defines values for GetUsers3ParamsStatusFilter. +const ( + GetUsers3ParamsStatusFilterALL GetUsers3ParamsStatusFilter = "ALL" + GetUsers3ParamsStatusFilterPUBLISHED GetUsers3ParamsStatusFilter = "PUBLISHED" + GetUsers3ParamsStatusFilterUNPUBLISHED GetUsers3ParamsStatusFilter = "UNPUBLISHED" +) + +// Defines values for GetProjects1ParamsStatusFilter. +const ( + ALL GetProjects1ParamsStatusFilter = "ALL" + PUBLISHED GetProjects1ParamsStatusFilter = "PUBLISHED" + UNPUBLISHED GetProjects1ParamsStatusFilter = "UNPUBLISHED" +) + +// ABTestingDto defines model for ABTestingDto. +type ABTestingDto struct { + AbTestingEnabled *bool `json:"abTestingEnabled,omitempty"` + AbTestingType *ABTestingDtoAbTestingType `json:"abTestingType,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ABTestingDtoAbTestingType defines model for ABTestingDto.AbTestingType. +type ABTestingDtoAbTestingType string + +// ActivateTemplateRequest defines model for ActivateTemplateRequest. +type ActivateTemplateRequest struct { + ActivateOption *ActivateTemplateRequestActivateOption `json:"activateOption,omitempty"` + WeekStart openapi_types.Date `json:"weekStart"` +} + +// ActivateTemplateRequestActivateOption defines model for ActivateTemplateRequest.ActivateOption. +type ActivateTemplateRequestActivateOption string + +// ActiveMembersDto defines model for ActiveMembersDto. +type ActiveMembersDto struct { + ActiveLimitedMembersCount *int32 `json:"activeLimitedMembersCount,omitempty"` + ActiveMembersCount *int32 `json:"activeMembersCount,omitempty"` + OrganizationLimitedMembersCount *int32 `json:"organizationLimitedMembersCount,omitempty"` + OrganizationMembersCount *int32 `json:"organizationMembersCount,omitempty"` +} + +// AddAndRemoveProjectPermissionsRequest defines model for AddAndRemoveProjectPermissionsRequest. +type AddAndRemoveProjectPermissionsRequest struct { + Permissions []string `json:"permissions"` +} + +// AddEmailRequest defines model for AddEmailRequest. +type AddEmailRequest struct { + Email *string `json:"email,omitempty"` +} + +// AddLimitedUserToWorkspaceRequest defines model for AddLimitedUserToWorkspaceRequest. +type AddLimitedUserToWorkspaceRequest struct { + Names []string `json:"names"` +} + +// AddOrRemoveUsersFromUserGroups defines model for AddOrRemoveUsersFromUserGroups. +type AddOrRemoveUsersFromUserGroups struct { + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + UserId *string `json:"userId,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` +} + +// AddProfilePictureRequest defines model for AddProfilePictureRequest. +type AddProfilePictureRequest struct { + ImageUrl *string `json:"imageUrl,omitempty"` +} + +// AddUsersToProjectRequest defines model for AddUsersToProjectRequest. +type AddUsersToProjectRequest struct { + Exclude *bool `json:"exclude,omitempty"` + ExcludeGivenIds *bool `json:"excludeGivenIds,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` +} + +// AddUsersToWorkspaceRequest defines model for AddUsersToWorkspaceRequest. +type AddUsersToWorkspaceRequest struct { + Captcha *CaptchaResponseDto `json:"captcha,omitempty"` + CaptchaValue *CaptchaResponseDto `json:"captchaValue,omitempty"` + DoNotSendEmail *bool `json:"doNotSendEmail,omitempty"` + Emails *[]string `json:"emails,omitempty"` +} + +// AddonComponentDto defines model for AddonComponentDto. +type AddonComponentDto struct { + AccessLevel AddonComponentDtoAccessLevel `json:"accessLevel"` + Height *int32 `json:"height,omitempty"` + IconPath *string `json:"iconPath,omitempty"` + Label *string `json:"label,omitempty"` + Options *map[string]map[string]interface{} `json:"options,omitempty"` + Path string `json:"path"` + Type string `json:"type"` + Width *int32 `json:"width,omitempty"` +} + +// AddonComponentDtoAccessLevel defines model for AddonComponentDto.AccessLevel. +type AddonComponentDtoAccessLevel string + +// AddonDto defines model for AddonDto. +type AddonDto struct { + AddonApiToken *string `json:"addonApiToken,omitempty"` + AddonKey *string `json:"addonKey,omitempty"` + Components *[]AddonComponentDto `json:"components,omitempty"` + Description *string `json:"description,omitempty"` + IconPath *string `json:"iconPath,omitempty"` + Id *string `json:"id,omitempty"` + MinimalSubscriptionPlan *AddonDtoMinimalSubscriptionPlan `json:"minimalSubscriptionPlan,omitempty"` + Name *string `json:"name,omitempty"` + SelfHostedSettings *AddonSelfHostedSettingsDto `json:"selfHostedSettings,omitempty"` + Settings *AddonSettingsDto `json:"settings,omitempty"` + Status *AddonDtoStatus `json:"status,omitempty"` + StatusChangeDate *time.Time `json:"statusChangeDate,omitempty"` + Url *string `json:"url,omitempty"` + UserId *string `json:"userId,omitempty"` + WebhookIds *[]string `json:"webhookIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// AddonDtoMinimalSubscriptionPlan defines model for AddonDto.MinimalSubscriptionPlan. +type AddonDtoMinimalSubscriptionPlan string + +// AddonDtoStatus defines model for AddonDto.Status. +type AddonDtoStatus string + +// AddonInstallRequest defines model for AddonInstallRequest. +type AddonInstallRequest struct { + ManifestUrl *Url `json:"manifestUrl,omitempty"` + Url *string `json:"url,omitempty"` +} + +// AddonKeysRequest defines model for AddonKeysRequest. +type AddonKeysRequest struct { + Exclude *bool `json:"exclude,omitempty"` + Keys []string `json:"keys"` +} + +// AddonSelfHostedSettingsDto defines model for AddonSelfHostedSettingsDto. +type AddonSelfHostedSettingsDto struct { + Path string `json:"path"` +} + +// AddonSettingDto defines model for AddonSettingDto. +type AddonSettingDto struct { + AccessLevel string `json:"accessLevel"` + AllowedValues *[]string `json:"allowedValues,omitempty"` + Copyable *bool `json:"copyable,omitempty"` + Description *string `json:"description,omitempty"` + Id string `json:"id"` + Key *string `json:"key,omitempty"` + Name string `json:"name"` + Placeholder *string `json:"placeholder,omitempty"` + ReadOnly *bool `json:"readOnly,omitempty"` + Required *bool `json:"required,omitempty"` + Type AddonSettingDtoType `json:"type"` + Value map[string]interface{} `json:"value"` +} + +// AddonSettingDtoType defines model for AddonSettingDto.Type. +type AddonSettingDtoType string + +// AddonSettingsDto defines model for AddonSettingsDto. +type AddonSettingsDto struct { + Tabs *[]AddonSettingsTabDto `json:"tabs,omitempty"` +} + +// AddonSettingsGroupDto defines model for AddonSettingsGroupDto. +type AddonSettingsGroupDto struct { + Description *string `json:"description,omitempty"` + Header *AddonSettingsHeaderDto `json:"header,omitempty"` + Id string `json:"id"` + Settings *[]AddonSettingDto `json:"settings,omitempty"` + Title string `json:"title"` +} + +// AddonSettingsHeaderDto defines model for AddonSettingsHeaderDto. +type AddonSettingsHeaderDto struct { + Title string `json:"title"` +} + +// AddonSettingsTabDto defines model for AddonSettingsTabDto. +type AddonSettingsTabDto struct { + Groups *[]AddonSettingsGroupDto `json:"groups,omitempty"` + Header *AddonSettingsHeaderDto `json:"header,omitempty"` + Id string `json:"id"` + Name string `json:"name"` + Settings *[]AddonSettingDto `json:"settings,omitempty"` +} + +// AddonUninstallRequest defines model for AddonUninstallRequest. +type AddonUninstallRequest struct { + ManifestUrl *Url `json:"manifestUrl,omitempty"` + Url *string `json:"url,omitempty"` +} + +// AddonUpdateSettingRequest defines model for AddonUpdateSettingRequest. +type AddonUpdateSettingRequest struct { + Id string `json:"id"` + Value *map[string]interface{} `json:"value,omitempty"` +} + +// AddonUpdateSettingsRequest defines model for AddonUpdateSettingsRequest. +type AddonUpdateSettingsRequest struct { + Settings []AddonUpdateSettingRequest `json:"settings"` +} + +// AddonUpdateStatusRequest defines model for AddonUpdateStatusRequest. +type AddonUpdateStatusRequest struct { + Status *AddonUpdateStatusRequestStatus `json:"status,omitempty"` +} + +// AddonUpdateStatusRequestStatus defines model for AddonUpdateStatusRequest.Status. +type AddonUpdateStatusRequestStatus string + +// AlertDto defines model for AlertDto. +type AlertDto struct { + Id *string `json:"_id,omitempty"` + AlertPerson *AlertDtoAlertPerson `json:"alertPerson,omitempty"` + AlertType *AlertDtoAlertType `json:"alertType,omitempty"` + Id1 *string `json:"id,omitempty"` + Percentage *float64 `json:"percentage,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// AlertDtoAlertPerson defines model for AlertDto.AlertPerson. +type AlertDtoAlertPerson string + +// AlertDtoAlertType defines model for AlertDto.AlertType. +type AlertDtoAlertType string + +// AllowedUpdates defines model for AllowedUpdates. +type AllowedUpdates struct { + ForceProjectAllowed *bool `json:"forceProjectAllowed,omitempty"` + ForceTaskAllowed *bool `json:"forceTaskAllowed,omitempty"` +} + +// AmountWithCurrencyDto defines model for AmountWithCurrencyDto. +type AmountWithCurrencyDto struct { + Amount *float64 `json:"amount,omitempty"` + Currency *string `json:"currency,omitempty"` +} + +// ApiKeyDto defines model for ApiKeyDto. +type ApiKeyDto struct { + Active *bool `json:"active,omitempty"` + ApiKey *string `json:"apiKey,omitempty"` + ApiKeyFirstFiveCharsPlain *string `json:"apiKeyFirstFiveCharsPlain,omitempty"` + Id *string `json:"id,omitempty"` + IsActive *bool `json:"isActive,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// AppleConfigurationDto defines model for AppleConfigurationDto. +type AppleConfigurationDto struct { + Active *bool `json:"active,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Url *string `json:"url,omitempty"` +} + +// ApprovalDashboardDto defines model for ApprovalDashboardDto. +type ApprovalDashboardDto struct { + BarChartData *[]BarChartDataDto `json:"barChartData,omitempty"` + DateAndTotalTime *map[string][]TotalTimeItemDto `json:"dateAndTotalTime,omitempty"` + Dates *[]string `json:"dates,omitempty"` + ProjectCountByDate *[]int32 `json:"projectCountByDate,omitempty"` + TotalDurationByDate *[]struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"totalDurationByDate,omitempty"` + TotalTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"totalTime,omitempty"` +} + +// ApprovalDetailsDto defines model for ApprovalDetailsDto. +type ApprovalDetailsDto struct { + ApprovalRequest *ApprovalRequestDto `json:"approvalRequest,omitempty"` + ApprovedTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"approvedTime,omitempty"` + ApprovedTimeOff *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"approvedTimeOff,omitempty"` + BillableAmount *float64 `json:"billableAmount,omitempty"` + BillableAmountCurrencyTotal *[]CurrencyWithAmountDto `json:"billableAmountCurrencyTotal,omitempty"` + BillableTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"billableTime,omitempty"` + BreakTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"breakTime,omitempty"` + CostAmount *float64 `json:"costAmount,omitempty"` + CostAmountCurrencyTotal *[]CurrencyWithAmountDto `json:"costAmountCurrencyTotal,omitempty"` + Entries *[]TimeEntryInfoDto `json:"entries,omitempty"` + ExpenseCurrencyTotal *[]CurrencyWithAmountDto `json:"expenseCurrencyTotal,omitempty"` + ExpenseDailyTotal *[]ExpenseDailyTotalsDto `json:"expenseDailyTotal,omitempty"` + ExpenseTotal *float64 `json:"expenseTotal,omitempty"` + Expenses *[]ExpenseHydratedDto `json:"expenses,omitempty"` + PendingTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"pendingTime,omitempty"` + TrackedTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"trackedTime,omitempty"` +} + +// ApprovalGroupDto defines model for ApprovalGroupDto. +type ApprovalGroupDto struct { + Items *[]ApprovalGroupItemDto `json:"items,omitempty"` + Title *string `json:"title,omitempty"` +} + +// ApprovalGroupItemDto defines model for ApprovalGroupItemDto. +type ApprovalGroupItemDto struct { + ApprovalRequestId *string `json:"approvalRequestId,omitempty"` + ApprovalState *ApprovalGroupItemDtoApprovalState `json:"approvalState,omitempty"` + ApprovedTimeOff *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"approvedTimeOff,omitempty"` + CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"` + ExpenseTotal *int64 `json:"expenseTotal,omitempty"` + Label *string `json:"label,omitempty"` + Managers *[]EntityIdNameDto `json:"managers,omitempty"` + Total *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"total,omitempty"` + UserId *string `json:"userId,omitempty"` + UserManagers *[]EntityIdNameDto `json:"userManagers,omitempty"` +} + +// ApprovalGroupItemDtoApprovalState defines model for ApprovalGroupItemDto.ApprovalState. +type ApprovalGroupItemDtoApprovalState string + +// ApprovalInfoDto defines model for ApprovalInfoDto. +type ApprovalInfoDto struct { + DateRange *DateRangeDto `json:"dateRange,omitempty"` + Id *string `json:"id,omitempty"` + WorkspaceName *string `json:"workspaceName,omitempty"` +} + +// ApprovalPeriodTotalsDto defines model for ApprovalPeriodTotalsDto. +type ApprovalPeriodTotalsDto struct { + CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"` + DailyExpenseCurrencyTotals *[]ExpenseDailyTotalsDto `json:"dailyExpenseCurrencyTotals,omitempty"` + DailyExpenseTotals *map[string]int64 `json:"dailyExpenseTotals,omitempty"` + DailyTotals *map[string]struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"dailyTotals,omitempty"` + DateRange *DateRangeDto `json:"dateRange,omitempty"` + ExpenseTotal *int64 `json:"expenseTotal,omitempty"` + Total *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"total,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` +} + +// ApprovalRequestCreatorDto defines model for ApprovalRequestCreatorDto. +type ApprovalRequestCreatorDto struct { + UserEmail *string `json:"userEmail,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` +} + +// ApprovalRequestDto defines model for ApprovalRequestDto. +type ApprovalRequestDto struct { + ApprovalStatuses *map[string]ApprovalRequestDtoApprovalStatuses `json:"approvalStatuses,omitempty"` + Creator *ApprovalRequestCreatorDto `json:"creator,omitempty"` + DateRange *DateRangeDto `json:"dateRange,omitempty"` + Id *string `json:"id,omitempty"` + Owner *ApprovalRequestOwnerDto `json:"owner,omitempty"` + Status *ApprovalRequestStatusDto `json:"status,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ApprovalRequestDtoApprovalStatuses defines model for ApprovalRequestDto.ApprovalStatuses. +type ApprovalRequestDtoApprovalStatuses string + +// ApprovalRequestOwnerDto defines model for ApprovalRequestOwnerDto. +type ApprovalRequestOwnerDto struct { + StartOfWeek *string `json:"startOfWeek,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` +} + +// ApprovalRequestStatusDto defines model for ApprovalRequestStatusDto. +type ApprovalRequestStatusDto struct { + Note *string `json:"note,omitempty"` + State *string `json:"state,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByUserName *string `json:"updatedByUserName,omitempty"` +} + +// ApprovalSettings defines model for ApprovalSettings. +type ApprovalSettings struct { + ApprovalEnabled *bool `json:"approvalEnabled,omitempty"` + ApprovalPeriod *ApprovalSettingsApprovalPeriod `json:"approvalPeriod,omitempty"` + ApprovalRoles *[]ApprovalSettingsApprovalRoles `json:"approvalRoles,omitempty"` +} + +// ApprovalSettingsApprovalPeriod defines model for ApprovalSettings.ApprovalPeriod. +type ApprovalSettingsApprovalPeriod string + +// ApprovalSettingsApprovalRoles defines model for ApprovalSettings.ApprovalRoles. +type ApprovalSettingsApprovalRoles string + +// ApproveDto defines model for ApproveDto. +type ApproveDto struct { + // RequiresApproval Indicates whether it requires approval + RequiresApproval *bool `json:"requiresApproval,omitempty"` + + // SpecificMembers Indicates whether it requires specific members + SpecificMembers *bool `json:"specificMembers,omitempty"` + + // TeamManagers Indicates whether it requires team manager's approval + TeamManagers *bool `json:"teamManagers,omitempty"` + + // UserIds Represents set of user's identifier across the system + UserIds *[]string `json:"userIds,omitempty"` +} + +// ApproveRequestsRequest defines model for ApproveRequestsRequest. +type ApproveRequestsRequest struct { + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// ArchivePermissionDto defines model for ArchivePermissionDto. +type ArchivePermissionDto struct { + CanArchiveProjects *bool `json:"canArchiveProjects,omitempty"` + HaveProjects *bool `json:"haveProjects,omitempty"` + HaveTasks *bool `json:"haveTasks,omitempty"` +} + +// AssignmentCreateRequest defines model for AssignmentCreateRequest. +type AssignmentCreateRequest struct { + Billable *bool `json:"billable,omitempty"` + End *string `json:"end,omitempty"` + HoursPerDay *float64 `json:"hoursPerDay,omitempty"` + IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"` + Note *string `json:"note,omitempty"` + Period *DateRange `json:"period,omitempty"` + ProjectId string `json:"projectId"` + Recurring *RecurringAssignmentRequest `json:"recurring,omitempty"` + RecurringAssignment *RecurringAssignmentRequest `json:"recurringAssignment,omitempty"` + Start *string `json:"start,omitempty"` + StartTime *string `json:"startTime,omitempty"` + TaskId *string `json:"taskId,omitempty"` + UserId string `json:"userId"` +} + +// AssignmentDto defines model for AssignmentDto. +type AssignmentDto struct { + Billable *bool `json:"billable,omitempty"` + BillableAmountPerDay *AmountWithCurrencyDto `json:"billableAmountPerDay,omitempty"` + CostAmountPerDay *AmountWithCurrencyDto `json:"costAmountPerDay,omitempty"` + ExcludeDays *[]SchedulingExcludeDay `json:"excludeDays,omitempty"` + HoursPerDay *float64 `json:"hoursPerDay,omitempty"` + Id *string `json:"id,omitempty"` + IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"` + Note *string `json:"note,omitempty"` + Period *DateRangeDto `json:"period,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Published *bool `json:"published,omitempty"` + Recurring *RecurringAssignmentDto `json:"recurring,omitempty"` + StartTime *string `json:"startTime,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TaskName *string `json:"taskName,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// AssignmentHydratedDto defines model for AssignmentHydratedDto. +type AssignmentHydratedDto struct { + Billable *bool `json:"billable,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientName *string `json:"clientName,omitempty"` + ExcludeDays *[]SchedulingExcludeDay `json:"excludeDays,omitempty"` + HoursPerDay *float64 `json:"hoursPerDay,omitempty"` + Id *string `json:"id,omitempty"` + IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"` + Note *string `json:"note,omitempty"` + Period *DateRangeDto `json:"period,omitempty"` + ProjectArchived *bool `json:"projectArchived,omitempty"` + ProjectBillable *bool `json:"projectBillable,omitempty"` + ProjectColor *string `json:"projectColor,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + StartTime *string `json:"startTime,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TaskName *string `json:"taskName,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// AssignmentPerDayDto defines model for AssignmentPerDayDto. +type AssignmentPerDayDto struct { + Date *time.Time `json:"date,omitempty"` + HasAssignment *bool `json:"hasAssignment,omitempty"` +} + +// AssignmentPeriodRequest defines model for AssignmentPeriodRequest. +type AssignmentPeriodRequest struct { + End *string `json:"end,omitempty"` + Period *DateRange `json:"period,omitempty"` + SeriesUpdateOption *AssignmentPeriodRequestSeriesUpdateOption `json:"seriesUpdateOption,omitempty"` + Start *string `json:"start,omitempty"` +} + +// AssignmentPeriodRequestSeriesUpdateOption defines model for AssignmentPeriodRequest.SeriesUpdateOption. +type AssignmentPeriodRequestSeriesUpdateOption string + +// AssignmentUpdateRequest defines model for AssignmentUpdateRequest. +type AssignmentUpdateRequest struct { + Billable *bool `json:"billable,omitempty"` + End *string `json:"end,omitempty"` + HoursPerDay *float64 `json:"hoursPerDay,omitempty"` + IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"` + Note *string `json:"note,omitempty"` + Period *DateRange `json:"period,omitempty"` + SeriesUpdateOption *AssignmentUpdateRequestSeriesUpdateOption `json:"seriesUpdateOption,omitempty"` + Start *string `json:"start,omitempty"` + StartTime *string `json:"startTime,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// AssignmentUpdateRequestSeriesUpdateOption defines model for AssignmentUpdateRequest.SeriesUpdateOption. +type AssignmentUpdateRequestSeriesUpdateOption string + +// AuditLogSettingsDto defines model for AuditLogSettingsDto. +type AuditLogSettingsDto struct { + AuditEnabled *bool `json:"auditEnabled,omitempty"` + ClientAuditing *bool `json:"clientAuditing,omitempty"` + ClientStartedRecording *time.Time `json:"clientStartedRecording,omitempty"` + ExpensesAuditing *bool `json:"expensesAuditing,omitempty"` + ExpensesStartedRecording *time.Time `json:"expensesStartedRecording,omitempty"` + ProjectAuditing *bool `json:"projectAuditing,omitempty"` + ProjectStartedRecording *time.Time `json:"projectStartedRecording,omitempty"` + TagAuditing *bool `json:"tagAuditing,omitempty"` + TagStartedRecording *time.Time `json:"tagStartedRecording,omitempty"` + TimeEntryAuditing *bool `json:"timeEntryAuditing,omitempty"` + TimeEntryStartedRecording *time.Time `json:"timeEntryStartedRecording,omitempty"` +} + +// AuthDto defines model for AuthDto. +type AuthDto struct { + Id *string `json:"id,omitempty"` + Key *string `json:"key,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + New *bool `json:"new,omitempty"` + RefreshToken *string `json:"refreshToken,omitempty"` + Roles *[]AuthDtoRoles `json:"roles,omitempty"` + Status *AuthDtoStatus `json:"status,omitempty"` + Token *string `json:"token,omitempty"` +} + +// AuthDtoRoles defines model for AuthDto.Roles. +type AuthDtoRoles string + +// AuthDtoStatus defines model for AuthDto.Status. +type AuthDtoStatus string + +// AuthorizationDto defines model for AuthorizationDto. +type AuthorizationDto struct { + Name *string `json:"name,omitempty"` + ObjectId *string `json:"objectId,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// AuthorizationSourceDto defines model for AuthorizationSourceDto. +type AuthorizationSourceDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Type *AuthorizationSourceDtoType `json:"type,omitempty"` +} + +// AuthorizationSourceDtoType defines model for AuthorizationSourceDto.Type. +type AuthorizationSourceDtoType string + +// AutomaticAccrualDto defines model for AutomaticAccrualDto. +type AutomaticAccrualDto struct { + // Amount Represents automatic accrual's amount + Amount *float64 `json:"amount,omitempty"` + + // Period Represents automatic accrual's period + Period *AutomaticAccrualDtoPeriod `json:"period,omitempty"` + + // TimeUnit Represents automatic accrual's time unit + TimeUnit *AutomaticAccrualDtoTimeUnit `json:"timeUnit,omitempty"` +} + +// AutomaticAccrualDtoPeriod Represents automatic accrual's period +type AutomaticAccrualDtoPeriod string + +// AutomaticAccrualDtoTimeUnit Represents automatic accrual's time unit +type AutomaticAccrualDtoTimeUnit string + +// AutomaticAccrualRequest defines model for AutomaticAccrualRequest. +type AutomaticAccrualRequest struct { + // Amount Represents amount of automatic accrual. + Amount float64 `json:"amount"` + AmountValidForTimeUnit *bool `json:"amountValidForTimeUnit,omitempty"` + + // Period Represents automatic accrual period. + Period *AutomaticAccrualRequestPeriod `json:"period,omitempty"` + + // TimeUnit Represents automatic accrual time unit. + TimeUnit *AutomaticAccrualRequestTimeUnit `json:"timeUnit,omitempty"` +} + +// AutomaticAccrualRequestPeriod Represents automatic accrual period. +type AutomaticAccrualRequestPeriod string + +// AutomaticAccrualRequestTimeUnit Represents automatic accrual time unit. +type AutomaticAccrualRequestTimeUnit string + +// AutomaticLockDto defines model for AutomaticLockDto. +type AutomaticLockDto struct { + ChangeDay *AutomaticLockDtoChangeDay `json:"changeDay,omitempty"` + ChangeHour *int32 `json:"changeHour,omitempty"` + DayOfMonth *int32 `json:"dayOfMonth,omitempty"` + FirstDay *AutomaticLockDtoFirstDay `json:"firstDay,omitempty"` + OlderThanPeriod *AutomaticLockDtoOlderThanPeriod `json:"olderThanPeriod,omitempty"` + OlderThanValue *int32 `json:"olderThanValue,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + Type *AutomaticLockDtoType `json:"type,omitempty"` +} + +// AutomaticLockDtoChangeDay defines model for AutomaticLockDto.ChangeDay. +type AutomaticLockDtoChangeDay string + +// AutomaticLockDtoFirstDay defines model for AutomaticLockDto.FirstDay. +type AutomaticLockDtoFirstDay string + +// AutomaticLockDtoOlderThanPeriod defines model for AutomaticLockDto.OlderThanPeriod. +type AutomaticLockDtoOlderThanPeriod string + +// AutomaticLockDtoType defines model for AutomaticLockDto.Type. +type AutomaticLockDtoType string + +// AutomaticTimeEntryCreationDto defines model for AutomaticTimeEntryCreationDto. +type AutomaticTimeEntryCreationDto struct { + DefaultEntities *DefaultEntitiesDto `json:"defaultEntities,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} + +// AutomaticTimeEntryCreationRequest defines model for AutomaticTimeEntryCreationRequest. +type AutomaticTimeEntryCreationRequest struct { + // DefaultEntities Provides information about default project and task for automatically created time entries. + DefaultEntities DefaultEntitiesRequest `json:"defaultEntities"` + + // Enabled Indicates that automatic time entry creation is enabled. + Enabled *bool `json:"enabled,omitempty"` +} + +// Balance defines model for Balance. +type Balance struct { + Accrued *float64 `json:"accrued,omitempty"` + Balance *float64 `json:"balance,omitempty"` + Id *string `json:"id,omitempty"` + NegativeBalanceAmount *float64 `json:"negativeBalanceAmount,omitempty"` + NegativeBalanceLimit *bool `json:"negativeBalanceLimit,omitempty"` + PolicyArchived *bool `json:"policyArchived,omitempty"` + PolicyColor *string `json:"policyColor,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + PolicyName *string `json:"policyName,omitempty"` + PolicyTimeUnit *string `json:"policyTimeUnit,omitempty"` + Total *float64 `json:"total,omitempty"` + Used *float64 `json:"used,omitempty"` + UserId *string `json:"userId,omitempty"` + UserImageUrl *string `json:"userImageUrl,omitempty"` + UserInactive *bool `json:"userInactive,omitempty"` + UserName *string `json:"userName,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// BalanceHistoryDto defines model for BalanceHistoryDto. +type BalanceHistoryDto struct { + Action *BalanceHistoryDtoAction `json:"action,omitempty"` + AuthorName *string `json:"authorName,omitempty"` + Balance *string `json:"balance,omitempty"` + Date *time.Time `json:"date,omitempty"` + Id *string `json:"id,omitempty"` + Note *string `json:"note,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + TimeOffPeriod *PtoRequestPeriodDto `json:"timeOffPeriod,omitempty"` + TimeUnit *BalanceHistoryDtoTimeUnit `json:"timeUnit,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// BalanceHistoryDtoAction defines model for BalanceHistoryDto.Action. +type BalanceHistoryDtoAction string + +// BalanceHistoryDtoTimeUnit defines model for BalanceHistoryDto.TimeUnit. +type BalanceHistoryDtoTimeUnit string + +// BalancesWithCount defines model for BalancesWithCount. +type BalancesWithCount struct { + Balances *[]Balance `json:"balances,omitempty"` + Count *int32 `json:"count,omitempty"` +} + +// BarChartDataDto defines model for BarChartDataDto. +type BarChartDataDto struct { + BackgroundColor *string `json:"backgroundColor,omitempty"` + ClientName *string `json:"clientName,omitempty"` + Data *[]struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"data,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + HoverBackgroundColor *string `json:"hoverBackgroundColor,omitempty"` + Label *string `json:"label,omitempty"` +} + +// BillableAndCostAmountDto defines model for BillableAndCostAmountDto. +type BillableAndCostAmountDto struct { + BillableAmount *AmountWithCurrencyDto `json:"billableAmount,omitempty"` + CostAmount *AmountWithCurrencyDto `json:"costAmount,omitempty"` +} + +// BillingInformationDto defines model for BillingInformationDto. +type BillingInformationDto struct { + Amount *float64 `json:"amount,omitempty"` + BillingDate *time.Time `json:"billingDate,omitempty"` + ClientSecret *string `json:"clientSecret,omitempty"` + IsChargeAutomatically *bool `json:"isChargeAutomatically,omitempty"` + IsPaid *bool `json:"isPaid,omitempty"` + LimitedAmount *float64 `json:"limitedAmount,omitempty"` + LimitedQuantity *int64 `json:"limitedQuantity,omitempty"` + NextSubscriptionType *BillingInformationDtoNextSubscriptionType `json:"nextSubscriptionType,omitempty"` + Paid *bool `json:"paid,omitempty"` + PaymentMethodId *string `json:"paymentMethodId,omitempty"` + Quantity *int64 `json:"quantity,omitempty"` + RequiresAction *bool `json:"requiresAction,omitempty"` + TotalAmount *float64 `json:"totalAmount,omitempty"` + Type *BillingInformationDtoType `json:"type,omitempty"` + UpcomingPriceDetails *UpgradePriceDto `json:"upcomingPriceDetails,omitempty"` +} + +// BillingInformationDtoNextSubscriptionType defines model for BillingInformationDto.NextSubscriptionType. +type BillingInformationDtoNextSubscriptionType string + +// BillingInformationDtoType defines model for BillingInformationDto.Type. +type BillingInformationDtoType string + +// BreakSettingsDto defines model for BreakSettingsDto. +type BreakSettingsDto struct { + BreaksEnabled *bool `json:"breaksEnabled,omitempty"` + DefaultBreakEntities *DefaultBreakEntitiesDto `json:"defaultBreakEntities,omitempty"` +} + +// BreakSettingsRequest defines model for BreakSettingsRequest. +type BreakSettingsRequest struct { + BreaksEnabled *bool `json:"breaksEnabled,omitempty"` + DefaultBreakEntities *DefaultBreakEntitiesRequest `json:"defaultBreakEntities,omitempty"` +} + +// BulkEditUsersRequest defines model for BulkEditUsersRequest. +type BulkEditUsersRequest struct { + BillableRate *HourlyRateRequest `json:"billableRate,omitempty"` + CostRate *CostRateRequest `json:"costRate,omitempty"` + HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"` + Statuses *[]string `json:"statuses,omitempty"` + + // UserCustomFields Represents a list of upsert user custom field request. + UserCustomFields *[]UpsertUserCustomFieldRequest `json:"userCustomFields,omitempty"` + + // UserIds Represents a unique list of user ids. + UserIds []string `json:"userIds"` + + // WeekStart Represents a day of the week. + WeekStart *DayOfWeek `json:"weekStart,omitempty"` + + // WorkCapacity Represents work capacity as duration. + WorkCapacity *string `json:"workCapacity,omitempty"` + + // WorkingDays Represents a day of the week. + WorkingDays *DayOfWeek `json:"workingDays,omitempty"` +} + +// BulkProjectEditDto defines model for BulkProjectEditDto. +type BulkProjectEditDto struct { + BulkTaskEditResult *BulkTaskEditResultDto `json:"bulkTaskEditResult,omitempty"` + Projects *[]ProjectDtoImpl `json:"projects,omitempty"` +} + +// BulkTaskEditResultDto defines model for BulkTaskEditResultDto. +type BulkTaskEditResultDto struct { + AllTasksOverwrittenSuccessfully *bool `json:"allTasksOverwrittenSuccessfully,omitempty"` + Reasons *[]string `json:"reasons,omitempty"` +} + +// BulkTaskInfoRequest defines model for BulkTaskInfoRequest. +type BulkTaskInfoRequest struct { + Name *string `json:"name,omitempty"` +} + +// BulkUpdateCompaniesRequest defines model for BulkUpdateCompaniesRequest. +type BulkUpdateCompaniesRequest struct { + Companies *[]CompanyRequest `json:"companies,omitempty"` + CompaniesForCreate *[]CompanyRequest `json:"companiesForCreate,omitempty"` + CompaniesForUpdate *[]CompanyRequest `json:"companiesForUpdate,omitempty"` +} + +// BulkUpdateKioskDefaultsRequest defines model for BulkUpdateKioskDefaultsRequest. +type BulkUpdateKioskDefaultsRequest struct { + KioskIds *[]string `json:"kioskIds,omitempty"` + Kiosks *[]KioskDefault `json:"kiosks,omitempty"` + ProjectIds *[]string `json:"projectIds,omitempty"` + TaskIds *[]string `json:"taskIds,omitempty"` +} + +// CakeOrganization defines model for CakeOrganization. +type CakeOrganization struct { + CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"` + CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"` + CakeOrganizationPermissions *[]string `json:"cakeOrganizationPermissions,omitempty"` +} + +// CakeUserInfo defines model for CakeUserInfo. +type CakeUserInfo struct { + Email *string `json:"email,omitempty"` + IsTermsAccepted *bool `json:"isTermsAccepted,omitempty"` + UserName *string `json:"userName,omitempty"` +} + +// CancellationReasonDto defines model for CancellationReasonDto. +type CancellationReasonDto struct { + AdditionalMessage *string `json:"additionalMessage,omitempty"` + InitialReason *string `json:"initialReason,omitempty"` + Message *string `json:"message,omitempty"` + MovingToAnotherTool *string `json:"movingToAnotherTool,omitempty"` + NoLongerNeedReason *string `json:"noLongerNeedReason,omitempty"` + SelectedTool *string `json:"selectedTool,omitempty"` +} + +// CaptchaResponseDto defines model for CaptchaResponseDto. +type CaptchaResponseDto struct { + Response *string `json:"response,omitempty"` + Version *string `json:"version,omitempty"` +} + +// ChangeBalanceRequest defines model for ChangeBalanceRequest. +type ChangeBalanceRequest struct { + Note *string `json:"note,omitempty"` + UserIds []string `json:"userIds"` + Value float64 `json:"value"` +} + +// ChangeEmailRequest defines model for ChangeEmailRequest. +type ChangeEmailRequest struct { + // Email Represents email address of the user. + Email string `json:"email"` +} + +// ChangeInvoiceStatusRequest defines model for ChangeInvoiceStatusRequest. +type ChangeInvoiceStatusRequest struct { + InvoiceStatus *ChangeInvoiceStatusRequestInvoiceStatus `json:"invoiceStatus,omitempty"` +} + +// ChangeInvoiceStatusRequestInvoiceStatus defines model for ChangeInvoiceStatusRequest.InvoiceStatus. +type ChangeInvoiceStatusRequestInvoiceStatus string + +// ChangeUsernameRequest defines model for ChangeUsernameRequest. +type ChangeUsernameRequest struct { + Name *string `json:"name,omitempty"` +} + +// CheckUsersResponse defines model for CheckUsersResponse. +type CheckUsersResponse struct { + WorkspaceNonMembers *[]string `json:"workspaceNonMembers,omitempty"` +} + +// ClientDto defines model for ClientDto. +type ClientDto struct { + Address *string `json:"address,omitempty"` + Archived *bool `json:"archived,omitempty"` + CurrencyId *string `json:"currencyId,omitempty"` + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ClientIdsRequest defines model for ClientIdsRequest. +type ClientIdsRequest struct { + ExcludedIds *[]string `json:"excludedIds,omitempty"` + Ids *[]string `json:"ids,omitempty"` +} + +// ClientWithCurrencyDto defines model for ClientWithCurrencyDto. +type ClientWithCurrencyDto struct { + Address *string `json:"address,omitempty"` + Archived *bool `json:"archived,omitempty"` + CurrencyCode *string `json:"currencyCode,omitempty"` + CurrencyId *string `json:"currencyId,omitempty"` + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// CompanyDto defines model for CompanyDto. +type CompanyDto struct { + Address *string `json:"address,omitempty"` + Id *string `json:"id,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Name *string `json:"name,omitempty"` +} + +// CompanyRequest defines model for CompanyRequest. +type CompanyRequest struct { + Address *string `json:"address,omitempty"` + Default *bool `json:"default,omitempty"` + Id *string `json:"id,omitempty"` + IsDefault *bool `json:"isDefault,omitempty"` + Name string `json:"name"` +} + +// ContainsArchivedFilterRequest defines model for ContainsArchivedFilterRequest. +type ContainsArchivedFilterRequest struct { + // Contains Filter type. + Contains *ContainsArchivedFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + + // Status Filters entities by status. + Status *ContainsArchivedFilterRequestStatus `json:"status,omitempty"` +} + +// ContainsArchivedFilterRequestContains Filter type. +type ContainsArchivedFilterRequestContains string + +// ContainsArchivedFilterRequestStatus Filters entities by status. +type ContainsArchivedFilterRequestStatus string + +// ContainsClientsFilterRequest defines model for ContainsClientsFilterRequest. +type ContainsClientsFilterRequest struct { + // Contains Filter type. + Contains *ContainsClientsFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + + // Status Filters entities by status. + Status *ContainsClientsFilterRequestStatus `json:"status,omitempty"` +} + +// ContainsClientsFilterRequestContains Filter type. +type ContainsClientsFilterRequestContains string + +// ContainsClientsFilterRequestStatus Filters entities by status. +type ContainsClientsFilterRequestStatus string + +// ContainsCompaniesFilterRequest defines model for ContainsCompaniesFilterRequest. +type ContainsCompaniesFilterRequest struct { + // Contains Filter type. + Contains *ContainsCompaniesFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + + // Status Filters entities by status. + Status *ContainsCompaniesFilterRequestStatus `json:"status,omitempty"` +} + +// ContainsCompaniesFilterRequestContains Filter type. +type ContainsCompaniesFilterRequestContains string + +// ContainsCompaniesFilterRequestStatus Filters entities by status. +type ContainsCompaniesFilterRequestStatus string + +// ContainsFilterRequest defines model for ContainsFilterRequest. +type ContainsFilterRequest struct { + Contains *ContainsFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents ids upon which filtering is performed. + Ids *[]string `json:"ids,omitempty"` + + // Status Represents user status. + Status *ContainsFilterRequestStatus `json:"status,omitempty"` +} + +// ContainsFilterRequestContains defines model for ContainsFilterRequest.Contains. +type ContainsFilterRequestContains string + +// ContainsFilterRequestStatus Represents user status. +type ContainsFilterRequestStatus string + +// ContainsProjectsFilterRequest defines model for ContainsProjectsFilterRequest. +type ContainsProjectsFilterRequest struct { + // Contains Filter type. + Contains *ContainsProjectsFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + + // Status Filters entities by status. + Status *ContainsProjectsFilterRequestStatus `json:"status,omitempty"` +} + +// ContainsProjectsFilterRequestContains Filter type. +type ContainsProjectsFilterRequestContains string + +// ContainsProjectsFilterRequestStatus Filters entities by status. +type ContainsProjectsFilterRequestStatus string + +// ContainsUserGroupFilterRequest defines model for ContainsUserGroupFilterRequest. +type ContainsUserGroupFilterRequest struct { + // Contains Filter type. + Contains *ContainsUserGroupFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + + // Status Filters entities by status. + Status *ContainsUserGroupFilterRequestStatus `json:"status,omitempty"` +} + +// ContainsUserGroupFilterRequestContains Filter type. +type ContainsUserGroupFilterRequestContains string + +// ContainsUserGroupFilterRequestStatus Filters entities by status. +type ContainsUserGroupFilterRequestStatus string + +// ContainsUsersFilterRequest defines model for ContainsUsersFilterRequest. +type ContainsUsersFilterRequest struct { + ArchivedFilterValue *bool `json:"archivedFilterValue,omitempty"` + + // Contains Filter type. + Contains *ContainsUsersFilterRequestContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + SourceType *ContainsUsersFilterRequestSourceType `json:"sourceType,omitempty"` + + // Status Filters entities by status. + Status *ContainsUsersFilterRequestStatus `json:"status,omitempty"` + Statuses *[]ContainsUsersFilterRequestStatuses `json:"statuses,omitempty"` +} + +// ContainsUsersFilterRequestContains Filter type. +type ContainsUsersFilterRequestContains string + +// ContainsUsersFilterRequestSourceType defines model for ContainsUsersFilterRequest.SourceType. +type ContainsUsersFilterRequestSourceType string + +// ContainsUsersFilterRequestStatus Filters entities by status. +type ContainsUsersFilterRequestStatus string + +// ContainsUsersFilterRequestStatuses defines model for ContainsUsersFilterRequest.Statuses. +type ContainsUsersFilterRequestStatuses string + +// ContainsUsersFilterRequestForHoliday defines model for ContainsUsersFilterRequestForHoliday. +type ContainsUsersFilterRequestForHoliday struct { + // Contains Filter type. + Contains *ContainsUsersFilterRequestForHolidayContains `json:"contains,omitempty"` + + // Ids Represents a list of filter identifiers. + Ids *[]string `json:"ids,omitempty"` + + // Status Filters entities by status. + Status *ContainsUsersFilterRequestForHolidayStatus `json:"status,omitempty"` + Statuses *[]string `json:"statuses,omitempty"` +} + +// ContainsUsersFilterRequestForHolidayContains Filter type. +type ContainsUsersFilterRequestForHolidayContains string + +// ContainsUsersFilterRequestForHolidayStatus Filters entities by status. +type ContainsUsersFilterRequestForHolidayStatus string + +// CopiedEntriesDto defines model for CopiedEntriesDto. +type CopiedEntriesDto struct { + EntriesCreated *[]TimeEntryWithCustomFieldsDto `json:"entriesCreated,omitempty"` + EntriesSkipped *int32 `json:"entriesSkipped,omitempty"` +} + +// CopyAssignmentRequest defines model for CopyAssignmentRequest. +type CopyAssignmentRequest struct { + SeriesUpdateOption *CopyAssignmentRequestSeriesUpdateOption `json:"seriesUpdateOption,omitempty"` + UserId string `json:"userId"` +} + +// CopyAssignmentRequestSeriesUpdateOption defines model for CopyAssignmentRequest.SeriesUpdateOption. +type CopyAssignmentRequestSeriesUpdateOption string + +// CopyEntriesRequest defines model for CopyEntriesRequest. +type CopyEntriesRequest struct { + DayOffset *int32 `json:"dayOffset,omitempty"` + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` +} + +// CostRateRequest defines model for CostRateRequest. +type CostRateRequest struct { + // Amount Represents an amount as integer. + Amount *int32 `json:"amount,omitempty"` + + // Since Represents a datetime in yyyy-MM-ddThh:mm:ssZ format. + Since *string `json:"since,omitempty"` + SinceAsInstant *time.Time `json:"sinceAsInstant,omitempty"` +} + +// CreateAlertRequest defines model for CreateAlertRequest. +type CreateAlertRequest struct { + AlertPerson *CreateAlertRequestAlertPerson `json:"alertPerson,omitempty"` + AlertType *CreateAlertRequestAlertType `json:"alertType,omitempty"` + Percentage *float64 `json:"percentage,omitempty"` +} + +// CreateAlertRequestAlertPerson defines model for CreateAlertRequest.AlertPerson. +type CreateAlertRequestAlertPerson string + +// CreateAlertRequestAlertType defines model for CreateAlertRequest.AlertType. +type CreateAlertRequestAlertType string + +// CreateApprovalRequest defines model for CreateApprovalRequest. +type CreateApprovalRequest struct { + // Period Specifies the approval period. It has to match the workspace approval period setting. + Period *CreateApprovalRequestPeriod `json:"period,omitempty"` + + // PeriodStart Specifies an approval period start date in yyyy-MM-ddThh:mm:ssZ format. + PeriodStart string `json:"periodStart"` +} + +// CreateApprovalRequestPeriod Specifies the approval period. It has to match the workspace approval period setting. +type CreateApprovalRequestPeriod string + +// CreateClientRequest defines model for CreateClientRequest. +type CreateClientRequest struct { + Address *string `json:"address,omitempty"` + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` +} + +// CreateCurrencyRequest defines model for CreateCurrencyRequest. +type CreateCurrencyRequest struct { + Code string `json:"code"` +} + +// CreateCustomAttributeRequest defines model for CreateCustomAttributeRequest. +type CreateCustomAttributeRequest struct { + // Name Represents custom attribute name. + Name string `json:"name"` + + // Namespace Represents custom attribute namespace. + Namespace string `json:"namespace"` + + // Value Represents custom attribute value. + Value string `json:"value"` +} + +// CreateEmailContentRequest defines model for CreateEmailContentRequest. +type CreateEmailContentRequest struct { + Body string `json:"body"` + Subject string `json:"subject"` +} + +// CreateExpenseRequest defines model for CreateExpenseRequest. +type CreateExpenseRequest struct { + Amount float64 `json:"amount"` + Billable *bool `json:"billable,omitempty"` + CategoryId *string `json:"categoryId,omitempty"` + Date *time.Time `json:"date,omitempty"` + File *openapi_types.File `json:"file,omitempty"` + Notes *string `json:"notes,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` + UserId string `json:"userId"` +} + +// CreateFavoriteEntriesRequest defines model for CreateFavoriteEntriesRequest. +type CreateFavoriteEntriesRequest struct { + Billable *bool `json:"billable,omitempty"` + ClientId *string `json:"clientId,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + Type *CreateFavoriteEntriesRequestType `json:"type,omitempty"` +} + +// CreateFavoriteEntriesRequestType defines model for CreateFavoriteEntriesRequest.Type. +type CreateFavoriteEntriesRequestType string + +// CreateFromTemplateRequest defines model for CreateFromTemplateRequest. +type CreateFromTemplateRequest struct { + ClientId *string `json:"clientId,omitempty"` + Color *string `json:"color,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + Name *string `json:"name,omitempty"` + Public *bool `json:"public,omitempty"` + TemplateId string `json:"templateId"` +} + +// CreateInvoiceDto defines model for CreateInvoiceDto. +type CreateInvoiceDto struct { + BillFrom *string `json:"billFrom,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Currency *string `json:"currency,omitempty"` + DueDate *time.Time `json:"dueDate,omitempty"` + Id *string `json:"id,omitempty"` + IssuedDate *time.Time `json:"issuedDate,omitempty"` + Number *string `json:"number,omitempty"` +} + +// CreateInvoiceEmailTemplateRequest defines model for CreateInvoiceEmailTemplateRequest. +type CreateInvoiceEmailTemplateRequest struct { + EmailContent CreateEmailContentRequest `json:"emailContent"` + InvoiceEmailTemplateType *string `json:"invoiceEmailTemplateType,omitempty"` +} + +// CreateInvoiceItemTypeDto defines model for CreateInvoiceItemTypeDto. +type CreateInvoiceItemTypeDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// CreateInvoiceItemTypeRequest defines model for CreateInvoiceItemTypeRequest. +type CreateInvoiceItemTypeRequest struct { + Name string `json:"name"` +} + +// CreateInvoicePaymentRequest defines model for CreateInvoicePaymentRequest. +type CreateInvoicePaymentRequest struct { + // Amount Represents an invoice payment amount as long. + Amount *int64 `json:"amount,omitempty"` + + // Note Represents an invoice payment note. + Note *string `json:"note,omitempty"` + + // PaymentDate Represents an invoice payment date in yyyy-MM-ddThh:mm:ssZ format. + PaymentDate *string `json:"paymentDate,omitempty"` +} + +// CreateInvoiceRequest defines model for CreateInvoiceRequest. +type CreateInvoiceRequest struct { + // ClientId Represents client identifier across the system. + ClientId string `json:"clientId"` + + // Currency Represents the currency used by the invoice. + Currency string `json:"currency"` + + // DueDate Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format. + DueDate time.Time `json:"dueDate"` + + // IssuedDate Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format. + IssuedDate time.Time `json:"issuedDate"` + + // Number Represents an invoice number. + Number string `json:"number"` +} + +// CreateKioskRequest defines model for CreateKioskRequest. +type CreateKioskRequest struct { + DefaultBreakProjectId *string `json:"defaultBreakProjectId,omitempty"` + DefaultBreakTaskId *string `json:"defaultBreakTaskId,omitempty"` + DefaultEntities *DefaultKioskEntitiesRequest `json:"defaultEntities,omitempty"` + DefaultProjectId *string `json:"defaultProjectId,omitempty"` + DefaultTaskId *string `json:"defaultTaskId,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + Groups *ContainsUserGroupFilterRequest `json:"groups,omitempty"` + Name string `json:"name"` + Pin *PinSettingRequest `json:"pin,omitempty"` + SessionDuration *int32 `json:"sessionDuration,omitempty"` + Users *ContainsUsersFilterRequest `json:"users,omitempty"` +} + +// CreateOrganizationRequest defines model for CreateOrganizationRequest. +type CreateOrganizationRequest struct { + OrganizationName *string `json:"organizationName,omitempty"` +} + +// CreatePolicyRequest defines model for CreatePolicyRequest. +type CreatePolicyRequest struct { + AllowHalfDay *bool `json:"allowHalfDay,omitempty"` + AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"` + Approve ApproveDto `json:"approve"` + Archived *bool `json:"archived,omitempty"` + AutomaticAccrual *AutomaticAccrualRequest `json:"automaticAccrual,omitempty"` + AutomaticTimeEntryCreation *AutomaticTimeEntryCreationRequest `json:"automaticTimeEntryCreation,omitempty"` + Color *string `json:"color,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + Name string `json:"name"` + NegativeBalance *NegativeBalanceRequest `json:"negativeBalance,omitempty"` + TimeUnit *string `json:"timeUnit,omitempty"` + UserGroups *ContainsFilterRequest `json:"userGroups,omitempty"` + Users *ContainsFilterRequest `json:"users,omitempty"` +} + +// CreateProjectRequest defines model for CreateProjectRequest. +type CreateProjectRequest struct { + Billable *bool `json:"billable,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Color *string `json:"color,omitempty"` + Estimate *EstimateRequest `json:"estimate,omitempty"` + HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + Memberships *[]MembershipRequest `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + Public *bool `json:"public,omitempty"` + Tasks *[]TaskRequest `json:"tasks,omitempty"` +} + +// CreateReminderRequest defines model for CreateReminderRequest. +type CreateReminderRequest struct { + DateRange *CreateReminderRequestDateRange `json:"dateRange,omitempty"` + Days *[]int32 `json:"days,omitempty"` + Hours *float64 `json:"hours,omitempty"` + Less *bool `json:"less,omitempty"` + Receivers *[]string `json:"receivers,omitempty"` + Users *ContainsUsersFilterRequest `json:"users,omitempty"` +} + +// CreateReminderRequestDateRange defines model for CreateReminderRequest.DateRange. +type CreateReminderRequestDateRange string + +// CreateSubscriptionQuantityRequest defines model for CreateSubscriptionQuantityRequest. +type CreateSubscriptionQuantityRequest struct { + LimitedQuantity *int32 `json:"limitedQuantity,omitempty"` + Quantity *int32 `json:"quantity,omitempty"` + RegularQuantity int32 `json:"regularQuantity"` +} + +// CreateTimeEntryForManyRequest defines model for CreateTimeEntryForManyRequest. +type CreateTimeEntryForManyRequest struct { + Billable *bool `json:"billable,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + End *time.Time `json:"end,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Start *time.Time `json:"start,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + UserGroups *ContainsUsersFilterRequest `json:"userGroups,omitempty"` + Users *ContainsUsersFilterRequest `json:"users,omitempty"` +} + +// CreateTimeEntryRequest defines model for CreateTimeEntryRequest. +type CreateTimeEntryRequest struct { + Billable *bool `json:"billable,omitempty"` + CustomAttributes *[]CreateCustomAttributeRequest `json:"customAttributes,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + End *time.Time `json:"end,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Start *time.Time `json:"start,omitempty"` + StartAsString *string `json:"startAsString,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + Type *string `json:"type,omitempty"` +} + +// CreateTimeOffRequestRequest defines model for CreateTimeOffRequestRequest. +type CreateTimeOffRequestRequest struct { + Note *string `json:"note,omitempty"` + TimeOffPeriod TimeOffRequestPeriodRequest `json:"timeOffPeriod"` +} + +// CreateUserGroupRequest defines model for CreateUserGroupRequest. +type CreateUserGroupRequest struct { + Name *string `json:"name,omitempty"` +} + +// CreateWorkspaceRequest defines model for CreateWorkspaceRequest. +type CreateWorkspaceRequest struct { + Name *string `json:"name,omitempty"` + OrganizationId *string `json:"organizationId,omitempty"` +} + +// CurrencyDto defines model for CurrencyDto. +type CurrencyDto struct { + Code *string `json:"code,omitempty"` + Id *string `json:"id,omitempty"` +} + +// CurrencyWithAmountDto defines model for CurrencyWithAmountDto. +type CurrencyWithAmountDto struct { + Amount *int64 `json:"amount,omitempty"` + Currency *string `json:"currency,omitempty"` +} + +// CustomAttributeDto defines model for CustomAttributeDto. +type CustomAttributeDto struct { + EntityId *string `json:"entityId,omitempty"` + EntityType *string `json:"entityType,omitempty"` + Name *string `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` + Value *string `json:"value,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// CustomFieldDefaultValuesDto defines model for CustomFieldDefaultValuesDto. +type CustomFieldDefaultValuesDto struct { + ProjectId *string `json:"projectId,omitempty"` + Status *string `json:"status,omitempty"` + Value *map[string]interface{} `json:"value,omitempty"` +} + +// CustomFieldDto defines model for CustomFieldDto. +type CustomFieldDto struct { + AllowedValues *[]string `json:"allowedValues,omitempty"` + Description *string `json:"description,omitempty"` + EntityType *string `json:"entityType,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + OnlyAdminCanEdit *bool `json:"onlyAdminCanEdit,omitempty"` + Placeholder *string `json:"placeholder,omitempty"` + ProjectDefaultValues *[]CustomFieldDefaultValuesDto `json:"projectDefaultValues,omitempty"` + Required *bool `json:"required,omitempty"` + Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + WorkspaceDefaultValue *map[string]interface{} `json:"workspaceDefaultValue,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// CustomFieldFilter defines model for CustomFieldFilter. +type CustomFieldFilter struct { + Empty *bool `json:"empty,omitempty"` + Id *string `json:"id,omitempty"` + IsEmpty *bool `json:"isEmpty,omitempty"` + NumberComparison *string `json:"numberComparison,omitempty"` + Type *string `json:"type,omitempty"` + Value *map[string]interface{} `json:"value,omitempty"` +} + +// CustomFieldProjectDefaultValuesRequest defines model for CustomFieldProjectDefaultValuesRequest. +type CustomFieldProjectDefaultValuesRequest struct { + // DefaultValue Represents a custom field's default value. + DefaultValue *map[string]interface{} `json:"defaultValue,omitempty"` + + // Status Represents custom field status. + Status *CustomFieldProjectDefaultValuesRequestStatus `json:"status,omitempty"` +} + +// CustomFieldProjectDefaultValuesRequestStatus Represents custom field status. +type CustomFieldProjectDefaultValuesRequestStatus string + +// CustomFieldRequest defines model for CustomFieldRequest. +type CustomFieldRequest struct { + AllowedValues *[]string `json:"allowedValues,omitempty"` + Description *string `json:"description,omitempty"` + EntityType *string `json:"entityType,omitempty"` + Name *string `json:"name,omitempty"` + OnlyAdminCanEdit *bool `json:"onlyAdminCanEdit,omitempty"` + Placeholder *string `json:"placeholder,omitempty"` + Required *bool `json:"required,omitempty"` + Status *CustomFieldRequestStatus `json:"status,omitempty"` + Type *CustomFieldRequestType `json:"type,omitempty"` + WorkspaceDefaultValue *map[string]interface{} `json:"workspaceDefaultValue,omitempty"` +} + +// CustomFieldRequestStatus defines model for CustomFieldRequest.Status. +type CustomFieldRequestStatus string + +// CustomFieldRequestType defines model for CustomFieldRequest.Type. +type CustomFieldRequestType string + +// CustomFieldRequiredAvailabilityDto defines model for CustomFieldRequiredAvailabilityDto. +type CustomFieldRequiredAvailabilityDto struct { + AllowedValues *[]string `json:"allowedValues,omitempty"` + Description *string `json:"description,omitempty"` + EntityType *string `json:"entityType,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + OnlyAdminCanEdit *bool `json:"onlyAdminCanEdit,omitempty"` + Placeholder *string `json:"placeholder,omitempty"` + ProjectDefaultValues *[]CustomFieldDefaultValuesDto `json:"projectDefaultValues,omitempty"` + Required *bool `json:"required,omitempty"` + RequiredStatus *CustomFieldRequiredStatusDto `json:"requiredStatus,omitempty"` + Status *string `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + WorkspaceDefaultValue *map[string]interface{} `json:"workspaceDefaultValue,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// CustomFieldRequiredStatusDto defines model for CustomFieldRequiredStatusDto. +type CustomFieldRequiredStatusDto struct { + CanBeRequired *bool `json:"canBeRequired,omitempty"` + Reason *string `json:"reason,omitempty"` +} + +// CustomFieldValueDto defines model for CustomFieldValueDto. +type CustomFieldValueDto struct { + // CustomFieldId Represents custom field identifier across the system. + CustomFieldId *string `json:"customFieldId,omitempty"` + + // SourceType Represents a custom field value source type. + SourceType *CustomFieldValueDtoSourceType `json:"sourceType,omitempty"` + + // TimeEntryId Represents time entry identifier across the system. + TimeEntryId *string `json:"timeEntryId,omitempty"` + + // Value Represents custom field value. + Value *map[string]interface{} `json:"value,omitempty"` +} + +// CustomFieldValueDtoSourceType Represents a custom field value source type. +type CustomFieldValueDtoSourceType string + +// CustomFieldValueFullDto defines model for CustomFieldValueFullDto. +type CustomFieldValueFullDto struct { + CustomField *CustomFieldDto `json:"customField,omitempty"` + CustomFieldDto *CustomFieldDto `json:"customFieldDto,omitempty"` + CustomFieldId *string `json:"customFieldId,omitempty"` + Name *string `json:"name,omitempty"` + SourceType *string `json:"sourceType,omitempty"` + TimeEntryId *string `json:"timeEntryId,omitempty"` + Type *string `json:"type,omitempty"` + Value *map[string]interface{} `json:"value,omitempty"` +} + +// CustomLabelsDto defines model for CustomLabelsDto. +type CustomLabelsDto struct { + ProjectGroupingLabel *string `json:"projectGroupingLabel,omitempty"` + ProjectLabel *string `json:"projectLabel,omitempty"` + TaskLabel *string `json:"taskLabel,omitempty"` +} + +// CustomLabelsRequest defines model for CustomLabelsRequest. +type CustomLabelsRequest struct { + ProjectGroupingLabel *string `json:"projectGroupingLabel,omitempty"` + ProjectLabel *string `json:"projectLabel,omitempty"` + TaskLabel *string `json:"taskLabel,omitempty"` +} + +// CustomSupportLinksSettings defines model for CustomSupportLinksSettings. +type CustomSupportLinksSettings struct { + CustomLinks *[]Link `json:"customLinks,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} + +// CustomSupportLinksSettingsDto defines model for CustomSupportLinksSettingsDto. +type CustomSupportLinksSettingsDto struct { + CustomLinks *[]LinkDto `json:"customLinks,omitempty"` + Enabled *bool `json:"enabled,omitempty"` +} + +// CustomSupportLinksSettingsRequest defines model for CustomSupportLinksSettingsRequest. +type CustomSupportLinksSettingsRequest struct { + CustomLinks *[]LinkRequest `json:"customLinks,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Links *[]LinkRequest `json:"links,omitempty"` +} + +// CustomerBillingInformationDto defines model for CustomerBillingInformationDto. +type CustomerBillingInformationDto struct { + AccountType *string `json:"accountType,omitempty"` + Address1 *string `json:"address1,omitempty"` + Address2 *string `json:"address2,omitempty"` + BillingCountry *string `json:"billingCountry,omitempty"` + City *string `json:"city,omitempty"` + CompanyName *string `json:"companyName,omitempty"` + Country *string `json:"country,omitempty"` + Currency *string `json:"currency,omitempty"` + Email *string `json:"email,omitempty"` + Source *string `json:"source,omitempty"` + State *string `json:"state,omitempty"` + TaxIds *map[string]string `json:"taxIds,omitempty"` + Zip *string `json:"zip,omitempty"` +} + +// CustomerBillingRequest defines model for CustomerBillingRequest. +type CustomerBillingRequest struct { + CompanyName *string `json:"companyName,omitempty"` + CustomerId *string `json:"customerId,omitempty"` + Email *string `json:"email,omitempty"` + InvoiceAddress1 *string `json:"invoiceAddress1,omitempty"` + InvoiceAddress2 *string `json:"invoiceAddress2,omitempty"` + InvoiceCity *string `json:"invoiceCity,omitempty"` + InvoiceZip *string `json:"invoiceZip,omitempty"` + TaxIds *map[string]string `json:"taxIds,omitempty"` +} + +// CustomerDto defines model for CustomerDto. +type CustomerDto struct { + CountryCode *string `json:"countryCode,omitempty"` + Source *CustomerDtoSource `json:"source,omitempty"` +} + +// CustomerDtoSource defines model for CustomerDto.Source. +type CustomerDtoSource string + +// CustomerInformationDto defines model for CustomerInformationDto. +type CustomerInformationDto struct { + Account *string `json:"account,omitempty"` + CustomerId *string `json:"customerId,omitempty"` +} + +// CustomerPaymentInformationDto defines model for CustomerPaymentInformationDto. +type CustomerPaymentInformationDto struct { + CardExpMonth *string `json:"cardExpMonth,omitempty"` + CardExpYear *string `json:"cardExpYear,omitempty"` + CardHolder *string `json:"cardHolder,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` + Last4 *string `json:"last4,omitempty"` + State *string `json:"state,omitempty"` + Street *string `json:"street,omitempty"` + Type *string `json:"type,omitempty"` + Zip *string `json:"zip,omitempty"` +} + +// CustomerRequest defines model for CustomerRequest. +type CustomerRequest struct { + AccountType *string `json:"accountType,omitempty"` + Country *string `json:"country,omitempty"` + State *string `json:"state,omitempty"` +} + +// DatePeriod Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd +type DatePeriod struct { + EndDate *openapi_types.Date `json:"endDate,omitempty"` + StartDate *openapi_types.Date `json:"startDate,omitempty"` +} + +// DatePeriodRequest defines model for DatePeriodRequest. +type DatePeriodRequest struct { + // EndDate yyyy-MM-dd format date + EndDate string `json:"endDate"` + + // StartDate yyyy-MM-dd format date + StartDate string `json:"startDate"` +} + +// DateRange defines model for DateRange. +type DateRange struct { + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` +} + +// DateRangeDto defines model for DateRangeDto. +type DateRangeDto struct { + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` +} + +// DayOfWeek Represents a day of the week. +type DayOfWeek string + +// DefaultBreakEntitiesDto defines model for DefaultBreakEntitiesDto. +type DefaultBreakEntitiesDto struct { + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// DefaultBreakEntitiesRequest defines model for DefaultBreakEntitiesRequest. +type DefaultBreakEntitiesRequest struct { + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// DefaultEntitiesDto defines model for DefaultEntitiesDto. +type DefaultEntitiesDto struct { + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// DefaultEntitiesRequest Provides information about default project and task for automatically created time entries. +type DefaultEntitiesRequest struct { + // ProjectId Default project for automatically created time entries + ProjectId *string `json:"projectId,omitempty"` + + // TaskId Default task for automatically created time entries + TaskId *string `json:"taskId,omitempty"` +} + +// DefaultKioskEntitiesRequest defines model for DefaultKioskEntitiesRequest. +type DefaultKioskEntitiesRequest struct { + BreakProjectId *string `json:"breakProjectId,omitempty"` + BreakTaskId *string `json:"breakTaskId,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// DeleteCustomAttributeRequest defines model for DeleteCustomAttributeRequest. +type DeleteCustomAttributeRequest struct { + Name string `json:"name"` + Namespace string `json:"namespace"` +} + +// DisableAccessToEntitiesInTransferRequest defines model for DisableAccessToEntitiesInTransferRequest. +type DisableAccessToEntitiesInTransferRequest struct { + AccessDisabledDetails *map[string]string `json:"accessDisabledDetails,omitempty"` + DomainName *string `json:"domainName,omitempty"` + Reason *string `json:"reason,omitempty"` + UserEmails *[]string `json:"userEmails,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// DiscardStopwatchRequest defines model for DiscardStopwatchRequest. +type DiscardStopwatchRequest struct { + UserId *string `json:"userId,omitempty"` +} + +// DraftAssignmentsCountDto defines model for DraftAssignmentsCountDto. +type DraftAssignmentsCountDto struct { + Count *int64 `json:"count,omitempty"` +} + +// DurationAndAmount defines model for DurationAndAmount. +type DurationAndAmount struct { + Billable *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"billable,omitempty"` + BillableExpenses *float64 `json:"billableExpenses,omitempty"` + ExpenseBillableAmount *float64 `json:"expenseBillableAmount,omitempty"` + ExpenseNonBillableAmount *float64 `json:"expenseNonBillableAmount,omitempty"` + NonBillable *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"nonBillable,omitempty"` + NonBillableExpenses *float64 `json:"nonBillableExpenses,omitempty"` + TotalAmount *float64 `json:"totalAmount,omitempty"` + TotalExpensesAmount *float64 `json:"totalExpensesAmount,omitempty"` +} + +// EmailContentDto defines model for EmailContentDto. +type EmailContentDto struct { + Body *string `json:"body,omitempty"` + Subject *string `json:"subject,omitempty"` +} + +// EntityCreationPermissionsDto defines model for EntityCreationPermissionsDto. +type EntityCreationPermissionsDto struct { + WhoCanCreateProjectsAndClients *EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients `json:"whoCanCreateProjectsAndClients,omitempty"` + WhoCanCreateTags *EntityCreationPermissionsDtoWhoCanCreateTags `json:"whoCanCreateTags,omitempty"` + WhoCanCreateTasks *EntityCreationPermissionsDtoWhoCanCreateTasks `json:"whoCanCreateTasks,omitempty"` +} + +// EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients defines model for EntityCreationPermissionsDto.WhoCanCreateProjectsAndClients. +type EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients string + +// EntityCreationPermissionsDtoWhoCanCreateTags defines model for EntityCreationPermissionsDto.WhoCanCreateTags. +type EntityCreationPermissionsDtoWhoCanCreateTags string + +// EntityCreationPermissionsDtoWhoCanCreateTasks defines model for EntityCreationPermissionsDto.WhoCanCreateTasks. +type EntityCreationPermissionsDtoWhoCanCreateTasks string + +// EntityIdNameDto defines model for EntityIdNameDto. +type EntityIdNameDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// EstimateDto defines model for EstimateDto. +type EstimateDto struct { + Estimate *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"estimate,omitempty"` + Type *EstimateDtoType `json:"type,omitempty"` +} + +// EstimateDtoType defines model for EstimateDto.Type. +type EstimateDtoType string + +// EstimateRequest defines model for EstimateRequest. +type EstimateRequest struct { + // Estimate Represents a time duration in ISO-8601 format. + Estimate *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"estimate,omitempty"` + + // Type Represents an estimate type enum. + Type *EstimateRequestType `json:"type,omitempty"` +} + +// EstimateRequestType Represents an estimate type enum. +type EstimateRequestType string + +// EstimateResetDto defines model for EstimateResetDto. +type EstimateResetDto struct { + DayOfMonth *int32 `json:"dayOfMonth,omitempty"` + DayOfWeek *EstimateResetDtoDayOfWeek `json:"dayOfWeek,omitempty"` + Hour *int32 `json:"hour,omitempty"` + Interval *EstimateResetDtoInterval `json:"interval,omitempty"` + Month *EstimateResetDtoMonth `json:"month,omitempty"` +} + +// EstimateResetDtoDayOfWeek defines model for EstimateResetDto.DayOfWeek. +type EstimateResetDtoDayOfWeek string + +// EstimateResetDtoInterval defines model for EstimateResetDto.Interval. +type EstimateResetDtoInterval string + +// EstimateResetDtoMonth defines model for EstimateResetDto.Month. +type EstimateResetDtoMonth string + +// EstimateResetRequest Represents estimate reset request object. +type EstimateResetRequest struct { + // DayOfMonth Represents a day of the month. + DayOfMonth *int32 `json:"dayOfMonth,omitempty"` + + // DayOfWeek Represents a day of the week. + DayOfWeek *EstimateResetRequestDayOfWeek `json:"dayOfWeek,omitempty"` + + // Hour Represents an hour of the day in 24 hour time format. + Hour *int32 `json:"hour,omitempty"` + + // Interval Represents a reset option enum. + Interval *EstimateResetRequestInterval `json:"interval,omitempty"` + + // Month Represents a month enum. + Month *EstimateResetRequestMonth `json:"month,omitempty"` +} + +// EstimateResetRequestDayOfWeek Represents a day of the week. +type EstimateResetRequestDayOfWeek string + +// EstimateResetRequestInterval Represents a reset option enum. +type EstimateResetRequestInterval string + +// EstimateResetRequestMonth Represents a month enum. +type EstimateResetRequestMonth string + +// EstimateWithOptionsDto defines model for EstimateWithOptionsDto. +type EstimateWithOptionsDto struct { + Active *bool `json:"active,omitempty"` + + // Estimate Represents an estimate as long. + Estimate *int64 `json:"estimate,omitempty"` + + // IncludeExpenses Indicates whether estimate includes non-billable or not. + IncludeExpenses *bool `json:"includeExpenses,omitempty"` + + // ResetOption Represents a reset option enum. + ResetOption *EstimateWithOptionsDtoResetOption `json:"resetOption,omitempty"` + + // Type Represents an estimate type enum. + Type *EstimateWithOptionsDtoType `json:"type,omitempty"` +} + +// EstimateWithOptionsDtoResetOption Represents a reset option enum. +type EstimateWithOptionsDtoResetOption string + +// EstimateWithOptionsDtoType Represents an estimate type enum. +type EstimateWithOptionsDtoType string + +// EstimateWithOptionsRequest Represents estimate with options request object. +type EstimateWithOptionsRequest struct { + // Active Flag whether to set estimate as active or not. + Active *bool `json:"active,omitempty"` + + // Estimate Represents an estimate as long. + Estimate *int64 `json:"estimate,omitempty"` + + // IncludeExpenses Flag whether to include billable expenses. + IncludeExpenses *bool `json:"includeExpenses,omitempty"` + + // ResetOption Represents a reset option enum. + ResetOption *EstimateWithOptionsRequestResetOption `json:"resetOption,omitempty"` + + // Type Represents an estimate type enum. + Type *EstimateWithOptionsRequestType `json:"type,omitempty"` +} + +// EstimateWithOptionsRequestResetOption Represents a reset option enum. +type EstimateWithOptionsRequestResetOption string + +// EstimateWithOptionsRequestType Represents an estimate type enum. +type EstimateWithOptionsRequestType string + +// ExpenseCategoriesWithCountDto defines model for ExpenseCategoriesWithCountDto. +type ExpenseCategoriesWithCountDto struct { + Categories *[]ExpenseCategoryDto `json:"categories,omitempty"` + Count *int32 `json:"count,omitempty"` +} + +// ExpenseCategoryArchiveRequest defines model for ExpenseCategoryArchiveRequest. +type ExpenseCategoryArchiveRequest struct { + Archived *bool `json:"archived,omitempty"` +} + +// ExpenseCategoryDto defines model for ExpenseCategoryDto. +type ExpenseCategoryDto struct { + // Archived Flag that indicates whether the expense category is archived or not. + Archived *bool `json:"archived,omitempty"` + + // HasUnitPrice Represents whether expense category has unit price or none. + HasUnitPrice *bool `json:"hasUnitPrice,omitempty"` + + // Id Represents expense category identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents expense category name. + Name *string `json:"name,omitempty"` + + // PriceInCents Represents price in cents as integer. + PriceInCents *int32 `json:"priceInCents,omitempty"` + + // Unit Represents expense category unit. + Unit *string `json:"unit,omitempty"` + + // WorkspaceId Represents workspace identifier across the system. + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ExpenseCategoryRequest defines model for ExpenseCategoryRequest. +type ExpenseCategoryRequest struct { + HasUnitPrice *bool `json:"hasUnitPrice,omitempty"` + Name string `json:"name"` + PriceInCents *int32 `json:"priceInCents,omitempty"` + Unit *string `json:"unit,omitempty"` +} + +// ExpenseDailyTotalsDto defines model for ExpenseDailyTotalsDto. +type ExpenseDailyTotalsDto struct { + CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"` + Date *string `json:"date,omitempty"` + DateAsInstant *time.Time `json:"dateAsInstant,omitempty"` + Total *float64 `json:"total,omitempty"` +} + +// ExpenseDeletedDto defines model for ExpenseDeletedDto. +type ExpenseDeletedDto struct { + ApprovalRequestWithdrawn *bool `json:"approvalRequestWithdrawn,omitempty"` +} + +// ExpenseDto defines model for ExpenseDto. +type ExpenseDto struct { + Billable *bool `json:"billable,omitempty"` + CategoryId *string `json:"categoryId,omitempty"` + Date *string `json:"date,omitempty"` + FileId *string `json:"fileId,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + Locked *bool `json:"locked,omitempty"` + Notes *string `json:"notes,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Quantity *float64 `json:"quantity,omitempty"` + TaskId *string `json:"taskId,omitempty"` + Total *float64 `json:"total,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ExpenseHydratedDto defines model for ExpenseHydratedDto. +type ExpenseHydratedDto struct { + // ApprovalRequestId Represents approval request identifier across the system. + ApprovalRequestId *string `json:"approvalRequestId,omitempty"` + + // ApprovalStatus Represents the approval status of the expense + ApprovalStatus *ExpenseHydratedDtoApprovalStatus `json:"approvalStatus,omitempty"` + + // Billable Indicates whether expense is billable or not. + Billable *bool `json:"billable,omitempty"` + Category *ExpenseCategoryDto `json:"category,omitempty"` + + // Currency Represents a currency. + Currency *string `json:"currency,omitempty"` + + // Date Represents a date in yyyy-MM-dd format. + Date *string `json:"date,omitempty"` + + // FileId Represents file identifier across the system. + FileId *string `json:"fileId,omitempty"` + + // FileName Represents file name. + FileName *string `json:"fileName,omitempty"` + + // Id Represents expense identifier across the system. + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + Locked *bool `json:"locked,omitempty"` + + // Notes Represents notes for an expense. + Notes *string `json:"notes,omitempty"` + Project *ProjectInfoDto `json:"project,omitempty"` + + // Quantity Represents expense quantity as double data type. + Quantity *float64 `json:"quantity,omitempty"` + Task *TaskInfoDto `json:"task,omitempty"` + + // Total Represents expense total as double data type. + Total *float64 `json:"total,omitempty"` + + // UserId Represents user identifier across the system. + UserId *string `json:"userId,omitempty"` + + // WorkspaceId Represents workspace identifier across the system. + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ExpenseHydratedDtoApprovalStatus Represents the approval status of the expense +type ExpenseHydratedDtoApprovalStatus string + +// ExpensePeriodTotalsDto defines model for ExpensePeriodTotalsDto. +type ExpensePeriodTotalsDto struct { + CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"` + Date *string `json:"date,omitempty"` + DateAsInstant *time.Time `json:"dateAsInstant,omitempty"` + DateRange *DateRange `json:"dateRange,omitempty"` + Total *float64 `json:"total,omitempty"` +} + +// ExpenseWeekApprovalStatusDto defines model for ExpenseWeekApprovalStatusDto. +type ExpenseWeekApprovalStatusDto struct { + ApprovalRequestId *string `json:"approvalRequestId,omitempty"` + ApprovedCount *int64 `json:"approvedCount,omitempty"` + CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"` + DateRange *DateRangeDto `json:"dateRange,omitempty"` + ExpensesCount *int64 `json:"expensesCount,omitempty"` + HasUnSubmitted *bool `json:"hasUnSubmitted,omitempty"` + Status *string `json:"status,omitempty"` + SubmitterName *string `json:"submitterName,omitempty"` + Total *float64 `json:"total,omitempty"` + UnsubmittedExpensesCount *int64 `json:"unsubmittedExpensesCount,omitempty"` +} + +// ExpenseWithApprovalRequestUpdatedDto defines model for ExpenseWithApprovalRequestUpdatedDto. +type ExpenseWithApprovalRequestUpdatedDto struct { + ApprovalRequestWithdrawn *bool `json:"approvalRequestWithdrawn,omitempty"` + Billable *bool `json:"billable,omitempty"` + CategoryId *string `json:"categoryId,omitempty"` + Date *string `json:"date,omitempty"` + FileId *string `json:"fileId,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + Locked *bool `json:"locked,omitempty"` + Notes *string `json:"notes,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Quantity *float64 `json:"quantity,omitempty"` + TaskId *string `json:"taskId,omitempty"` + Total *float64 `json:"total,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ExpensesAndTotalsDto defines model for ExpensesAndTotalsDto. +type ExpensesAndTotalsDto struct { + ApprovalPeriod *ExpensesAndTotalsDtoApprovalPeriod `json:"approvalPeriod,omitempty"` + DailyTotals *[]ExpenseDailyTotalsDto `json:"dailyTotals,omitempty"` + Expenses *ExpensesWithCountDto `json:"expenses,omitempty"` + PeriodStatusMap *map[string]ExpenseWeekApprovalStatusDto `json:"periodStatusMap,omitempty"` + PeriodTotals *[]ExpensePeriodTotalsDto `json:"periodTotals,omitempty"` + // Deprecated: + WeeklyStatusMap *map[string]ExpenseWeekApprovalStatusDto `json:"weeklyStatusMap,omitempty"` + // Deprecated: + WeeklyTotals *[]ExpensePeriodTotalsDto `json:"weeklyTotals,omitempty"` +} + +// ExpensesAndTotalsDtoApprovalPeriod defines model for ExpensesAndTotalsDto.ApprovalPeriod. +type ExpensesAndTotalsDtoApprovalPeriod string + +// ExpensesIdsRequest defines model for ExpensesIdsRequest. +type ExpensesIdsRequest struct { + Ids *[]string `json:"ids,omitempty"` +} + +// ExpensesWithCountDto defines model for ExpensesWithCountDto. +type ExpensesWithCountDto struct { + Count *int32 `json:"count,omitempty"` + Expenses *[]ExpenseHydratedDto `json:"expenses,omitempty"` +} + +// FavoriteTimeEntryFullDto defines model for FavoriteTimeEntryFullDto. +type FavoriteTimeEntryFullDto struct { + Billable *bool `json:"billable,omitempty"` + Client *ClientDto `json:"client,omitempty"` + CustomFields *[]CustomFieldValueDto `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Order *int32 `json:"order,omitempty"` + Project *ProjectDtoImpl `json:"project,omitempty"` + Tags *[]TagDto `json:"tags,omitempty"` + Task *TaskDtoImpl `json:"task,omitempty"` + Type *string `json:"type,omitempty"` + User *UserDto `json:"user,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// FeatureSubscriptionsDto defines model for FeatureSubscriptionsDto. +type FeatureSubscriptionsDto struct { + EndDate *time.Time `json:"endDate,omitempty"` + Status *FeatureSubscriptionsDtoStatus `json:"status,omitempty"` + Type *FeatureSubscriptionsDtoType `json:"type,omitempty"` +} + +// FeatureSubscriptionsDtoStatus defines model for FeatureSubscriptionsDto.Status. +type FeatureSubscriptionsDtoStatus string + +// FeatureSubscriptionsDtoType defines model for FeatureSubscriptionsDto.Type. +type FeatureSubscriptionsDtoType string + +// FetchCustomAttributesRequest defines model for FetchCustomAttributesRequest. +type FetchCustomAttributesRequest struct { + CustomAttributes map[string]string `json:"customAttributes"` + EntityType *string `json:"entityType,omitempty"` + Namespace string `json:"namespace"` +} + +// FileImportRequest defines model for FileImportRequest. +type FileImportRequest struct { + ImportDataId *string `json:"importDataId,omitempty"` +} + +// GetApprovalTotalsRequest defines model for GetApprovalTotalsRequest. +type GetApprovalTotalsRequest struct { + End *string `json:"end,omitempty"` + Start *string `json:"start,omitempty"` +} + +// GetApprovalsRequest defines model for GetApprovalsRequest. +type GetApprovalsRequest struct { + Groupby *string `json:"group-by,omitempty"` + Groupby1 *string `json:"groupBy,omitempty"` + Limit *int32 `json:"limit,omitempty"` + Offset *int32 `json:"offset,omitempty"` + Page *int32 `json:"page,omitempty"` + Pagesize *int32 `json:"page-size,omitempty"` + Pagesize1 *int32 `json:"pageSize,omitempty"` + States *[]string `json:"states,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// GetCountRequest defines model for GetCountRequest. +type GetCountRequest struct { + States *[]string `json:"states,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// GetDraftCountRequest defines model for GetDraftCountRequest. +type GetDraftCountRequest struct { + End *time.Time `json:"end,omitempty"` + Search *string `json:"search,omitempty"` + Start *time.Time `json:"start,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` + ViewType *GetDraftCountRequestViewType `json:"viewType,omitempty"` +} + +// GetDraftCountRequestViewType defines model for GetDraftCountRequest.ViewType. +type GetDraftCountRequestViewType string + +// GetMainReportRequest defines model for GetMainReportRequest. +type GetMainReportRequest struct { + Access *GetMainReportRequestAccess `json:"access,omitempty"` + EndDate *string `json:"endDate,omitempty"` + StartDate *string `json:"startDate,omitempty"` + Type *GetMainReportRequestType `json:"type,omitempty"` + ZoomLevel *GetMainReportRequestZoomLevel `json:"zoomLevel,omitempty"` +} + +// GetMainReportRequestAccess defines model for GetMainReportRequest.Access. +type GetMainReportRequestAccess string + +// GetMainReportRequestType defines model for GetMainReportRequest.Type. +type GetMainReportRequestType string + +// GetMainReportRequestZoomLevel defines model for GetMainReportRequest.ZoomLevel. +type GetMainReportRequestZoomLevel string + +// GetProjectsAuthorizationsForUserRequest defines model for GetProjectsAuthorizationsForUserRequest. +type GetProjectsAuthorizationsForUserRequest struct { + ProjectIds []string `json:"projectIds"` +} + +// GetTimeOffRequestsRequest defines model for GetTimeOffRequestsRequest. +type GetTimeOffRequestsRequest struct { + End *time.Time `json:"end,omitempty"` + Limit *int32 `json:"limit,omitempty"` + Offset *int32 `json:"offset,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + Start *time.Time `json:"start,omitempty"` + Status *[]string `json:"status,omitempty"` + Statuses *[]GetTimeOffRequestsRequestStatuses `json:"statuses,omitempty"` + UserGroups *ContainsFilterRequest `json:"userGroups,omitempty"` + Users *ContainsFilterRequest `json:"users,omitempty"` +} + +// GetTimeOffRequestsRequestStatuses defines model for GetTimeOffRequestsRequest.Statuses. +type GetTimeOffRequestsRequestStatuses string + +// GetTimelineRequest defines model for GetTimelineRequest. +type GetTimelineRequest struct { + End *time.Time `json:"end,omitempty"` + ForceFilter *bool `json:"forceFilter,omitempty"` + RequestStatuses *[]string `json:"requestStatuses,omitempty"` + Start *time.Time `json:"start,omitempty"` + UserGroups *ContainsFilterRequest `json:"userGroups,omitempty"` + Users *ContainsFilterRequest `json:"users,omitempty"` +} + +// GetUnsubmittedEntriesDurationRequest defines model for GetUnsubmittedEntriesDurationRequest. +type GetUnsubmittedEntriesDurationRequest struct { + End *string `json:"end,omitempty"` + ShowUsers *GetUnsubmittedEntriesDurationRequestShowUsers `json:"showUsers,omitempty"` + Start *string `json:"start,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// GetUnsubmittedEntriesDurationRequestShowUsers defines model for GetUnsubmittedEntriesDurationRequest.ShowUsers. +type GetUnsubmittedEntriesDurationRequestShowUsers string + +// GetUserGroupByIdsRequest defines model for GetUserGroupByIdsRequest. +type GetUserGroupByIdsRequest struct { + ExcludeIds *[]string `json:"excludeIds,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` +} + +// GetUserTotalsRequest defines model for GetUserTotalsRequest. +type GetUserTotalsRequest struct { + End *time.Time `json:"end,omitempty"` + Page *int32 `json:"page,omitempty"` + Pagesize *int32 `json:"page-size,omitempty"` + Pagesize1 *int32 `json:"pageSize,omitempty"` + Search *string `json:"search,omitempty"` + Start *time.Time `json:"start,omitempty"` + StatusFilter *GetUserTotalsRequestStatusFilter `json:"statusFilter,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// GetUserTotalsRequestStatusFilter defines model for GetUserTotalsRequest.StatusFilter. +type GetUserTotalsRequestStatusFilter string + +// GetUsersByIdsRequest defines model for GetUsersByIdsRequest. +type GetUsersByIdsRequest struct { + UserIds *[]string `json:"userIds,omitempty"` +} + +// GetWorkspacesAuthorizationsForUserRequest defines model for GetWorkspacesAuthorizationsForUserRequest. +type GetWorkspacesAuthorizationsForUserRequest struct { + WorkspaceIds *[]string `json:"workspaceIds,omitempty"` +} + +// GroupsAndCountDto defines model for GroupsAndCountDto. +type GroupsAndCountDto struct { + Count *int64 `json:"count,omitempty"` + Groups *[]UserGroupDto `json:"groups,omitempty"` +} + +// HolidayDto defines model for HolidayDto. +type HolidayDto struct { + AutomaticTimeEntryCreation *AutomaticTimeEntryCreationDto `json:"automaticTimeEntryCreation,omitempty"` + + // Color Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format. + Color *string `json:"color,omitempty"` + + // DatePeriod Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd + DatePeriod *DatePeriod `json:"datePeriod,omitempty"` + + // EveryoneIncludingNew Indicates whether the holiday is shown to new users. + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + + // Id Represents holiday identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents the name of the holiday. + Name *string `json:"name,omitempty"` + + // OccursAnnually Indicates whether the holiday occurs annually. + OccursAnnually *bool `json:"occursAnnually,omitempty"` + + // UserGroupIds Indicates which user groups are included. + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + + // UserIds Indicates which users are included. + UserIds *[]string `json:"userIds,omitempty"` + + // WorkspaceId Represents workspace identifier across the system. + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// HolidayProjection defines model for HolidayProjection. +type HolidayProjection struct { + Color *string `json:"color,omitempty"` + Name *string `json:"name,omitempty"` +} + +// HolidayRequest defines model for HolidayRequest. +type HolidayRequest struct { + AutomaticTimeEntryCreation *AutomaticTimeEntryCreationRequest `json:"automaticTimeEntryCreation,omitempty"` + AutomaticTimeEntryCreationEnabled *bool `json:"automaticTimeEntryCreationEnabled,omitempty"` + Color *string `json:"color,omitempty"` + DatePeriod DatePeriodRequest `json:"datePeriod"` + DatePeriodRequest *DatePeriodRequest `json:"datePeriodRequest,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + Name string `json:"name"` + OccursAnnually *bool `json:"occursAnnually,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` + UserGroups *ContainsUserGroupFilterRequest `json:"userGroups,omitempty"` + Users *ContainsUsersFilterRequestForHoliday `json:"users,omitempty"` +} + +// HourlyRateRequest defines model for HourlyRateRequest. +type HourlyRateRequest struct { + // Amount Represents a cost rate amount as integer. + Amount int32 `json:"amount"` + + // Since Represents a datetime in yyyy-MM-ddThh:mm:ssZ format. + Since *string `json:"since,omitempty"` +} + +// IdNamePairDto defines model for IdNamePairDto. +type IdNamePairDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// ImportTimeEntriesAndExpensesRequest defines model for ImportTimeEntriesAndExpensesRequest. +type ImportTimeEntriesAndExpensesRequest struct { + ExpenseDescriptionConfig *[]string `json:"expenseDescriptionConfig,omitempty"` + ExpenseDescriptionConfigs *[]string `json:"expenseDescriptionConfigs,omitempty"` + ExpensesGroupBy *string `json:"expensesGroupBy,omitempty"` + ExpensesGroupType *string `json:"expensesGroupType,omitempty"` + FieldsForDetailed *[]string `json:"fieldsForDetailed,omitempty"` + From *string `json:"from,omitempty"` + GroupEntries *string `json:"groupEntries,omitempty"` + IncludeExpenses *bool `json:"includeExpenses,omitempty"` + PrimaryGroupBy *string `json:"primaryGroupBy,omitempty"` + ProjectsFilter *ContainsProjectsFilterRequest `json:"projectsFilter,omitempty"` + RoundEntries *bool `json:"roundEntries,omitempty"` + RoundEntryDuration *bool `json:"roundEntryDuration,omitempty"` + SecondaryGroupBy *string `json:"secondaryGroupBy,omitempty"` + To *string `json:"to,omitempty"` +} + +// InitialPriceRequest defines model for InitialPriceRequest. +type InitialPriceRequest struct { + Address1 *string `json:"address1,omitempty"` + City *string `json:"city,omitempty"` + Country *string `json:"country,omitempty"` + CustomerExists *bool `json:"customerExists,omitempty"` + CustomerType *string `json:"customerType,omitempty"` + LimitedQuantity *int32 `json:"limitedQuantity,omitempty"` + Quantity int32 `json:"quantity"` + Source *string `json:"source,omitempty"` + State *string `json:"state,omitempty"` + TaxIds *map[string]string `json:"taxIds,omitempty"` + Type string `json:"type"` + Zip *string `json:"zip,omitempty"` +} + +// InvisibleReCaptchaRequest defines model for InvisibleReCaptchaRequest. +type InvisibleReCaptchaRequest struct { + CaptchaValue *CaptchaResponseDto `json:"captchaValue,omitempty"` +} + +// InvitedEmailsInfo defines model for InvitedEmailsInfo. +type InvitedEmailsInfo struct { + AlreadyInvitedEmails *[]string `json:"alreadyInvitedEmails,omitempty"` + InvalidEmails *[]string `json:"invalidEmails,omitempty"` +} + +// InvoiceDefaultSettingsDto defines model for InvoiceDefaultSettingsDto. +type InvoiceDefaultSettingsDto struct { + // CompanyId Represents company identifier across the system. + CompanyId *string `json:"companyId,omitempty"` + + // DefaultImportExpenseItemTypeId Represents item type identifier across the system. + DefaultImportExpenseItemTypeId *string `json:"defaultImportExpenseItemTypeId,omitempty"` + + // DefaultImportTimeItemTypeId Represents item type identifier across the system. + DefaultImportTimeItemTypeId *string `json:"defaultImportTimeItemTypeId,omitempty"` + + // DueDays Represents an invoice number of due days. + DueDays *int32 `json:"dueDays,omitempty"` + ItemType *string `json:"itemType,omitempty"` + + // ItemTypeId Represents item type identifier across the system. + ItemTypeId *string `json:"itemTypeId,omitempty"` + + // Notes Represents an invoice note. + Notes *string `json:"notes,omitempty"` + + // Subject Represents an invoice subject. + Subject *string `json:"subject,omitempty"` + // Deprecated: + Tax *int64 `json:"tax,omitempty"` + // Deprecated: + Tax2 *int64 `json:"tax2,omitempty"` + + // Tax2Percent Represents a tax amount in percentage. + Tax2Percent *float64 `json:"tax2Percent,omitempty"` + + // TaxPercent Represents a tax amount in percentage. + TaxPercent *float64 `json:"taxPercent,omitempty"` + + // TaxType Represents a tax type. + TaxType *InvoiceDefaultSettingsDtoTaxType `json:"taxType,omitempty"` +} + +// InvoiceDefaultSettingsDtoTaxType Represents a tax type. +type InvoiceDefaultSettingsDtoTaxType string + +// InvoiceDefaultSettingsRequest defines model for InvoiceDefaultSettingsRequest. +type InvoiceDefaultSettingsRequest struct { + CompanyId *string `json:"companyId,omitempty"` + DueDays *int32 `json:"dueDays,omitempty"` + ItemTypeId *string `json:"itemTypeId,omitempty"` + Notes string `json:"notes"` + Subject string `json:"subject"` + Tax2Percent *float64 `json:"tax2Percent,omitempty"` + TaxPercent *float64 `json:"taxPercent,omitempty"` + TaxType *InvoiceDefaultSettingsRequestTaxType `json:"taxType,omitempty"` +} + +// InvoiceDefaultSettingsRequestTaxType defines model for InvoiceDefaultSettingsRequest.TaxType. +type InvoiceDefaultSettingsRequestTaxType string + +// InvoiceEmailDataDto defines model for InvoiceEmailDataDto. +type InvoiceEmailDataDto struct { + Body string `json:"body"` + FromEmail string `json:"fromEmail"` + Subject string `json:"subject"` + ToEmail string `json:"toEmail"` +} + +// InvoiceEmailDataRequest defines model for InvoiceEmailDataRequest. +type InvoiceEmailDataRequest struct { + Body string `json:"body"` + Subject string `json:"subject"` + ToEmail *string `json:"toEmail,omitempty"` +} + +// InvoiceEmailLinkDto defines model for InvoiceEmailLinkDto. +type InvoiceEmailLinkDto struct { + BlockExpiresAt *time.Time `json:"blockExpiresAt,omitempty"` + LinkExpiresAt *time.Time `json:"linkExpiresAt,omitempty"` +} + +// InvoiceEmailLinkPinRequest defines model for InvoiceEmailLinkPinRequest. +type InvoiceEmailLinkPinRequest struct { + EnteredPin *string `json:"enteredPin,omitempty"` +} + +// InvoiceEmailLinkPinValidationDto defines model for InvoiceEmailLinkPinValidationDto. +type InvoiceEmailLinkPinValidationDto struct { + BlockExpiresAt *time.Time `json:"blockExpiresAt,omitempty"` + ValidPin *bool `json:"validPin,omitempty"` +} + +// InvoiceEmailTemplateDto defines model for InvoiceEmailTemplateDto. +type InvoiceEmailTemplateDto struct { + Id *string `json:"_id,omitempty"` + EmailContent *EmailContentDto `json:"emailContent,omitempty"` + Identity *string `json:"identity,omitempty"` + InvoiceEmailTemplateType *InvoiceEmailTemplateDtoInvoiceEmailTemplateType `json:"invoiceEmailTemplateType,omitempty"` + InvoiceEmailType *InvoiceEmailTemplateDtoInvoiceEmailType `json:"invoiceEmailType,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// InvoiceEmailTemplateDtoInvoiceEmailTemplateType defines model for InvoiceEmailTemplateDto.InvoiceEmailTemplateType. +type InvoiceEmailTemplateDtoInvoiceEmailTemplateType string + +// InvoiceEmailTemplateDtoInvoiceEmailType defines model for InvoiceEmailTemplateDto.InvoiceEmailType. +type InvoiceEmailTemplateDtoInvoiceEmailType string + +// InvoiceExportFields defines model for InvoiceExportFields. +type InvoiceExportFields struct { + Rtl *bool `json:"RTL,omitempty"` + ItemType *bool `json:"itemType,omitempty"` + Quantity *bool `json:"quantity,omitempty"` + Rtl1 *bool `json:"rtl,omitempty"` + UnitPrice *bool `json:"unitPrice,omitempty"` +} + +// InvoiceExportFieldsRequest defines model for InvoiceExportFieldsRequest. +type InvoiceExportFieldsRequest struct { + // ItemType Indicates whether to export item type. + ItemType *bool `json:"itemType,omitempty"` + + // Quantity Indicates whether to export quantity. + Quantity *bool `json:"quantity,omitempty"` + + // Rtl Indicates whether to export RTL. + Rtl *bool `json:"rtl,omitempty"` + + // UnitPrice Indicates whether to export unit price. + UnitPrice *bool `json:"unitPrice,omitempty"` +} + +// InvoiceFilterNumericData defines model for InvoiceFilterNumericData. +type InvoiceFilterNumericData struct { + ExactValue *int64 `json:"exactValue,omitempty"` + GreaterThanValue *int64 `json:"greaterThanValue,omitempty"` + LessThanValue *int64 `json:"lessThanValue,omitempty"` +} + +// InvoiceFilterRequest defines model for InvoiceFilterRequest. +type InvoiceFilterRequest struct { + AmountFilterData *InvoiceFilterNumericData `json:"amountFilterData,omitempty"` + BalanceFilterData *InvoiceFilterNumericData `json:"balanceFilterData,omitempty"` + Clients *ContainsClientsFilterRequest `json:"clients,omitempty"` + Companies *ContainsCompaniesFilterRequest `json:"companies,omitempty"` + ContainsClientsFilterRequest *ContainsClientsFilterRequest `json:"containsClientsFilterRequest,omitempty"` + ContainsCompaniesFilterRequest *ContainsCompaniesFilterRequest `json:"containsCompaniesFilterRequest,omitempty"` + ExactAmount *int64 `json:"exact-amount,omitempty"` + ExactBalance *int64 `json:"exact-balance,omitempty"` + GreaterThanAmount *int64 `json:"greater-than-amount,omitempty"` + GreaterThanBalance *int64 `json:"greater-than-balance,omitempty"` + Invoicenumber *string `json:"invoice-number,omitempty"` + Invoicenumber1 *string `json:"invoiceNumber,omitempty"` + IssueDate *TimeRangeRequest `json:"issue-date,omitempty"` + LessThanAmount *int64 `json:"less-than-amount,omitempty"` + LessThanBalance *int64 `json:"less-than-balance,omitempty"` + Page int32 `json:"page"` + Pagesize *int32 `json:"page-size,omitempty"` + Pagesize1 int32 `json:"pageSize"` + Sortcolumn *string `json:"sort-column,omitempty"` + Sortorder *string `json:"sort-order,omitempty"` + Sortcolumn1 *string `json:"sortColumn,omitempty"` + Sortorder1 *string `json:"sortOrder,omitempty"` + Statuses *[]InvoiceFilterRequestStatuses `json:"statuses,omitempty"` + StrictIdSearch *bool `json:"strict-id-search,omitempty"` + StrictSearch *bool `json:"strictSearch,omitempty"` + TimeRangeRequest *TimeRangeRequest `json:"timeRangeRequest,omitempty"` +} + +// InvoiceFilterRequestStatuses defines model for InvoiceFilterRequest.Statuses. +type InvoiceFilterRequestStatuses string + +// InvoiceInfoDto defines model for InvoiceInfoDto. +type InvoiceInfoDto struct { + Amount *int64 `json:"amount,omitempty"` + Balance *int64 `json:"balance,omitempty"` + BillFrom *string `json:"billFrom,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientName *string `json:"clientName,omitempty"` + Currency *string `json:"currency,omitempty"` + DaysOverdue *int64 `json:"daysOverdue,omitempty"` + DueDate *time.Time `json:"dueDate,omitempty"` + HasPayments *bool `json:"hasPayments,omitempty"` + Id *string `json:"id,omitempty"` + IssuedDate *time.Time `json:"issuedDate,omitempty"` + Number *string `json:"number,omitempty"` + Paid *int64 `json:"paid,omitempty"` + Status *InvoiceInfoDtoStatus `json:"status,omitempty"` + VisibleZeroFields *[]InvoiceInfoDtoVisibleZeroFields `json:"visibleZeroFields,omitempty"` +} + +// InvoiceInfoDtoStatus defines model for InvoiceInfoDto.Status. +type InvoiceInfoDtoStatus string + +// InvoiceInfoDtoVisibleZeroFields defines model for InvoiceInfoDto.VisibleZeroFields. +type InvoiceInfoDtoVisibleZeroFields string + +// InvoiceInfoResponseDto defines model for InvoiceInfoResponseDto. +type InvoiceInfoResponseDto struct { + Invoices *[]InvoiceInfoDto `json:"invoices,omitempty"` + Total *int64 `json:"total,omitempty"` +} + +// InvoiceItemDto defines model for InvoiceItemDto. +type InvoiceItemDto struct { + // Amount Represents item amount. + Amount *int64 `json:"amount,omitempty"` + + // Description Represents an invoice item description. + Description *string `json:"description,omitempty"` + + // ItemType Represents item type. + ItemType *string `json:"itemType,omitempty"` + + // Order Represents an integer. + Order *int32 `json:"order,omitempty"` + + // Quantity Represents item quantity. + Quantity *int64 `json:"quantity,omitempty"` + + // TimeEntryIds Represents a list of time entrry IDs. + TimeEntryIds *[]string `json:"timeEntryIds,omitempty"` + + // UnitPrice Represents item unit price. + UnitPrice *int64 `json:"unitPrice,omitempty"` +} + +// InvoiceItemTypeDto defines model for InvoiceItemTypeDto. +type InvoiceItemTypeDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// InvoiceOverviewDto defines model for InvoiceOverviewDto. +type InvoiceOverviewDto struct { + Amount *int64 `json:"amount,omitempty"` + Balance *int64 `json:"balance,omitempty"` + BillFrom *string `json:"billFrom,omitempty"` + ClientAddress *string `json:"clientAddress,omitempty"` + ClientArchived *bool `json:"clientArchived,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientName *string `json:"clientName,omitempty"` + CompanyId *string `json:"companyId,omitempty"` + ContainsAttachedReceipts *bool `json:"containsAttachedReceipts,omitempty"` + ContainsImportedExpenses *bool `json:"containsImportedExpenses,omitempty"` + ContainsImportedTimes *bool `json:"containsImportedTimes,omitempty"` + Currency *string `json:"currency,omitempty"` + DaysOverdue *int64 `json:"daysOverdue,omitempty"` + // Deprecated: + Discount *float64 `json:"discount,omitempty"` + DiscountAmount *int64 `json:"discountAmount,omitempty"` + DiscountPercent *float64 `json:"discountPercent,omitempty"` + DueDate *time.Time `json:"dueDate,omitempty"` + HasPayments *bool `json:"hasPayments,omitempty"` + Id *string `json:"id,omitempty"` + IssuedDate *time.Time `json:"issuedDate,omitempty"` + Items *[]InvoiceItemDto `json:"items,omitempty"` + Note *string `json:"note,omitempty"` + Number *string `json:"number,omitempty"` + Paid *int64 `json:"paid,omitempty"` + Status *InvoiceOverviewDtoStatus `json:"status,omitempty"` + Subject *string `json:"subject,omitempty"` + Subtotal *int64 `json:"subtotal,omitempty"` + // Deprecated: + Tax *float64 `json:"tax,omitempty"` + // Deprecated: + Tax2 *float64 `json:"tax2,omitempty"` + Tax2Amount *int64 `json:"tax2Amount,omitempty"` + Tax2Percent *float64 `json:"tax2Percent,omitempty"` + TaxAmount *int64 `json:"taxAmount,omitempty"` + TaxPercent *float64 `json:"taxPercent,omitempty"` + UserId *string `json:"userId,omitempty"` + VisibleZeroFields *[]InvoiceOverviewDtoVisibleZeroFields `json:"visibleZeroFields,omitempty"` +} + +// InvoiceOverviewDtoStatus defines model for InvoiceOverviewDto.Status. +type InvoiceOverviewDtoStatus string + +// InvoiceOverviewDtoVisibleZeroFields defines model for InvoiceOverviewDto.VisibleZeroFields. +type InvoiceOverviewDtoVisibleZeroFields string + +// InvoicePaymentDto defines model for InvoicePaymentDto. +type InvoicePaymentDto struct { + Amount *int64 `json:"amount,omitempty"` + Author *string `json:"author,omitempty"` + Date *time.Time `json:"date,omitempty"` + Id *string `json:"id,omitempty"` + Note *string `json:"note,omitempty"` +} + +// InvoicePermissionsDto defines model for InvoicePermissionsDto. +type InvoicePermissionsDto struct { + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + SelectedUsersCount *int32 `json:"selectedUsersCount,omitempty"` + SpecificMembersAllowed *bool `json:"specificMembersAllowed,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// InvoicePermissionsRequest defines model for InvoicePermissionsRequest. +type InvoicePermissionsRequest struct { + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + SpecificMembersAllowed *bool `json:"specificMembersAllowed,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// InvoiceSettingsDto defines model for InvoiceSettingsDto. +type InvoiceSettingsDto struct { + Defaults *InvoiceDefaultSettingsDto `json:"defaults,omitempty"` + ExportFields *InvoiceExportFields `json:"exportFields,omitempty"` + Labels *LabelsCustomization `json:"labels,omitempty"` +} + +// KioskDefault defines model for KioskDefault. +type KioskDefault struct { + KioskId string `json:"kioskId"` + ProjectId string `json:"projectId"` + TaskId *string `json:"taskId,omitempty"` +} + +// KioskDto defines model for KioskDto. +type KioskDto struct { + DefaultEntities *DefaultEntitiesDto `json:"defaultEntities,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + GroupIds *[]string `json:"groupIds,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Pin *PinSettingDto `json:"pin,omitempty"` + SessionDuration *int32 `json:"sessionDuration,omitempty"` + Status *KioskDtoStatus `json:"status,omitempty"` + UrlSlug *string `json:"urlSlug,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// KioskDtoStatus defines model for KioskDto.Status. +type KioskDtoStatus string + +// KioskHydratedDto defines model for KioskHydratedDto. +type KioskHydratedDto struct { + DefaultEntities *DefaultEntitiesDto `json:"defaultEntities,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + Groups *[]UserGroupInfoDto `json:"groups,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Pin *PinSettingDto `json:"pin,omitempty"` + SessionDuration *int32 `json:"sessionDuration,omitempty"` + Status *KioskHydratedDtoStatus `json:"status,omitempty"` + UrlSlug *string `json:"urlSlug,omitempty"` + UrlToken *string `json:"urlToken,omitempty"` + Users *[]UserInfoWithMembershipStatusDto `json:"users,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// KioskHydratedDtoStatus defines model for KioskHydratedDto.Status. +type KioskHydratedDtoStatus string + +// KioskHydratedWithCountDto defines model for KioskHydratedWithCountDto. +type KioskHydratedWithCountDto struct { + Count *int32 `json:"count,omitempty"` + Kiosks *[]KioskHydratedDto `json:"kiosks,omitempty"` +} + +// KioskUserPinCodeDto defines model for KioskUserPinCodeDto. +type KioskUserPinCodeDto struct { + Id *string `json:"id,omitempty"` + PinCode *PinCode `json:"pinCode,omitempty"` + PinCodeContext *KioskUserPinCodeDtoPinCodeContext `json:"pinCodeContext,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// KioskUserPinCodeDtoPinCodeContext defines model for KioskUserPinCodeDto.PinCodeContext. +type KioskUserPinCodeDtoPinCodeContext string + +// LabelsCustomization defines model for LabelsCustomization. +type LabelsCustomization struct { + // Amount Represents invoice amount. + Amount *string `json:"amount,omitempty"` + + // BillFrom Represents a string an invoice is billed from. + BillFrom *string `json:"billFrom,omitempty"` + + // BillTo Represents a string an invoice is billed to. + BillTo *string `json:"billTo,omitempty"` + + // Description Represents a description of an invoice. + Description *string `json:"description,omitempty"` + + // Discount Represents invoice discount amount. + Discount *string `json:"discount,omitempty"` + + // DueDate Represents a due date in yyyy-MM-dd format. + DueDate *string `json:"dueDate,omitempty"` + + // IssueDate Represents an issue date in yyyy-MM-dd format. + IssueDate *string `json:"issueDate,omitempty"` + + // ItemType Represents an item type. + ItemType *string `json:"itemType,omitempty"` + + // Notes Represents notes for an invoice. + Notes *string `json:"notes,omitempty"` + + // Paid Represents invoice paid amount. + Paid *string `json:"paid,omitempty"` + + // Quantity Represents quantity. + Quantity *string `json:"quantity,omitempty"` + + // Subtotal Represents invoice subtotal. + Subtotal *string `json:"subtotal,omitempty"` + + // Tax Represents invoice tax amount. + Tax *string `json:"tax,omitempty"` + + // Tax2 Represents invoice tax amount. + Tax2 *string `json:"tax2,omitempty"` + + // Total Represents invoice total amount. + Total *string `json:"total,omitempty"` + + // TotalAmount Represents invoice total amount. + TotalAmount *string `json:"totalAmount,omitempty"` + + // UnitPrice Represents unit price. + UnitPrice *string `json:"unitPrice,omitempty"` +} + +// LabelsCustomizationRequest defines model for LabelsCustomizationRequest. +type LabelsCustomizationRequest struct { + // Amount Represents invoice amount label. + Amount string `json:"amount"` + + // BillFrom Represents invoice bill from label. + BillFrom string `json:"billFrom"` + + // BillTo Represents invoice bill to label. + BillTo string `json:"billTo"` + + // Description Represents invoice description label. + Description string `json:"description"` + + // Discount Represents invoice discount amount label. + Discount string `json:"discount"` + + // DueDate Represents invoice due date label. + DueDate string `json:"dueDate"` + + // IssueDate Represents invoice issue date label. + IssueDate string `json:"issueDate"` + + // ItemType Represents invoice item type label. + ItemType string `json:"itemType"` + + // Notes Represents invoice notes label. + Notes string `json:"notes"` + + // Paid Represents invoice paid amount label. + Paid string `json:"paid"` + + // Quantity Represents invoice quantity label. + Quantity string `json:"quantity"` + + // Subtotal Represents invoice subtotal label. + Subtotal string `json:"subtotal"` + + // Tax Represents invoice tax amount label. + Tax string `json:"tax"` + + // Tax2 Represents invoice tax 2 amount label. + Tax2 string `json:"tax2"` + + // Total Represents invoice total amount label. + Total string `json:"total"` + + // TotalAmountDue Represents invoice total amount due label. + TotalAmountDue string `json:"totalAmountDue"` + + // UnitPrice Represents invoice unit price label. + UnitPrice string `json:"unitPrice"` +} + +// LatestActivityItemDto defines model for LatestActivityItemDto. +type LatestActivityItemDto struct { + ClientName *string `json:"clientName,omitempty"` + Color *string `json:"color,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + Label *string `json:"label,omitempty"` + Percentage *string `json:"percentage,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + TransformedLabel *string `json:"transformedLabel,omitempty"` + TransformedProjectName *string `json:"transformedProjectName,omitempty"` +} + +// LegacyPlanNotificationRequest defines model for LegacyPlanNotificationRequest. +type LegacyPlanNotificationRequest struct { + WorkspaceIds *[]string `json:"workspaceIds,omitempty"` +} + +// LegacyPlanUpgradeDataDto defines model for LegacyPlanUpgradeDataDto. +type LegacyPlanUpgradeDataDto struct { + HasLegacyWorkspace *bool `json:"hasLegacyWorkspace,omitempty"` + IsAcknowledged *bool `json:"isAcknowledged,omitempty"` + IsCurrentWorkspaceLegacy *bool `json:"isCurrentWorkspaceLegacy,omitempty"` +} + +// LimboTokenRequest defines model for LimboTokenRequest. +type LimboTokenRequest struct { + CakeAccessToken *string `json:"cakeAccessToken,omitempty"` + ClockifyAccessToken *string `json:"clockifyAccessToken,omitempty"` + ExchangeToken *string `json:"exchangeToken,omitempty"` +} + +// Link defines model for Link. +type Link struct { + Copy *string `json:"copy,omitempty"` + Uri *string `json:"uri,omitempty"` +} + +// LinkDto defines model for LinkDto. +type LinkDto struct { + Copy *string `json:"copy,omitempty"` + Uri *string `json:"uri,omitempty"` +} + +// LinkRequest defines model for LinkRequest. +type LinkRequest struct { + Copy *string `json:"copy,omitempty"` + Uri *string `json:"uri,omitempty"` +} + +// LoginSettingsDto defines model for LoginSettingsDto. +type LoginSettingsDto struct { + AppleConfiguration *AppleConfigurationDto `json:"appleConfiguration,omitempty"` + AutoLogin *string `json:"autoLogin,omitempty"` + GetoAuthConfiguration *OAuthConfigurationDto `json:"getoAuthConfiguration,omitempty"` + IsoAuthAutomaticJoinWorkspace *bool `json:"isoAuthAutomaticJoinWorkspace,omitempty"` + LoginPreferences *[]string `json:"loginPreferences,omitempty"` + LogoURL *string `json:"logoURL,omitempty"` + Oauth2Forced *bool `json:"oauth2Forced,omitempty"` + RegistrationLocked *bool `json:"registrationLocked,omitempty"` + Saml2AutomaticJoinWorkspace *bool `json:"saml2AutomaticJoinWorkspace,omitempty"` + Saml2Forced *bool `json:"saml2Forced,omitempty"` + Saml2Settings *SAML2LoginSettingsDto `json:"saml2Settings,omitempty"` +} + +// MainReportDto defines model for MainReportDto. +type MainReportDto struct { + BillableAndTotalTime *map[string]TotalTimeItemDto `json:"billableAndTotalTime,omitempty"` + DateAndTotalTime *map[string][]TotalTimeItemDto `json:"dateAndTotalTime,omitempty"` + EarningByUserMap *map[string]int64 `json:"earningByUserMap,omitempty"` + EarningWithCurrencyByUserMap *map[string][]AmountWithCurrencyDto `json:"earningWithCurrencyByUserMap,omitempty"` + ProjectAndTotalTime *map[string]TotalTimeItemDto `json:"projectAndTotalTime,omitempty"` + TopClient *string `json:"topClient,omitempty"` + TopProject *string `json:"topProject,omitempty"` + TotalBillable *string `json:"totalBillable,omitempty"` + TotalEarned *int64 `json:"totalEarned,omitempty"` + TotalEarnedByCurrency *[]AmountWithCurrencyDto `json:"totalEarnedByCurrency,omitempty"` + TotalTime *string `json:"totalTime,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// MemberProfileDto defines model for MemberProfileDto. +type MemberProfileDto struct { + Email *string `json:"email,omitempty"` + HasPassword *bool `json:"hasPassword,omitempty"` + HasPendingApprovalRequest *bool `json:"hasPendingApprovalRequest,omitempty"` + ImageUrl *string `json:"imageUrl,omitempty"` + Name *string `json:"name,omitempty"` + UserCustomFieldValues *[]UserCustomFieldValueFullDto `json:"userCustomFieldValues,omitempty"` + WeekStart *string `json:"weekStart,omitempty"` + WorkCapacity *string `json:"workCapacity,omitempty"` + WorkingDays *[]string `json:"workingDays,omitempty"` + WorkspaceNumber *int32 `json:"workspaceNumber,omitempty"` +} + +// MemberProfileFullRequest defines model for MemberProfileFullRequest. +type MemberProfileFullRequest struct { + ImageUrl *Url `json:"imageUrl,omitempty"` + Name *string `json:"name,omitempty"` + RemoveProfileImage *bool `json:"removeProfileImage,omitempty"` + UserCustomFields *[]UpsertUserCustomFieldRequest `json:"userCustomFields,omitempty"` + UserCustomFieldsOptional *[]UpsertUserCustomFieldRequest `json:"userCustomFieldsOptional,omitempty"` + WeekStart *MemberProfileFullRequestWeekStart `json:"weekStart,omitempty"` + WorkCapacity *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"workCapacity,omitempty"` + WorkingDays *[]MemberProfileFullRequestWorkingDays `json:"workingDays,omitempty"` +} + +// MemberProfileFullRequestWeekStart defines model for MemberProfileFullRequest.WeekStart. +type MemberProfileFullRequestWeekStart string + +// MemberProfileFullRequestWorkingDays defines model for MemberProfileFullRequest.WorkingDays. +type MemberProfileFullRequestWorkingDays string + +// MemberProfileRequest defines model for MemberProfileRequest. +type MemberProfileRequest struct { + ImageUrl *Url `json:"imageUrl,omitempty"` + Name *string `json:"name,omitempty"` + RemoveProfileImage *bool `json:"removeProfileImage,omitempty"` + WeekStart *MemberProfileRequestWeekStart `json:"weekStart,omitempty"` + WorkCapacity *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"workCapacity,omitempty"` + WorkingDays *[]MemberProfileRequestWorkingDays `json:"workingDays,omitempty"` +} + +// MemberProfileRequestWeekStart defines model for MemberProfileRequest.WeekStart. +type MemberProfileRequestWeekStart string + +// MemberProfileRequestWorkingDays defines model for MemberProfileRequest.WorkingDays. +type MemberProfileRequestWorkingDays string + +// MemberSettingsRequest defines model for MemberSettingsRequest. +type MemberSettingsRequest struct { + WeekStart *MemberSettingsRequestWeekStart `json:"weekStart,omitempty"` + WorkCapacity *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"workCapacity,omitempty"` + WorkingDays *[]MemberSettingsRequestWorkingDays `json:"workingDays,omitempty"` +} + +// MemberSettingsRequestWeekStart defines model for MemberSettingsRequest.WeekStart. +type MemberSettingsRequestWeekStart string + +// MemberSettingsRequestWorkingDays defines model for MemberSettingsRequest.WorkingDays. +type MemberSettingsRequestWorkingDays string + +// MembersCountDto defines model for MembersCountDto. +type MembersCountDto struct { + ActiveLimitedMembersCount *int32 `json:"activeLimitedMembersCount,omitempty"` + ActiveMembersCount *int32 `json:"activeMembersCount,omitempty"` + InactiveMembersCount *int32 `json:"inactiveMembersCount,omitempty"` +} + +// MembershipDto defines model for MembershipDto. +type MembershipDto struct { + CostRate *RateDto `json:"costRate,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + MembershipStatus *MembershipDtoMembershipStatus `json:"membershipStatus,omitempty"` + MembershipType *string `json:"membershipType,omitempty"` + TargetId *string `json:"targetId,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// MembershipDtoMembershipStatus defines model for MembershipDto.MembershipStatus. +type MembershipDtoMembershipStatus string + +// MembershipRequest defines model for MembershipRequest. +type MembershipRequest struct { + HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"` + + // MembershipStatus Represents a membership status enum. + MembershipStatus *MembershipRequestMembershipStatus `json:"membershipStatus,omitempty"` + + // MembershipType Represents membership type enum. + MembershipType *MembershipRequestMembershipType `json:"membershipType,omitempty"` + + // UserId Represents user identifier across the system. + UserId *string `json:"userId,omitempty"` +} + +// MembershipRequestMembershipStatus Represents a membership status enum. +type MembershipRequestMembershipStatus string + +// MembershipRequestMembershipType Represents membership type enum. +type MembershipRequestMembershipType string + +// MilestoneCreateRequest defines model for MilestoneCreateRequest. +type MilestoneCreateRequest struct { + Date *string `json:"date,omitempty"` + Name *string `json:"name,omitempty"` + ProjectId string `json:"projectId"` +} + +// MilestoneDateRequest defines model for MilestoneDateRequest. +type MilestoneDateRequest struct { + Date *time.Time `json:"date,omitempty"` +} + +// MilestoneDto defines model for MilestoneDto. +type MilestoneDto struct { + // Date Represents a date in yyyy-MM-ddThh:mm:ssZ format. + Date *time.Time `json:"date,omitempty"` + + // Id Represents milestone identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents milestone name. + Name *string `json:"name,omitempty"` + + // ProjectId Represents project identifier across the system. + ProjectId *string `json:"projectId,omitempty"` + + // WorkspaceId Represents workspace identifier across the system. + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// MilestoneUpdateRequest defines model for MilestoneUpdateRequest. +type MilestoneUpdateRequest struct { + Date *time.Time `json:"date,omitempty"` + Name *string `json:"name,omitempty"` +} + +// MostTrackedDto defines model for MostTrackedDto. +type MostTrackedDto struct { + Billable *bool `json:"billable,omitempty"` + ClientName *string `json:"clientName,omitempty"` + Description *string `json:"description,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + Id *string `json:"id,omitempty"` + ProjectColor *string `json:"projectColor,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TaskName *string `json:"taskName,omitempty"` +} + +// NegativeBalanceDto defines model for NegativeBalanceDto. +type NegativeBalanceDto struct { + Amount *float64 `json:"amount,omitempty"` + Period *string `json:"period,omitempty"` + TimeUnit *string `json:"timeUnit,omitempty"` +} + +// NegativeBalanceRequest defines model for NegativeBalanceRequest. +type NegativeBalanceRequest struct { + // Amount Represents negative balance amount. + Amount float64 `json:"amount"` + AmountValidForTimeUnit *bool `json:"amountValidForTimeUnit,omitempty"` + + // Period Represents negative balance period. + Period *NegativeBalanceRequestPeriod `json:"period,omitempty"` + + // TimeUnit Represents negative balance time unit. + TimeUnit *NegativeBalanceRequestTimeUnit `json:"timeUnit,omitempty"` +} + +// NegativeBalanceRequestPeriod Represents negative balance period. +type NegativeBalanceRequestPeriod string + +// NegativeBalanceRequestTimeUnit Represents negative balance time unit. +type NegativeBalanceRequestTimeUnit string + +// NewsDto defines model for NewsDto. +type NewsDto struct { + Id *string `json:"id,omitempty"` + Image *NewsImageInfo `json:"image,omitempty"` + Link *string `json:"link,omitempty"` + LinkText *string `json:"linkText,omitempty"` + Message *string `json:"message,omitempty"` + Title *string `json:"title,omitempty"` + UserRole *NewsDtoUserRole `json:"userRole,omitempty"` + WorkspacePlan *NewsDtoWorkspacePlan `json:"workspacePlan,omitempty"` +} + +// NewsDtoUserRole defines model for NewsDto.UserRole. +type NewsDtoUserRole string + +// NewsDtoWorkspacePlan defines model for NewsDto.WorkspacePlan. +type NewsDtoWorkspacePlan string + +// NewsImageInfo defines model for NewsImageInfo. +type NewsImageInfo struct { + ImageName *string `json:"imageName,omitempty"` + ImagePath *string `json:"imagePath,omitempty"` +} + +// NewsRequest defines model for NewsRequest. +type NewsRequest struct { + Body *string `json:"body,omitempty"` + Header *string `json:"header,omitempty"` + Image *NewsImageInfo `json:"image,omitempty"` + Link *string `json:"link,omitempty"` + LinkText *string `json:"linkText,omitempty"` + Role *NewsRequestRole `json:"role,omitempty"` + WorkspaceIds *[]string `json:"workspaceIds,omitempty"` + WorkspacePlan *NewsRequestWorkspacePlan `json:"workspacePlan,omitempty"` +} + +// NewsRequestRole defines model for NewsRequest.Role. +type NewsRequestRole string + +// NewsRequestWorkspacePlan defines model for NewsRequest.WorkspacePlan. +type NewsRequestWorkspacePlan string + +// NextCustomerInformationDto defines model for NextCustomerInformationDto. +type NextCustomerInformationDto struct { + BillingAddress *string `json:"billingAddress,omitempty"` + BillingAddress2 *string `json:"billingAddress2,omitempty"` + BillingCity *string `json:"billingCity,omitempty"` + BillingCountry *string `json:"billingCountry,omitempty"` + BillingState *string `json:"billingState,omitempty"` + BillingZip *string `json:"billingZip,omitempty"` + Currency *string `json:"currency,omitempty"` +} + +// NextInvoiceNumberDto defines model for NextInvoiceNumberDto. +type NextInvoiceNumberDto struct { + NextNumber *string `json:"nextNumber,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// NotificationDataDto defines model for NotificationDataDto. +type NotificationDataDto struct { + Type *NotificationDataDtoType `json:"type,omitempty"` +} + +// NotificationDataDtoType defines model for NotificationDataDto.Type. +type NotificationDataDtoType string + +// NotificationDto defines model for NotificationDto. +type NotificationDto struct { + Data *NotificationDataDto `json:"data,omitempty"` + Id *string `json:"id,omitempty"` + Status *NotificationDtoStatus `json:"status,omitempty"` + Type *NotificationDtoType `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// NotificationDtoStatus defines model for NotificationDto.Status. +type NotificationDtoStatus string + +// NotificationDtoType defines model for NotificationDto.Type. +type NotificationDtoType string + +// OAuth2ConfigurationDto defines model for OAuth2ConfigurationDto. +type OAuth2ConfigurationDto struct { + AccessTokenPath *string `json:"accessTokenPath,omitempty"` + Active *bool `json:"active,omitempty"` + AuthorizationCodePath *string `json:"authorizationCodePath,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientSecret *string `json:"clientSecret,omitempty"` + EmailTokenField *string `json:"emailTokenField,omitempty"` + FirstNameTokenField *string `json:"firstNameTokenField,omitempty"` + ForceSSO *bool `json:"forceSSO,omitempty"` + IsActive *bool `json:"isActive,omitempty"` + LastNameTokenField *string `json:"lastNameTokenField,omitempty"` + LogoUri *string `json:"logoUri,omitempty"` + Scope *string `json:"scope,omitempty"` + UserInfoOpenIdPath *string `json:"userInfoOpenIdPath,omitempty"` + UsernameTokenField *string `json:"usernameTokenField,omitempty"` +} + +// OAuthConfigurationDto defines model for OAuthConfigurationDto. +type OAuthConfigurationDto struct { + Active *bool `json:"active,omitempty"` + ForceSSO *bool `json:"forceSSO,omitempty"` + IsActive *bool `json:"isActive,omitempty"` + LogoUri *string `json:"logoUri,omitempty"` + Url *string `json:"url,omitempty"` +} + +// OAuthConfigurationRequest defines model for OAuthConfigurationRequest. +type OAuthConfigurationRequest struct { + AccessTokenPath string `json:"accessTokenPath"` + Active *bool `json:"active,omitempty"` + AuthorizationCodePath string `json:"authorizationCodePath"` + ClientId string `json:"clientId"` + ClientSecret string `json:"clientSecret"` + EmailTokenField string `json:"emailTokenField"` + FirstNameTokenField *string `json:"firstNameTokenField,omitempty"` + ForceSSO *bool `json:"forceSSO,omitempty"` + LastNameTokenField *string `json:"lastNameTokenField,omitempty"` + LogoUri *string `json:"logoUri,omitempty"` + Scope string `json:"scope"` + UserInfoOpenIdPath string `json:"userInfoOpenIdPath"` + UsernameTokenField *string `json:"usernameTokenField,omitempty"` +} + +// OrganizationDto defines model for OrganizationDto. +type OrganizationDto struct { + Auth *AuthDto `json:"auth,omitempty"` + AutoLogin *OrganizationDtoAutoLogin `json:"autoLogin,omitempty"` + CustomSupportLinksSettings *CustomSupportLinksSettingsDto `json:"customSupportLinksSettings,omitempty"` + DomainName *string `json:"domainName,omitempty"` + Id *string `json:"id,omitempty"` + LoginPreferences *[]string `json:"loginPreferences,omitempty"` + LogoURL *string `json:"logoURL,omitempty"` + OAuthAutomaticJoinWorkspace *bool `json:"oAuthAutomaticJoinWorkspace,omitempty"` + Saml2AutomaticJoinWorkspace *bool `json:"saml2AutomaticJoinWorkspace,omitempty"` + WorkspaceIds *[]string `json:"workspaceIds,omitempty"` +} + +// OrganizationDtoAutoLogin defines model for OrganizationDto.AutoLogin. +type OrganizationDtoAutoLogin string + +// OrganizationNameDto defines model for OrganizationNameDto. +type OrganizationNameDto struct { + DomainName *string `json:"domainName,omitempty"` +} + +// OrganizationRequest defines model for OrganizationRequest. +type OrganizationRequest struct { + AutoLogin *OrganizationRequestAutoLogin `json:"autoLogin,omitempty"` + ConvertedCustomLinks *CustomSupportLinksSettings `json:"convertedCustomLinks,omitempty"` + CustomSupportLinksSettings *CustomSupportLinksSettingsRequest `json:"customSupportLinksSettings,omitempty"` + DomainName *string `json:"domainName,omitempty"` + LoginPreferences *[]string `json:"loginPreferences,omitempty"` + LogoURL *string `json:"logoURL,omitempty"` + OAuthAutomaticJoinWorkspace *bool `json:"oAuthAutomaticJoinWorkspace,omitempty"` + Saml2AutomaticJoinWorkspace *bool `json:"saml2AutomaticJoinWorkspace,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// OrganizationRequestAutoLogin defines model for OrganizationRequest.AutoLogin. +type OrganizationRequestAutoLogin string + +// OwnerIdResponse defines model for OwnerIdResponse. +type OwnerIdResponse struct { + OwnerId *string `json:"ownerId,omitempty"` +} + +// OwnerTimeZoneResponse defines model for OwnerTimeZoneResponse. +type OwnerTimeZoneResponse struct { + OwnerTimeZone *string `json:"ownerTimeZone,omitempty"` +} + +// PageProjectDto defines model for PageProjectDto. +type PageProjectDto struct { + Count *int32 `json:"count,omitempty"` + List *[]ProjectDto `json:"list,omitempty"` +} + +// PatchProjectRequest defines model for PatchProjectRequest. +type PatchProjectRequest struct { + Archived *bool `json:"archived,omitempty"` + Billable *bool `json:"billable,omitempty"` + ChangeFields *[]PatchProjectRequestChangeFields `json:"changeFields,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Color *string `json:"color,omitempty"` + Estimate *EstimateRequest `json:"estimate,omitempty"` + HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + OverwriteTasks *bool `json:"overwriteTasks,omitempty"` + ProjectIds *[]string `json:"projectIds,omitempty"` + Public *bool `json:"public,omitempty"` + Tasks *[]BulkTaskInfoRequest `json:"tasks,omitempty"` + // Deprecated: + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + UserGroups *ContainsUsersFilterRequest `json:"userGroups,omitempty"` + // Deprecated: + UserIds *[]string `json:"userIds,omitempty"` + Users *ContainsUsersFilterRequest `json:"users,omitempty"` +} + +// PatchProjectRequestChangeFields defines model for PatchProjectRequest.ChangeFields. +type PatchProjectRequestChangeFields string + +// PaymentCardInformation defines model for PaymentCardInformation. +type PaymentCardInformation struct { + CardHolder *string `json:"cardHolder,omitempty"` + Last4digits *int64 `json:"last4digits,omitempty"` + Month *PaymentCardInformationMonth `json:"month,omitempty"` + PaymentMethodId *string `json:"paymentMethodId,omitempty"` + Year *struct { + Leap *bool `json:"leap,omitempty"` + Value *int32 `json:"value,omitempty"` + } `json:"year,omitempty"` +} + +// PaymentCardInformationMonth defines model for PaymentCardInformation.Month. +type PaymentCardInformationMonth string + +// PaymentMethodAddressRequest defines model for PaymentMethodAddressRequest. +type PaymentMethodAddressRequest struct { + InvoiceCountry *string `json:"invoiceCountry,omitempty"` + InvoiceState *string `json:"invoiceState,omitempty"` + PaymentAddress *string `json:"paymentAddress,omitempty"` + PaymentCity *string `json:"paymentCity,omitempty"` + PaymentZip *string `json:"paymentZip,omitempty"` + PmAddress *string `json:"pmAddress,omitempty"` + PmCity *string `json:"pmCity,omitempty"` + PmCountry *string `json:"pmCountry,omitempty"` + PmState *string `json:"pmState,omitempty"` + PmZip *string `json:"pmZip,omitempty"` +} + +// PaymentRequest defines model for PaymentRequest. +type PaymentRequest struct { + CardHolder *string `json:"cardHolder,omitempty"` + Last4 *int64 `json:"last4,omitempty"` + Month *int32 `json:"month,omitempty"` + PaymentCardInformation *PaymentCardInformation `json:"paymentCardInformation,omitempty"` + PaymentMethodId *string `json:"paymentMethodId,omitempty"` + Type *PaymentRequestType `json:"type,omitempty"` + Year *int32 `json:"year,omitempty"` +} + +// PaymentRequestType defines model for PaymentRequest.Type. +type PaymentRequestType string + +// PenalizeTimeEntryRequest defines model for PenalizeTimeEntryRequest. +type PenalizeTimeEntryRequest struct { + Penalty int64 `json:"penalty"` + PenaltyTimePoint *string `json:"penaltyTimePoint,omitempty"` + PenaltyType *PenalizeTimeEntryRequestPenaltyType `json:"penaltyType,omitempty"` +} + +// PenalizeTimeEntryRequestPenaltyType defines model for PenalizeTimeEntryRequest.PenaltyType. +type PenalizeTimeEntryRequestPenaltyType string + +// PendingEmailChangeResponse defines model for PendingEmailChangeResponse. +type PendingEmailChangeResponse struct { + NewEmailAddress *string `json:"newEmailAddress,omitempty"` +} + +// Period defines model for Period. +type Period struct { + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` +} + +// PeriodRequest defines model for PeriodRequest. +type PeriodRequest struct { + End *string `json:"end,omitempty"` + EndAsInstant *time.Time `json:"endAsInstant,omitempty"` + Start *string `json:"start,omitempty"` + StartAsInstant *time.Time `json:"startAsInstant,omitempty"` +} + +// PickerOptions defines model for PickerOptions. +type PickerOptions = map[string]interface{} + +// PinCode defines model for PinCode. +type PinCode struct { + Code *string `json:"code,omitempty"` +} + +// PinCodeDto defines model for PinCodeDto. +type PinCodeDto struct { + Code *string `json:"code,omitempty"` +} + +// PinSettingDto defines model for PinSettingDto. +type PinSettingDto struct { + Code *string `json:"code,omitempty"` + Required *bool `json:"required,omitempty"` +} + +// PinSettingRequest defines model for PinSettingRequest. +type PinSettingRequest struct { + Code string `json:"code"` + Required *bool `json:"required,omitempty"` +} + +// PolicyAssignmentFullDto defines model for PolicyAssignmentFullDto. +type PolicyAssignmentFullDto struct { + Balance *float64 `json:"balance,omitempty"` + Id *string `json:"id,omitempty"` + + // Policy PolicyDto + Policy *PolicyDto `json:"policy,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + Status *PolicyAssignmentFullDtoStatus `json:"status,omitempty"` + Used *float64 `json:"used,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// PolicyAssignmentFullDtoStatus defines model for PolicyAssignmentFullDto.Status. +type PolicyAssignmentFullDtoStatus string + +// PolicyDto PolicyDto +type PolicyDto struct { + AllowHalfDay *bool `json:"allowHalfDay,omitempty"` + AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"` + Color *string `json:"color,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NegativeBalance *NegativeBalanceDto `json:"negativeBalance,omitempty"` + TimeUnit *PolicyDtoTimeUnit `json:"timeUnit,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + union json.RawMessage +} + +// PolicyDtoTimeUnit defines model for PolicyDto.TimeUnit. +type PolicyDtoTimeUnit string + +// PolicyFullDto defines model for PolicyFullDto. +type PolicyFullDto struct { + AllowHalfDay *bool `json:"allowHalfDay,omitempty"` + AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"` + Approve *ApproveDto `json:"approve,omitempty"` + Archived *bool `json:"archived,omitempty"` + AutomaticAccrual *AutomaticAccrualDto `json:"automaticAccrual,omitempty"` + AutomaticTimeEntryCreation *AutomaticTimeEntryCreationDto `json:"automaticTimeEntryCreation,omitempty"` + Color *string `json:"color,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NegativeBalance *NegativeBalanceDto `json:"negativeBalance,omitempty"` + TimeUnit *PolicyFullDtoTimeUnit `json:"timeUnit,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// PolicyFullDtoTimeUnit defines model for PolicyFullDto.TimeUnit. +type PolicyFullDtoTimeUnit string + +// PolicyProjection defines model for PolicyProjection. +type PolicyProjection struct { + Color *string `json:"color,omitempty"` + Name *string `json:"name,omitempty"` +} + +// PolicyRedactedDto defines model for PolicyRedactedDto. +type PolicyRedactedDto struct { + AllowHalfDay *bool `json:"allowHalfDay,omitempty"` + AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"` + Color *string `json:"color,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NegativeBalance *NegativeBalanceDto `json:"negativeBalance,omitempty"` + TimeUnit *PolicyRedactedDtoTimeUnit `json:"timeUnit,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// PolicyRedactedDtoTimeUnit defines model for PolicyRedactedDto.TimeUnit. +type PolicyRedactedDtoTimeUnit string + +// ProjectDto defines model for ProjectDto. +type ProjectDto struct { + Color *string `json:"color,omitempty"` + Duration *string `json:"duration,omitempty"` + Id *string `json:"id,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` + Public *bool `json:"public,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ProjectDtoImpl defines model for ProjectDtoImpl. +type ProjectDtoImpl struct { + Archived *bool `json:"archived,omitempty"` + Billable *bool `json:"billable,omitempty"` + BudgetEstimate *EstimateWithOptionsDto `json:"budgetEstimate,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientName *string `json:"clientName,omitempty"` + Color *string `json:"color,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + Currency *CurrencyDto `json:"currency,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + Estimate *EstimateDto `json:"estimate,omitempty"` + EstimateReset *EstimateResetDto `json:"estimateReset,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + IsTemplate *bool `json:"isTemplate,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` + Public *bool `json:"public,omitempty"` + Template *bool `json:"template,omitempty"` + TimeEstimate *TimeEstimateDto `json:"timeEstimate,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ProjectEstimateRequest defines model for ProjectEstimateRequest. +type ProjectEstimateRequest struct { + // BudgetEstimate Represents estimate with options request object. + BudgetEstimate *EstimateWithOptionsRequest `json:"budgetEstimate,omitempty"` + + // EstimateReset Represents estimate reset request object. + EstimateReset *EstimateResetRequest `json:"estimateReset,omitempty"` + + // TimeEstimate Represents project time estimate request object. + TimeEstimate *TimeEstimateRequest `json:"timeEstimate,omitempty"` +} + +// ProjectFavoritesDto defines model for ProjectFavoritesDto. +type ProjectFavoritesDto struct { + Id *string `json:"id,omitempty"` + ProjectId *string `json:"projectId,omitempty"` +} + +// ProjectFilterRequest defines model for ProjectFilterRequest. +type ProjectFilterRequest struct { + Archived *bool `json:"archived,omitempty"` + Billable *bool `json:"billable,omitempty"` + Clientstatus *string `json:"client-status,omitempty"` + ClientIds *[]string `json:"clientIds,omitempty"` + Clientstatus1 *string `json:"clientStatus,omitempty"` + Clients *[]string `json:"clients,omitempty"` + Containsclient *bool `json:"contains-client,omitempty"` + Containsuser *bool `json:"contains-user,omitempty"` + Containsclient1 *bool `json:"containsClient,omitempty"` + Containsuser1 *bool `json:"containsUser,omitempty"` + Hydrated *bool `json:"hydrated,omitempty"` + Istemplate *bool `json:"is-template,omitempty"` + Istemplate1 *bool `json:"isTemplate,omitempty"` + Name *string `json:"name,omitempty"` + Page *int32 `json:"page,omitempty"` + Pagesize *int32 `json:"page-size,omitempty"` + Pagesize1 *int32 `json:"pageSize,omitempty"` + Sortcolumn *string `json:"sort-column,omitempty"` + Sortorder *string `json:"sort-order,omitempty"` + Sortcolumn1 *string `json:"sortColumn,omitempty"` + Sortorder1 *string `json:"sortOrder,omitempty"` + Strictnamesearch *bool `json:"strict-name-search,omitempty"` + Strictnamesearch1 *bool `json:"strictNameSearch,omitempty"` + Userstatus *string `json:"user-status,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + Userstatus1 *string `json:"userStatus,omitempty"` + Users *[]string `json:"users,omitempty"` +} + +// ProjectFullDto defines model for ProjectFullDto. +type ProjectFullDto struct { + Archived *bool `json:"archived,omitempty"` + Billable *bool `json:"billable,omitempty"` + BillableDuration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"billableDuration,omitempty"` + BillableTime *float64 `json:"billableTime,omitempty"` + Budget *float64 `json:"budget,omitempty"` + BudgetEstimate *EstimateWithOptionsDto `json:"budgetEstimate,omitempty"` + Client *ClientDto `json:"client,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Color *string `json:"color,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + Currency *CurrencyDto `json:"currency,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + EntriesProgress *float64 `json:"entriesProgress,omitempty"` + Estimate *EstimateDto `json:"estimate,omitempty"` + EstimateReset *EstimateResetDto `json:"estimateReset,omitempty"` + EstimateResetDto *EstimateResetDto `json:"estimateResetDto,omitempty"` + ExpenseBillableAmount *float64 `json:"expenseBillableAmount,omitempty"` + ExpenseNonBillableAmount *float64 `json:"expenseNonBillableAmount,omitempty"` + ExpensesProgress *float64 `json:"expensesProgress,omitempty"` + Favorite *bool `json:"favorite,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsFavorite *bool `json:"isFavorite,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + IsTemplate *bool `json:"isTemplate,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + NonBillableDuration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"nonBillableDuration,omitempty"` + Note *string `json:"note,omitempty"` + Permissions *ProjectFullDto `json:"permissions,omitempty"` + Progress *float64 `json:"progress,omitempty"` + Public *bool `json:"public,omitempty"` + TaskCount *int32 `json:"taskCount,omitempty"` + Tasks *[]TaskDto `json:"tasks,omitempty"` + Template *bool `json:"template,omitempty"` + TimeEstimate *TimeEstimateDto `json:"timeEstimate,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ProjectId defines model for ProjectId. +type ProjectId struct { + DateOfCreationFromObjectId *time.Time `json:"dateOfCreationFromObjectId,omitempty"` +} + +// ProjectIdsRequest defines model for ProjectIdsRequest. +type ProjectIdsRequest struct { + ExcludedIds *[]string `json:"excludedIds,omitempty"` + Ids *[]string `json:"ids,omitempty"` + SearchValue *string `json:"searchValue,omitempty"` +} + +// ProjectInfoDto defines model for ProjectInfoDto. +type ProjectInfoDto struct { + // ClientId Represents client identifier across the system. + ClientId *string `json:"clientId,omitempty"` + + // ClientName Represents client name. + ClientName *string `json:"clientName,omitempty"` + + // Color Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format. + Color *string `json:"color,omitempty"` + + // Id Represents project identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents a project name. + Name *string `json:"name,omitempty"` +} + +// ProjectPatchRequest defines model for ProjectPatchRequest. +type ProjectPatchRequest struct { + Archived *bool `json:"archived,omitempty"` + Billable *bool `json:"billable,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Color *string `json:"color,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` +} + +// ProjectReportFilterRequest defines model for ProjectReportFilterRequest. +type ProjectReportFilterRequest struct { + Archived *string `json:"archived,omitempty"` + Clients *ContainsArchivedFilterRequest `json:"clients,omitempty"` + ExcludedIds *[]string `json:"excludedIds,omitempty"` + FilterOptions *ReportFilterOptions `json:"filterOptions,omitempty"` + IgnoreResultGrouping *bool `json:"ignoreResultGrouping,omitempty"` + IncludedIds *[]string `json:"includedIds,omitempty"` + Name *string `json:"name,omitempty"` + Options *ReportFilterOptions `json:"options,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + Status *string `json:"status,omitempty"` +} + +// ProjectStatus defines model for ProjectStatus. +type ProjectStatus struct { + Billable *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"billable,omitempty"` + BillableExpenses *float64 `json:"billableExpenses,omitempty"` + NonBillable *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"nonBillable,omitempty"` + NonBillableExpenses *float64 `json:"nonBillableExpenses,omitempty"` + Progress *float64 `json:"progress,omitempty"` + TaskStatus *map[string]DurationAndAmount `json:"taskStatus,omitempty"` + TotalAmount *float64 `json:"totalAmount,omitempty"` + TotalExpensesAmount *float64 `json:"totalExpensesAmount,omitempty"` +} + +// ProjectSummaryDto defines model for ProjectSummaryDto. +type ProjectSummaryDto struct { + Color *string `json:"color,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// ProjectTaskRequest defines model for ProjectTaskRequest. +type ProjectTaskRequest struct { + ProjectName string `json:"projectName"` + TaskName string `json:"taskName"` +} + +// ProjectTaskTupleDto defines model for ProjectTaskTupleDto. +type ProjectTaskTupleDto struct { + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// ProjectTaskTupleFullDto defines model for ProjectTaskTupleFullDto. +type ProjectTaskTupleFullDto struct { + Project *ProjectDtoImpl `json:"project,omitempty"` + ProjectId *ProjectDtoImpl `json:"projectId,omitempty"` + Task *TaskDtoImpl `json:"task,omitempty"` + TaskId *TaskDtoImpl `json:"taskId,omitempty"` + Type *string `json:"type,omitempty"` +} + +// ProjectTaskTupleRequest defines model for ProjectTaskTupleRequest. +type ProjectTaskTupleRequest struct { + ProjectId string `json:"projectId"` + TaskId *string `json:"taskId,omitempty"` + Type *string `json:"type,omitempty"` +} + +// ProjectTotalsRequest defines model for ProjectTotalsRequest. +type ProjectTotalsRequest struct { + End *time.Time `json:"end,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + Search *string `json:"search,omitempty"` + Start *time.Time `json:"start,omitempty"` + StatusFilter *ProjectTotalsRequestStatusFilter `json:"statusFilter,omitempty"` +} + +// ProjectTotalsRequestStatusFilter defines model for ProjectTotalsRequest.StatusFilter. +type ProjectTotalsRequestStatusFilter string + +// ProjectsByClientDto defines model for ProjectsByClientDto. +type ProjectsByClientDto struct { + Client *ClientDto `json:"client,omitempty"` + Projects *[]ProjectFullDto `json:"projects,omitempty"` + ProjectsCount *int32 `json:"projectsCount,omitempty"` +} + +// PtoRequestPeriodDto defines model for PtoRequestPeriodDto. +type PtoRequestPeriodDto struct { + HalfDay *bool `json:"halfDay,omitempty"` + HalfDayHours *Period `json:"halfDayHours,omitempty"` + HalfDayPeriod *string `json:"halfDayPeriod,omitempty"` + Period *Period `json:"period,omitempty"` +} + +// PtoTeamMemberDto defines model for PtoTeamMemberDto. +type PtoTeamMemberDto struct { + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// PtoTeamMembersAndCountDto defines model for PtoTeamMembersAndCountDto. +type PtoTeamMembersAndCountDto struct { + Count *int64 `json:"count,omitempty"` + Members *[]PtoTeamMemberDto `json:"members,omitempty"` +} + +// PublishAssignmentsRequest defines model for PublishAssignmentsRequest. +type PublishAssignmentsRequest struct { + End *string `json:"end,omitempty"` + NotifyUsers *bool `json:"notifyUsers,omitempty"` + Search *string `json:"search,omitempty"` + Start *string `json:"start,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` + ViewType *PublishAssignmentsRequestViewType `json:"viewType,omitempty"` +} + +// PublishAssignmentsRequestViewType defines model for PublishAssignmentsRequest.ViewType. +type PublishAssignmentsRequestViewType string + +// PumbleConnectedDto defines model for PumbleConnectedDto. +type PumbleConnectedDto struct { + Connected *bool `json:"connected,omitempty"` + IsConnected *bool `json:"isConnected,omitempty"` + PumbleWorkspaceId *string `json:"pumbleWorkspaceId,omitempty"` + PumbleWorkspaceName *string `json:"pumbleWorkspaceName,omitempty"` +} + +// PumbleInitialConnectionDto defines model for PumbleInitialConnectionDto. +type PumbleInitialConnectionDto struct { + SkippedUsers *int32 `json:"skippedUsers,omitempty"` +} + +// PumbleIntegrationRequest defines model for PumbleIntegrationRequest. +type PumbleIntegrationRequest struct { + PumbleWorkspaceId *string `json:"pumbleWorkspaceId,omitempty"` +} + +// PumbleIntegrationSettingsDto defines model for PumbleIntegrationSettingsDto. +type PumbleIntegrationSettingsDto struct { + ShowChatWidget *bool `json:"showChatWidget,omitempty"` +} + +// RateDto defines model for RateDto. +type RateDto struct { + // Amount Represents an amount as integer. + Amount *int32 `json:"amount,omitempty"` + + // Currency Represents a currency. + Currency *string `json:"currency,omitempty"` +} + +// ReadNewsRequest defines model for ReadNewsRequest. +type ReadNewsRequest struct { + NewsIds []string `json:"newsIds"` +} + +// RecurringAssignmentDto defines model for RecurringAssignmentDto. +type RecurringAssignmentDto struct { + // Repeat Indicates whether assignment is recurring or not. + Repeat *bool `json:"repeat,omitempty"` + + // SeriesId Represents series identifier. + SeriesId *string `json:"seriesId,omitempty"` + + // Weeks Represents number of weeks for thhis assignment. + Weeks *int32 `json:"weeks,omitempty"` +} + +// RecurringAssignmentRequest defines model for RecurringAssignmentRequest. +type RecurringAssignmentRequest struct { + // Repeat Indicates whether assignment is recurring or not. + Repeat *bool `json:"repeat,omitempty"` + + // Weeks Indicates number of weeks for assignment. + Weeks *int32 `json:"weeks,omitempty"` +} + +// RegionDto defines model for RegionDto. +type RegionDto struct { + CurrentlyActive *bool `json:"currentlyActive,omitempty"` + Name *string `json:"name,omitempty"` + Region *string `json:"region,omitempty"` + Url *string `json:"url,omitempty"` +} + +// RejectTimeOffRequestRequest defines model for RejectTimeOffRequestRequest. +type RejectTimeOffRequestRequest struct { + RejectionNote string `json:"rejectionNote"` +} + +// RemindToApproveRequest defines model for RemindToApproveRequest. +type RemindToApproveRequest struct { + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// RemindToSubmitAndTrackRequest defines model for RemindToSubmitAndTrackRequest. +type RemindToSubmitAndTrackRequest struct { + End *string `json:"end,omitempty"` + RemindToTrack *bool `json:"remindToTrack,omitempty"` + Start *string `json:"start,omitempty"` + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` +} + +// ReminderDto defines model for ReminderDto. +type ReminderDto struct { + DateRange *ReminderDtoDateRange `json:"dateRange,omitempty"` + Days *[]int32 `json:"days,omitempty"` + Hours *float64 `json:"hours,omitempty"` + Id *string `json:"id,omitempty"` + Less *bool `json:"less,omitempty"` + Receivers *[]string `json:"receivers,omitempty"` + Users *[]string `json:"users,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// ReminderDtoDateRange defines model for ReminderDto.DateRange. +type ReminderDtoDateRange string + +// ReorderFavoriteEntriesRequest defines model for ReorderFavoriteEntriesRequest. +type ReorderFavoriteEntriesRequest struct { + Ids *[]string `json:"ids,omitempty"` +} + +// ReorderInvoiceItemRequest defines model for ReorderInvoiceItemRequest. +type ReorderInvoiceItemRequest struct { + CurrentPosition int32 `json:"currentPosition"` + NewPosition int32 `json:"newPosition"` +} + +// ReportFilterOptions defines model for ReportFilterOptions. +type ReportFilterOptions struct { + Scope *string `json:"scope,omitempty"` +} + +// ReportFilterUsersWithCountDto defines model for ReportFilterUsersWithCountDto. +type ReportFilterUsersWithCountDto struct { + Count *int32 `json:"count,omitempty"` + IdNamePairs *[]IdNamePairDto `json:"idNamePairs,omitempty"` +} + +// RoleEntityDto defines model for RoleEntityDto. +type RoleEntityDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Source *AuthorizationSourceDto `json:"source,omitempty"` +} + +// RoleInfoDto defines model for RoleInfoDto. +type RoleInfoDto struct { + Entities *[]RoleEntityDto `json:"entities,omitempty"` + FormatterRoleName *string `json:"formatterRoleName,omitempty"` + Role *string `json:"role,omitempty"` +} + +// RoleNameDto defines model for RoleNameDto. +type RoleNameDto struct { + Role *string `json:"role,omitempty"` +} + +// RoundDto defines model for RoundDto. +type RoundDto struct { + Minutes *string `json:"minutes,omitempty"` + Round *string `json:"round,omitempty"` +} + +// SAML2ConfigurationDto defines model for SAML2ConfigurationDto. +type SAML2ConfigurationDto struct { + AssertionConsumerServiceUrl *string `json:"assertionConsumerServiceUrl,omitempty"` + Certificates *[]string `json:"certificates,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + ForceSAML2 *bool `json:"forceSAML2,omitempty"` + LoginUrl *string `json:"loginUrl,omitempty"` + LogoutUrl *string `json:"logoutUrl,omitempty"` + MetadataUrl *string `json:"metadataUrl,omitempty"` + RelyingPartyIdentifier *string `json:"relyingPartyIdentifier,omitempty"` +} + +// SAML2ConfigurationRequest defines model for SAML2ConfigurationRequest. +type SAML2ConfigurationRequest struct { + AssertionConsumerServiceUrl string `json:"assertionConsumerServiceUrl"` + Certificates *[]string `json:"certificates,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + ForceSAML2 *bool `json:"forceSAML2,omitempty"` + LoginUrl string `json:"loginUrl"` + LogoutUrl *string `json:"logoutUrl,omitempty"` + MetadataUrl string `json:"metadataUrl"` + RelyingPartyIdentifier string `json:"relyingPartyIdentifier"` +} + +// SAML2LoginSettingsDto defines model for SAML2LoginSettingsDto. +type SAML2LoginSettingsDto struct { + Active *bool `json:"active,omitempty"` + ForceSAML2 *bool `json:"forceSAML2,omitempty"` + LoginUrl *string `json:"loginUrl,omitempty"` + LogoutUrl *string `json:"logoutUrl,omitempty"` + SamlRequest *string `json:"samlRequest,omitempty"` +} + +// SMTPConfigurationDto defines model for SMTPConfigurationDto. +type SMTPConfigurationDto struct { + DebugEnabled *bool `json:"debugEnabled,omitempty"` + EmailAddress *string `json:"emailAddress,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + FromName *string `json:"fromName,omitempty"` + Host *string `json:"host,omitempty"` + Password *string `json:"password,omitempty"` + Port *int32 `json:"port,omitempty"` + StartTlsEnabled *bool `json:"startTlsEnabled,omitempty"` + Username *string `json:"username,omitempty"` +} + +// SchedulingExcludeDay defines model for SchedulingExcludeDay. +type SchedulingExcludeDay struct { + // Date Represents a datetimr in yyyy-MM-ddThh:mm:ssZ format. + Date *time.Time `json:"date,omitempty"` + + // Type Represents the scheduling exclude day enum. + Type *SchedulingExcludeDayType `json:"type,omitempty"` +} + +// SchedulingExcludeDayType Represents the scheduling exclude day enum. +type SchedulingExcludeDayType string + +// SchedulingProjectsBaseDto defines model for SchedulingProjectsBaseDto. +type SchedulingProjectsBaseDto = map[string]interface{} + +// SchedulingProjectsDto defines model for SchedulingProjectsDto. +type SchedulingProjectsDto struct { + Assignments *[]map[string]interface{} `json:"assignments,omitempty"` + ClientName *string `json:"clientName,omitempty"` + HasProjectAccess *bool `json:"hasProjectAccess,omitempty"` + ProjectArchived *bool `json:"projectArchived,omitempty"` + ProjectBillable *bool `json:"projectBillable,omitempty"` + ProjectColor *string `json:"projectColor,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + TotalHours *float64 `json:"totalHours,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// SchedulingProjectsTotalsWithoutBillableDto defines model for SchedulingProjectsTotalsWithoutBillableDto. +type SchedulingProjectsTotalsWithoutBillableDto struct { + Assignments *[]AssignmentPerDayDto `json:"assignments,omitempty"` + ClientName *string `json:"clientName,omitempty"` + Milestones *[]MilestoneDto `json:"milestones,omitempty"` + ProjectArchived *bool `json:"projectArchived,omitempty"` + ProjectBillable *bool `json:"projectBillable,omitempty"` + ProjectColor *string `json:"projectColor,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + TotalHours *float64 `json:"totalHours,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// SchedulingSettingsDto defines model for SchedulingSettingsDto. +type SchedulingSettingsDto struct { + CanSeeBillableAndCostAmount *bool `json:"canSeeBillableAndCostAmount,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + EveryoneCanSeeAllAssignments *bool `json:"everyoneCanSeeAllAssignments,omitempty"` + WhoCanCreateAssignments *SchedulingSettingsDtoWhoCanCreateAssignments `json:"whoCanCreateAssignments,omitempty"` +} + +// SchedulingSettingsDtoWhoCanCreateAssignments defines model for SchedulingSettingsDto.WhoCanCreateAssignments. +type SchedulingSettingsDtoWhoCanCreateAssignments string + +// SchedulingUsersBaseDto defines model for SchedulingUsersBaseDto. +type SchedulingUsersBaseDto = map[string]interface{} + +// SchedulingUsersTotalsWithoutBillableDto defines model for SchedulingUsersTotalsWithoutBillableDto. +type SchedulingUsersTotalsWithoutBillableDto struct { + CapacityPerDay *float64 `json:"capacityPerDay,omitempty"` + TotalHoursPerDay *[]TotalsPerDayDto `json:"totalHoursPerDay,omitempty"` + TotalsPerDay *[]TotalsPerDayDto `json:"totalsPerDay,omitempty"` + UserId *string `json:"userId,omitempty"` + UserImage *string `json:"userImage,omitempty"` + UserName *string `json:"userName,omitempty"` + UserStatus *string `json:"userStatus,omitempty"` + WeeklyCapacity *[]WeeklyCapacityDto `json:"weeklyCapacity,omitempty"` + WorkingDays *[]SchedulingUsersTotalsWithoutBillableDtoWorkingDays `json:"workingDays,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// SchedulingUsersTotalsWithoutBillableDtoWorkingDays defines model for SchedulingUsersTotalsWithoutBillableDto.WorkingDays. +type SchedulingUsersTotalsWithoutBillableDtoWorkingDays string + +// SendInvoiceEmailRequest defines model for SendInvoiceEmailRequest. +type SendInvoiceEmailRequest struct { + AttachExpenses *bool `json:"attachExpenses,omitempty"` + AttachInvoice *bool `json:"attachInvoice,omitempty"` + EmailData InvoiceEmailDataRequest `json:"emailData"` + SendMeCopy *bool `json:"sendMeCopy,omitempty"` +} + +// SetWorkspaceMembershipStatusRequest defines model for SetWorkspaceMembershipStatusRequest. +type SetWorkspaceMembershipStatusRequest struct { + MembershipStatus *SetWorkspaceMembershipStatusRequestMembershipStatus `json:"membershipStatus,omitempty"` + Status *string `json:"status,omitempty"` + UserId *string `json:"userId,omitempty"` + // Deprecated: + UserIds *[]string `json:"userIds,omitempty"` +} + +// SetWorkspaceMembershipStatusRequestMembershipStatus defines model for SetWorkspaceMembershipStatusRequest.MembershipStatus. +type SetWorkspaceMembershipStatusRequestMembershipStatus string + +// SetupIntentDto defines model for SetupIntentDto. +type SetupIntentDto struct { + ClientSecret *string `json:"clientSecret,omitempty"` +} + +// ShiftScheduleRequest defines model for ShiftScheduleRequest. +type ShiftScheduleRequest struct { + From *time.Time `json:"from,omitempty"` + To *time.Time `json:"to,omitempty"` +} + +// SidebarItemRequest defines model for SidebarItemRequest. +type SidebarItemRequest struct { + Interactive *bool `json:"interactive,omitempty"` + Order *int32 `json:"order,omitempty"` + SidebarItem *string `json:"sidebarItem,omitempty"` + SidebarSection *string `json:"sidebarSection,omitempty"` +} + +// SidebarResponseDto defines model for SidebarResponseDto. +type SidebarResponseDto struct { + Sidebar *map[string][]string `json:"sidebar,omitempty"` +} + +// SmtpConfigurationRequest defines model for SmtpConfigurationRequest. +type SmtpConfigurationRequest struct { + DebugEnabled *bool `json:"debugEnabled,omitempty"` + EmailAddress *string `json:"emailAddress,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + FromName *string `json:"fromName,omitempty"` + Host *string `json:"host,omitempty"` + Password *string `json:"password,omitempty"` + Port *int32 `json:"port,omitempty"` + StartTlsEnabled *bool `json:"startTlsEnabled,omitempty"` + Username *string `json:"username,omitempty"` +} + +// SplitAssignmentRequest defines model for SplitAssignmentRequest. +type SplitAssignmentRequest struct { + Date *time.Time `json:"date,omitempty"` +} + +// StartStopwatchRequest defines model for StartStopwatchRequest. +type StartStopwatchRequest struct { + Billable *bool `json:"billable,omitempty"` + ContinueStrategy *string `json:"continueStrategy,omitempty"` + CustomAttributes *[]CreateCustomAttributeRequest `json:"customAttributes,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + Type *string `json:"type,omitempty"` +} + +// StopStopwatchRequest defines model for StopStopwatchRequest. +type StopStopwatchRequest struct { + Billable *bool `json:"billable,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + State *StopStopwatchRequestState `json:"state,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// StopStopwatchRequestState defines model for StopStopwatchRequest.State. +type StopStopwatchRequestState string + +// StripeInvoiceDto defines model for StripeInvoiceDto. +type StripeInvoiceDto struct { + Amount *string `json:"amount,omitempty"` + CakeProduct *StripeInvoiceDtoCakeProduct `json:"cakeProduct,omitempty"` + Currency *string `json:"currency,omitempty"` + Date *string `json:"date,omitempty"` + Description *StripeInvoiceDtoDescription `json:"description,omitempty"` + InvoiceId *string `json:"invoiceId,omitempty"` + InvoicePay *string `json:"invoicePay,omitempty"` + InvoicePdf *string `json:"invoicePdf,omitempty"` + Status *string `json:"status,omitempty"` +} + +// StripeInvoiceDtoCakeProduct defines model for StripeInvoiceDto.CakeProduct. +type StripeInvoiceDtoCakeProduct string + +// StripeInvoiceDtoDescription defines model for StripeInvoiceDto.Description. +type StripeInvoiceDtoDescription string + +// StripeInvoicePayDto defines model for StripeInvoicePayDto. +type StripeInvoicePayDto struct { + InvoicePay *string `json:"invoicePay,omitempty"` +} + +// StripeInvoicesDto defines model for StripeInvoicesDto. +type StripeInvoicesDto struct { + Invoices *[]StripeInvoiceDto `json:"invoices,omitempty"` + NextPage *string `json:"nextPage,omitempty"` +} + +// SubmitApprovalRequest defines model for SubmitApprovalRequest. +type SubmitApprovalRequest struct { + Period *string `json:"period,omitempty"` + StartTime *string `json:"startTime,omitempty"` +} + +// SubscriptionCouponDto defines model for SubscriptionCouponDto. +type SubscriptionCouponDto struct { + Coupon *string `json:"coupon,omitempty"` + Type *string `json:"type,omitempty"` + Used *bool `json:"used,omitempty"` +} + +// SummaryReportSettingsDto defines model for SummaryReportSettingsDto. +type SummaryReportSettingsDto struct { + Group string `json:"group"` + Subgroup string `json:"subgroup"` +} + +// SyncClientsRequest defines model for SyncClientsRequest. +type SyncClientsRequest struct { + ClientSyncId string `json:"clientSyncId"` +} + +// SyncProjectsRequest defines model for SyncProjectsRequest. +type SyncProjectsRequest struct { + ProjectSyncId string `json:"projectSyncId"` +} + +// TagDto defines model for TagDto. +type TagDto struct { + // Archived Indicates whether tag is archived or not. + Archived *bool `json:"archived,omitempty"` + + // Id Represents tag identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents tag name. + Name *string `json:"name,omitempty"` + + // WorkspaceId Represents workspace identifier across the system. + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TagIdsRequest defines model for TagIdsRequest. +type TagIdsRequest struct { + Ids *[]string `json:"ids,omitempty"` +} + +// TagRequest defines model for TagRequest. +type TagRequest struct { + Archived *bool `json:"archived,omitempty"` + Name *string `json:"name,omitempty"` +} + +// TaskDto defines model for TaskDto. +type TaskDto struct { + AssigneeIds *[]string `json:"assigneeIds,omitempty"` + Billable *bool `json:"billable,omitempty"` + BudgetEstimate *int64 `json:"budgetEstimate,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + Estimate *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"estimate,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Progress *float64 `json:"progress,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Status *TaskDtoStatus `json:"status,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TaskDtoStatus defines model for TaskDto.Status. +type TaskDtoStatus string + +// TaskDtoImpl defines model for TaskDtoImpl. +type TaskDtoImpl struct { + // Deprecated: + AssigneeId *string `json:"assigneeId,omitempty"` + AssigneeIds *[]string `json:"assigneeIds,omitempty"` + Billable *bool `json:"billable,omitempty"` + BudgetEstimate *int64 `json:"budgetEstimate,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + Estimate *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"estimate,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Progress *float64 `json:"progress,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Status *TaskDtoImplStatus `json:"status,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TaskDtoImplStatus defines model for TaskDtoImpl.Status. +type TaskDtoImplStatus string + +// TaskFavoritesDto defines model for TaskFavoritesDto. +type TaskFavoritesDto struct { + Id *string `json:"_id,omitempty"` + Id1 *string `json:"id,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TaskFullDto defines model for TaskFullDto. +type TaskFullDto struct { + AssigneeIds *[]string `json:"assigneeIds,omitempty"` + Billable *bool `json:"billable,omitempty"` + BudgetEstimate *int64 `json:"budgetEstimate,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + Estimate *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"estimate,omitempty"` + Favorite *bool `json:"favorite,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsFavorite *bool `json:"isFavorite,omitempty"` + Name *string `json:"name,omitempty"` + Progress *float64 `json:"progress,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Status *TaskFullDtoStatus `json:"status,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TaskFullDtoStatus defines model for TaskFullDto.Status. +type TaskFullDtoStatus string + +// TaskId defines model for TaskId. +type TaskId struct { + DateOfCreationFromObjectId *time.Time `json:"dateOfCreationFromObjectId,omitempty"` +} + +// TaskIdsRequest defines model for TaskIdsRequest. +type TaskIdsRequest struct { + Ids *[]string `json:"ids,omitempty"` +} + +// TaskInfoDto defines model for TaskInfoDto. +type TaskInfoDto struct { + // Id Represents task identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents task name. + Name *string `json:"name,omitempty"` +} + +// TaskReportFilterRequest defines model for TaskReportFilterRequest. +type TaskReportFilterRequest struct { + Clients *ContainsArchivedFilterRequest `json:"clients,omitempty"` + ExcludedIds *[]string `json:"excludedIds,omitempty"` + IgnoreResultGrouping *bool `json:"ignoreResultGrouping,omitempty"` + IncludedIds *[]string `json:"includedIds,omitempty"` + Name *string `json:"name,omitempty"` + OfIncludedIds *[]string `json:"ofIncludedIds,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + Projects *ContainsArchivedFilterRequest `json:"projects,omitempty"` + Status *string `json:"status,omitempty"` +} + +// TaskRequest defines model for TaskRequest. +type TaskRequest struct { + // Deprecated: + AssigneeId *string `json:"assigneeId,omitempty"` + + // AssigneeIds Represents list of assignee ids for the task. + AssigneeIds *[]string `json:"assigneeIds,omitempty"` + + // Billable Flag to set whether task is billable or not + Billable *bool `json:"billable,omitempty"` + BudgetEstimate *int64 `json:"budgetEstimate,omitempty"` + CostRate *CostRateRequest `json:"costRate,omitempty"` + + // Estimate Represents a task duration estimate. + Estimate *string `json:"estimate,omitempty"` + HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"` + + // Id Represents task identifier across the system. + Id *string `json:"id,omitempty"` + + // Name Represents task name. + Name string `json:"name"` + + // ProjectId Represents project identifier across the system. + ProjectId *string `json:"projectId,omitempty"` + Status *string `json:"status,omitempty"` + + // UserGroupIds Represents list of user group ids for the task. + UserGroupIds *[]string `json:"userGroupIds,omitempty"` +} + +// TaskWithProjectDto defines model for TaskWithProjectDto. +type TaskWithProjectDto struct { + Project *ProjectFullDto `json:"project,omitempty"` + Task *TaskFullDto `json:"task,omitempty"` +} + +// TasksGroupedByProjectIdDto defines model for TasksGroupedByProjectIdDto. +type TasksGroupedByProjectIdDto struct { + ClientName *string `json:"clientName,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + Tasks *[]TaskDtoImpl `json:"tasks,omitempty"` +} + +// TeamActivityDto defines model for TeamActivityDto. +type TeamActivityDto struct { + Description *string `json:"description,omitempty"` + LatestActivityItems *[]LatestActivityItemDto `json:"latestActivityItems,omitempty"` + Project *ProjectInfoDto `json:"project,omitempty"` + Task *TaskInfoDto `json:"task,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + TotalTime *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"totalTime,omitempty"` + TransformedActivityItems *[]LatestActivityItemDto `json:"transformedActivityItems,omitempty"` + User *TeamMemberInfoDto `json:"user,omitempty"` +} + +// TeamMemberDto defines model for TeamMemberDto. +type TeamMemberDto struct { + AccessEnabled *bool `json:"accessEnabled,omitempty"` + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + RemoveOptionEnabled *bool `json:"removeOptionEnabled,omitempty"` + Roles *[]RoleNameDto `json:"roles,omitempty"` +} + +// TeamMemberInfoDto defines model for TeamMemberInfoDto. +type TeamMemberInfoDto struct { + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ProfilePicture *string `json:"profilePicture,omitempty"` +} + +// TeamMemberRequest defines model for TeamMemberRequest. +type TeamMemberRequest struct { + Email *string `json:"email,omitempty"` + Id string `json:"id"` + Name *string `json:"name,omitempty"` +} + +// TeamMembersAndCountDto defines model for TeamMembersAndCountDto. +type TeamMembersAndCountDto struct { + Count *int64 `json:"count,omitempty"` + Users *[]TeamMemberDto `json:"users,omitempty"` +} + +// TeamPolicyAssignmentsDistribution defines model for TeamPolicyAssignmentsDistribution. +type TeamPolicyAssignmentsDistribution struct { + SuperiorHasAssignments *bool `json:"superiorHasAssignments,omitempty"` + TeamMembersHaveAssignments *bool `json:"teamMembersHaveAssignments,omitempty"` +} + +// TemplateDto defines model for TemplateDto. +type TemplateDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TemplateDtoImpl defines model for TemplateDtoImpl. +type TemplateDtoImpl struct { + Entries *[]TimeEntryWithCustomFieldsDto `json:"entries,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ProjectsAndTasks *[]ProjectTaskTupleDto `json:"projectsAndTasks,omitempty"` + UserId *string `json:"userId,omitempty"` + WeekStart *openapi_types.Date `json:"weekStart,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TemplateFullWithEntitiesFullDto defines model for TemplateFullWithEntitiesFullDto. +type TemplateFullWithEntitiesFullDto struct { + Entries *[]TimeEntryFullDto `json:"entries,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + ProjectsAndTasks *[]ProjectTaskTupleFullDto `json:"projectsAndTasks,omitempty"` + UserId *string `json:"userId,omitempty"` + WeekStart *openapi_types.Date `json:"weekStart,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TemplatePatchRequest defines model for TemplatePatchRequest. +type TemplatePatchRequest struct { + Name string `json:"name"` +} + +// TemplateRequest defines model for TemplateRequest. +type TemplateRequest struct { + Name string `json:"name"` + ProjectsAndTasks []ProjectTaskTupleRequest `json:"projectsAndTasks"` + TimeEntryIds *[]string `json:"timeEntryIds,omitempty"` + WeekStart *openapi_types.Date `json:"weekStart,omitempty"` +} + +// TerminateSubscriptionRequest defines model for TerminateSubscriptionRequest. +type TerminateSubscriptionRequest struct { + NotifyUser *bool `json:"notifyUser,omitempty"` +} + +// TimeEntriesDurationRequest defines model for TimeEntriesDurationRequest. +type TimeEntriesDurationRequest struct { + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` +} + +// TimeEntriesPatchRequest defines model for TimeEntriesPatchRequest. +type TimeEntriesPatchRequest struct { + Billable *bool `json:"billable,omitempty"` + ChangeFields *[]TimeEntriesPatchRequestChangeFields `json:"changeFields,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + End *time.Time `json:"end,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Start *time.Time `json:"start,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeEntryIds *[]string `json:"timeEntryIds,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// TimeEntriesPatchRequestChangeFields defines model for TimeEntriesPatchRequest.ChangeFields. +type TimeEntriesPatchRequestChangeFields string + +// TimeEntryApprovalStatusDto defines model for TimeEntryApprovalStatusDto. +type TimeEntryApprovalStatusDto struct { + ApprovalRequestId *string `json:"approvalRequestId,omitempty"` + ApprovedCount *int32 `json:"approvedCount,omitempty"` + DateRange *DateRangeDto `json:"dateRange,omitempty"` + EntriesCount *int32 `json:"entriesCount,omitempty"` + HasUnSubmitted *bool `json:"hasUnSubmitted,omitempty"` + Status *string `json:"status,omitempty"` + SubmitterName *string `json:"submitterName,omitempty"` + Total *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"total,omitempty"` + UnsubmittedEntriesCount *int64 `json:"unsubmittedEntriesCount,omitempty"` +} + +// TimeEntryDto defines model for TimeEntryDto. +type TimeEntryDto struct { + Billable *bool `json:"billable,omitempty"` + Description *string `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + Locked *bool `json:"locked,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// TimeEntryDtoImpl defines model for TimeEntryDtoImpl. +type TimeEntryDtoImpl struct { + ApprovalStatus *TimeEntryDtoImplApprovalStatus `json:"approvalStatus,omitempty"` + Billable *bool `json:"billable,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + CurrentlyRunning *bool `json:"currentlyRunning,omitempty"` + CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"` + Description *string `json:"description,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + KioskId *string `json:"kioskId,omitempty"` + ProjectCurrency *string `json:"projectCurrency,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeEntryDtoImplApprovalStatus defines model for TimeEntryDtoImpl.ApprovalStatus. +type TimeEntryDtoImplApprovalStatus string + +// TimeEntryFullDto defines model for TimeEntryFullDto. +type TimeEntryFullDto struct { + ApprovalRequestId *string `json:"approvalRequestId,omitempty"` + ApprovalStatus *TimeEntryFullDtoApprovalStatus `json:"approvalStatus,omitempty"` + Billable *bool `json:"billable,omitempty"` + CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"` + Description *string `json:"description,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + Kiosk *EntityIdNameDto `json:"kiosk,omitempty"` + KioskId *string `json:"kioskId,omitempty"` + Project *ProjectDtoImpl `json:"project,omitempty"` + ProjectCurrency *string `json:"projectCurrency,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Tags *[]TagDto `json:"tags,omitempty"` + Task *TaskDtoImpl `json:"task,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + TotalBillable *int64 `json:"totalBillable,omitempty"` + TotalBillableDecimal *float64 `json:"totalBillableDecimal,omitempty"` + Type *string `json:"type,omitempty"` + User *UserDto `json:"user,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeEntryFullDtoApprovalStatus defines model for TimeEntryFullDto.ApprovalStatus. +type TimeEntryFullDtoApprovalStatus string + +// TimeEntryIdsRequest defines model for TimeEntryIdsRequest. +type TimeEntryIdsRequest struct { + TimeEntryIds *[]string `json:"timeEntryIds,omitempty"` +} + +// TimeEntryInfoDto defines model for TimeEntryInfoDto. +type TimeEntryInfoDto struct { + // ApprovalRequestId Represents approval identifier across the system. + ApprovalRequestId *string `json:"approvalRequestId,omitempty"` + + // Billable Indicates whether time entry is billable or not. + Billable *bool `json:"billable,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + + // CustomFieldValues Represents a list of custom field value objects. + CustomFieldValues *[]CustomFieldValueDto `json:"customFieldValues,omitempty"` + + // Description Represents a time entry description. + Description *string `json:"description,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + + // Id Represents time entry identifier across the system. + Id *string `json:"id,omitempty"` + + // IsLocked Indicates whether time entry is locked or not. + IsLocked *bool `json:"isLocked,omitempty"` + Project *ProjectInfoDto `json:"project,omitempty"` + + // Tags Represents a list of tag objects. + Tags *[]TagDto `json:"tags,omitempty"` + Task *TaskInfoDto `json:"task,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + + // Type Represents a time entry type enum. + Type *TimeEntryInfoDtoType `json:"type,omitempty"` +} + +// TimeEntryInfoDtoType Represents a time entry type enum. +type TimeEntryInfoDtoType string + +// TimeEntryPatchSplitRequest defines model for TimeEntryPatchSplitRequest. +type TimeEntryPatchSplitRequest struct { + Billable *bool `json:"billable,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + End *time.Time `json:"end,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + SplitTime *time.Time `json:"splitTime,omitempty"` + Start *time.Time `json:"start,omitempty"` + StartAsString *string `json:"startAsString,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// TimeEntryRecentlyUsedDto defines model for TimeEntryRecentlyUsedDto. +type TimeEntryRecentlyUsedDto struct { + BillableBasedOnCurrentTaskAndProject *bool `json:"billableBasedOnCurrentTaskAndProject,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientName *string `json:"clientName,omitempty"` + CustomFieldValues *[]CustomFieldValueDto `json:"customFieldValues,omitempty"` + Description *string `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + ProjectBillable *bool `json:"projectBillable,omitempty"` + ProjectColor *string `json:"projectColor,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + ProjectName *string `json:"projectName,omitempty"` + Tags *[]TagDto `json:"tags,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TaskName *string `json:"taskName,omitempty"` +} + +// TimeEntrySplitRequest defines model for TimeEntrySplitRequest. +type TimeEntrySplitRequest struct { + SplitTime *time.Time `json:"splitTime,omitempty"` +} + +// TimeEntrySummaryDto defines model for TimeEntrySummaryDto. +type TimeEntrySummaryDto struct { + Billable *bool `json:"billable,omitempty"` + ClientId *string `json:"clientId,omitempty"` + ClientName *string `json:"clientName,omitempty"` + CustomFields *[]CustomFieldValueFullDto `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + Project *ProjectSummaryDto `json:"project,omitempty"` + Tags *[]TagDto `json:"tags,omitempty"` + Task *TaskDto `json:"task,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + TotalBillable *int64 `json:"totalBillable,omitempty"` + TotalBillableDecimal *float64 `json:"totalBillableDecimal,omitempty"` + User *UserSummaryDto `json:"user,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeEntryUpdatedDto defines model for TimeEntryUpdatedDto. +type TimeEntryUpdatedDto struct { + ApprovalRequestWithdrawn *bool `json:"approvalRequestWithdrawn,omitempty"` + ApprovalStatus *TimeEntryUpdatedDtoApprovalStatus `json:"approvalStatus,omitempty"` + Billable *bool `json:"billable,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + CurrentlyRunning *bool `json:"currentlyRunning,omitempty"` + CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"` + Description *string `json:"description,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + KioskId *string `json:"kioskId,omitempty"` + ProjectCurrency *string `json:"projectCurrency,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeEntryUpdatedDtoApprovalStatus defines model for TimeEntryUpdatedDto.ApprovalStatus. +type TimeEntryUpdatedDtoApprovalStatus string + +// TimeEntryWithCustomFieldsDto defines model for TimeEntryWithCustomFieldsDto. +type TimeEntryWithCustomFieldsDto struct { + Billable *bool `json:"billable,omitempty"` + CustomFieldValues *[]CustomFieldValueDto `json:"customFieldValues,omitempty"` + Description *string `json:"description,omitempty"` + Id *string `json:"id,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeEntryWithUsernameDto defines model for TimeEntryWithUsernameDto. +type TimeEntryWithUsernameDto struct { + ApprovalStatus *TimeEntryWithUsernameDtoApprovalStatus `json:"approvalStatus,omitempty"` + Billable *bool `json:"billable,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + CurrentlyRunning *bool `json:"currentlyRunning,omitempty"` + CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"` + Description *string `json:"description,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + IsLocked *bool `json:"isLocked,omitempty"` + KioskId *string `json:"kioskId,omitempty"` + ProjectCurrency *string `json:"projectCurrency,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` + TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeEntryWithUsernameDtoApprovalStatus defines model for TimeEntryWithUsernameDto.ApprovalStatus. +type TimeEntryWithUsernameDtoApprovalStatus string + +// TimeEstimateDto defines model for TimeEstimateDto. +type TimeEstimateDto struct { + Active *bool `json:"active,omitempty"` + + // Estimate Represents project duration in milliseconds. + Estimate *string `json:"estimate,omitempty"` + IncludeNonBillable *bool `json:"includeNonBillable,omitempty"` + + // ResetOption Represents a reset option enum. + ResetOption *TimeEstimateDtoResetOption `json:"resetOption,omitempty"` + + // Type Represents an estimate type enum. + Type *TimeEstimateDtoType `json:"type,omitempty"` +} + +// TimeEstimateDtoResetOption Represents a reset option enum. +type TimeEstimateDtoResetOption string + +// TimeEstimateDtoType Represents an estimate type enum. +type TimeEstimateDtoType string + +// TimeEstimateRequest Represents project time estimate request object. +type TimeEstimateRequest struct { + // Active Flag whether to include only active or inactive estimates. + Active *bool `json:"active,omitempty"` + + // Estimate Represents a time duration in ISO-8601 format. + Estimate *string `json:"estimate,omitempty"` + + // IncludeNonBillable Flag whether to include non-billable expenses. + IncludeNonBillable *bool `json:"includeNonBillable,omitempty"` + + // ResetOption Represents a reset option enum. + ResetOption *TimeEstimateRequestResetOption `json:"resetOption,omitempty"` + + // Type Represents an estimate type enum. + Type *TimeEstimateRequestType `json:"type,omitempty"` +} + +// TimeEstimateRequestResetOption Represents a reset option enum. +type TimeEstimateRequestResetOption string + +// TimeEstimateRequestType Represents an estimate type enum. +type TimeEstimateRequestType string + +// TimeIntervalDto defines model for TimeIntervalDto. +type TimeIntervalDto struct { + // Duration Represents a time duration. + Duration *string `json:"duration,omitempty"` + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` +} + +// TimeOffDto defines model for TimeOffDto. +type TimeOffDto struct { + Active *bool `json:"active,omitempty"` + RegularUserCanSeeOtherUsersTimeOff *bool `json:"regularUserCanSeeOtherUsersTimeOff,omitempty"` + Type *bool `json:"type,omitempty"` +} + +// TimeOffPolicyHolidayForClients defines model for TimeOffPolicyHolidayForClients. +type TimeOffPolicyHolidayForClients struct { + ClientIds *[]string `json:"clientIds,omitempty"` + Holidays *[]HolidayProjection `json:"holidays,omitempty"` + Policies *[]PolicyProjection `json:"policies,omitempty"` + ProjectIds *[]string `json:"projectIds,omitempty"` + TaskIds *[]string `json:"taskIds,omitempty"` +} + +// TimeOffPolicyHolidayForProjects defines model for TimeOffPolicyHolidayForProjects. +type TimeOffPolicyHolidayForProjects struct { + Holidays *[]HolidayProjection `json:"holidays,omitempty"` + Policies *[]PolicyProjection `json:"policies,omitempty"` + ProjectIds *[]string `json:"projectIds,omitempty"` +} + +// TimeOffPolicyHolidayForTasks defines model for TimeOffPolicyHolidayForTasks. +type TimeOffPolicyHolidayForTasks struct { + Holidays *[]HolidayProjection `json:"holidays,omitempty"` + Policies *[]PolicyProjection `json:"policies,omitempty"` + TaskIds *[]string `json:"taskIds,omitempty"` +} + +// TimeOffRequestDto defines model for TimeOffRequestDto. +type TimeOffRequestDto struct { + BalanceDiff *float64 `json:"balanceDiff,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + Id *string `json:"id,omitempty"` + Note *string `json:"note,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + Status *TimeOffRequestStatus `json:"status,omitempty"` + TimeOffPeriod *TimeOffRequestPeriodDto `json:"timeOffPeriod,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeOffRequestFullDto defines model for TimeOffRequestFullDto. +type TimeOffRequestFullDto struct { + AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"` + Balance *float64 `json:"balance,omitempty"` + BalanceDiff *float64 `json:"balanceDiff,omitempty"` + BalanceValueAtRequest *float64 `json:"balanceValueAtRequest,omitempty"` + CanBeApproved *bool `json:"canBeApproved,omitempty"` + CanBeWithdrawn *bool `json:"canBeWithdrawn,omitempty"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + Id *string `json:"id,omitempty"` + LimitNegativeBalance *bool `json:"limitNegativeBalance,omitempty"` + NegativeBalance *float64 `json:"negativeBalance,omitempty"` + NegativeBalanceAmount *float64 `json:"negativeBalanceAmount,omitempty"` + NegativeBalanceUsed *float64 `json:"negativeBalanceUsed,omitempty"` + Note *string `json:"note,omitempty"` + PolicyColor *string `json:"policyColor,omitempty"` + PolicyId *string `json:"policyId,omitempty"` + PolicyName *string `json:"policyName,omitempty"` + RequesterUserId *string `json:"requesterUserId,omitempty"` + RequesterUserName *string `json:"requesterUserName,omitempty"` + Status *TimeOffRequestStatus `json:"status,omitempty"` + TimeOffPeriod *TimeOffRequestPeriodDto `json:"timeOffPeriod,omitempty"` + TimeUnit *string `json:"timeUnit,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + UserEmail *string `json:"userEmail,omitempty"` + UserId *string `json:"userId,omitempty"` + UserImageUrl *string `json:"userImageUrl,omitempty"` + UserName *string `json:"userName,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimeOffRequestPeriod defines model for TimeOffRequestPeriod. +type TimeOffRequestPeriod struct { + HalfDayHours *Period `json:"halfDayHours,omitempty"` + HalfDayPeriod *TimeOffRequestPeriodHalfDayPeriod `json:"halfDayPeriod,omitempty"` + IsHalfDay *bool `json:"isHalfDay,omitempty"` + Period *Period `json:"period,omitempty"` +} + +// TimeOffRequestPeriodHalfDayPeriod defines model for TimeOffRequestPeriod.HalfDayPeriod. +type TimeOffRequestPeriodHalfDayPeriod string + +// TimeOffRequestPeriodDto defines model for TimeOffRequestPeriodDto. +type TimeOffRequestPeriodDto struct { + HalfDayHours *Period `json:"halfDayHours,omitempty"` + HalfDayPeriod *string `json:"halfDayPeriod,omitempty"` + IsHalfDay *bool `json:"isHalfDay,omitempty"` + Period *Period `json:"period,omitempty"` +} + +// TimeOffRequestPeriodRequest defines model for TimeOffRequestPeriodRequest. +type TimeOffRequestPeriodRequest struct { + HalfDayHours *PeriodRequest `json:"halfDayHours,omitempty"` + HalfDayPeriod *string `json:"halfDayPeriod,omitempty"` + IsHalfDay *bool `json:"isHalfDay,omitempty"` + Period PeriodRequest `json:"period"` +} + +// TimeOffRequestStatus defines model for TimeOffRequestStatus. +type TimeOffRequestStatus struct { + ChangedAt *time.Time `json:"changedAt,omitempty"` + ChangedByUserId *string `json:"changedByUserId,omitempty"` + ChangedByUserName *string `json:"changedByUserName,omitempty"` + ChangedForUserName *string `json:"changedForUserName,omitempty"` + Note *string `json:"note,omitempty"` + StatusType *TimeOffRequestStatusStatusType `json:"statusType,omitempty"` +} + +// TimeOffRequestStatusStatusType defines model for TimeOffRequestStatus.StatusType. +type TimeOffRequestStatusStatusType string + +// TimeOffRequestsWithCountDto defines model for TimeOffRequestsWithCountDto. +type TimeOffRequestsWithCountDto struct { + Count *int32 `json:"count,omitempty"` + Requests *[]TimeOffRequestFullDto `json:"requests,omitempty"` +} + +// TimeRangeRequest defines model for TimeRangeRequest. +type TimeRangeRequest struct { + // IssueDateEnd Represents a date in yyyy-MM-dd format. This is the upper bound of the time range. + IssueDateEnd *string `json:"issueDateEnd,omitempty"` + + // IssueDateStart Represents a date in yyyy-MM-dd format. This is the lower bound of the time range. + IssueDateStart *string `json:"issueDateStart,omitempty"` +} + +// TimelineHolidayDto defines model for TimelineHolidayDto. +type TimelineHolidayDto struct { + Color *string `json:"color,omitempty"` + + // DatePeriod Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd + DatePeriod *DatePeriod `json:"datePeriod,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// TimelineTimeOffRequestBaseDto defines model for TimelineTimeOffRequestBaseDto. +type TimelineTimeOffRequestBaseDto struct { + BalanceDiff *float64 `json:"balanceDiff,omitempty"` + Id *string `json:"id,omitempty"` + Note *string `json:"note,omitempty"` + PolicyName *string `json:"policyName,omitempty"` + Status *TimeOffRequestStatus `json:"status,omitempty"` + TimeOffPeriod *TimeOffRequestPeriod `json:"timeOffPeriod,omitempty"` + TimeUnit *string `json:"timeUnit,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// TimelineUserDto defines model for TimelineUserDto. +type TimelineUserDto struct { + Holidays *[]TimelineHolidayDto `json:"holidays,omitempty"` + Requests *[]TimelineTimeOffRequestBaseDto `json:"requests,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + UserId *string `json:"userId,omitempty"` + UserImageUrl *string `json:"userImageUrl,omitempty"` + UserName *string `json:"userName,omitempty"` + WorkingDays *[]string `json:"workingDays,omitempty"` +} + +// TimelineUsersDto defines model for TimelineUsersDto. +type TimelineUsersDto struct { + Users *[]TimelineUserDto `json:"users,omitempty"` +} + +// TotalTimeItemDto defines model for TotalTimeItemDto. +type TotalTimeItemDto struct { + AmountWithCurrency *[]AmountWithCurrencyDto `json:"amountWithCurrency,omitempty"` + BillableDuration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"billableDuration,omitempty"` + ClientName *string `json:"clientName,omitempty"` + Color *string `json:"color,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + Earned *int64 `json:"earned,omitempty"` + EndDateTime *time.Time `json:"endDateTime,omitempty"` + Label *string `json:"label,omitempty"` + Percentage *string `json:"percentage,omitempty"` + ProjectName *string `json:"projectName,omitempty"` +} + +// TotalsPerDayDto defines model for TotalsPerDayDto. +type TotalsPerDayDto struct { + Date *time.Time `json:"date,omitempty"` + TotalHours *float64 `json:"totalHours,omitempty"` +} + +// TransferOwnerRequest defines model for TransferOwnerRequest. +type TransferOwnerRequest struct { + UserId *string `json:"userId,omitempty"` +} + +// TransferSeatDetailsDto defines model for TransferSeatDetailsDto. +type TransferSeatDetailsDto struct { + CustomPrice *bool `json:"customPrice,omitempty"` + PayedForLimited *int32 `json:"payedForLimited,omitempty"` + PayedForRegular *int32 `json:"payedForRegular,omitempty"` +} + +// TrialActivationDataDto defines model for TrialActivationDataDto. +type TrialActivationDataDto struct { + ActivateTrial *bool `json:"activateTrial,omitempty"` + FeaturesToActivate *[]TrialActivationDataDtoFeaturesToActivate `json:"featuresToActivate,omitempty"` +} + +// TrialActivationDataDtoFeaturesToActivate defines model for TrialActivationDataDto.FeaturesToActivate. +type TrialActivationDataDtoFeaturesToActivate string + +// UnsubmittedSummaryGroupDto defines model for UnsubmittedSummaryGroupDto. +type UnsubmittedSummaryGroupDto struct { + PeriodRange *string `json:"periodRange,omitempty"` + Users *[]UnsubmittedUserSummaryDto `json:"users,omitempty"` + // Deprecated: + WeekRange *string `json:"weekRange,omitempty"` +} + +// UnsubmittedUserSummaryDto defines model for UnsubmittedUserSummaryDto. +type UnsubmittedUserSummaryDto struct { + ApprovedTimeOff *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"approvedTimeOff,omitempty"` + CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"` + DateRange *DateRangeDto `json:"dateRange,omitempty"` + ExpenseTotal *int64 `json:"expenseTotal,omitempty"` + HasSubmittedTimesheet *bool `json:"hasSubmittedTimesheet,omitempty"` + Total *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"total,omitempty"` + UserId *string `json:"userId,omitempty"` + UserName *string `json:"userName,omitempty"` +} + +// UpdateApprovalRequest defines model for UpdateApprovalRequest. +type UpdateApprovalRequest struct { + // Note Additional notes for the approval request. + Note *string `json:"note,omitempty"` + + // State Specifies the approval state to set. + State UpdateApprovalRequestState `json:"state"` +} + +// UpdateApprovalRequestState Specifies the approval state to set. +type UpdateApprovalRequestState string + +// UpdateApprovalSettingsRequest defines model for UpdateApprovalSettingsRequest. +type UpdateApprovalSettingsRequest struct { + ApprovalEnabled *bool `json:"approvalEnabled,omitempty"` + ApprovalPeriod *UpdateApprovalSettingsRequestApprovalPeriod `json:"approvalPeriod,omitempty"` + ApprovalRoles *[]UpdateApprovalSettingsRequestApprovalRoles `json:"approvalRoles,omitempty"` +} + +// UpdateApprovalSettingsRequestApprovalPeriod defines model for UpdateApprovalSettingsRequest.ApprovalPeriod. +type UpdateApprovalSettingsRequestApprovalPeriod string + +// UpdateApprovalSettingsRequestApprovalRoles defines model for UpdateApprovalSettingsRequest.ApprovalRoles. +type UpdateApprovalSettingsRequestApprovalRoles string + +// UpdateAudiLogSettingsRequest defines model for UpdateAudiLogSettingsRequest. +type UpdateAudiLogSettingsRequest struct { + AuditEnabled bool `json:"auditEnabled"` + ClientAuditing bool `json:"clientAuditing"` + ExpensesAuditing bool `json:"expensesAuditing"` + ProjectAuditing bool `json:"projectAuditing"` + TagAuditing bool `json:"tagAuditing"` + TimeEntryAuditing bool `json:"timeEntryAuditing"` +} + +// UpdateAutomaticLockRequest defines model for UpdateAutomaticLockRequest. +type UpdateAutomaticLockRequest struct { + ChangeDay *string `json:"changeDay,omitempty"` + ChangeHour *int32 `json:"changeHour,omitempty"` + DayOfMonth *int32 `json:"dayOfMonth,omitempty"` + FirstDay *string `json:"firstDay,omitempty"` + OlderThanPeriod *string `json:"olderThanPeriod,omitempty"` + OlderThanValue *int32 `json:"olderThanValue,omitempty"` + TimeZone *string `json:"timeZone,omitempty"` + Type *string `json:"type,omitempty"` +} + +// UpdateClientRequest defines model for UpdateClientRequest. +type UpdateClientRequest struct { + Address *string `json:"address,omitempty"` + Archived *bool `json:"archived,omitempty"` + CurrencyId *string `json:"currencyId,omitempty"` + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` +} + +// UpdateCompactViewSettings defines model for UpdateCompactViewSettings. +type UpdateCompactViewSettings struct { + IsCompactViewOn bool `json:"isCompactViewOn"` +} + +// UpdateCurrencyCodeRequest defines model for UpdateCurrencyCodeRequest. +type UpdateCurrencyCodeRequest struct { + Code string `json:"code"` +} + +// UpdateCustomFieldRequest defines model for UpdateCustomFieldRequest. +type UpdateCustomFieldRequest struct { + // CustomFieldId Represents custom field identifier across the system. + CustomFieldId string `json:"customFieldId"` + + // SourceType Represents a custom field value source type. + SourceType *UpdateCustomFieldRequestSourceType `json:"sourceType,omitempty"` + + // Value Represents a custom field's value. + Value *map[string]interface{} `json:"value,omitempty"` +} + +// UpdateCustomFieldRequestSourceType Represents a custom field value source type. +type UpdateCustomFieldRequestSourceType string + +// UpdateDashboardSelection defines model for UpdateDashboardSelection. +type UpdateDashboardSelection struct { + DashboardSelection UpdateDashboardSelectionDashboardSelection `json:"dashboardSelection"` +} + +// UpdateDashboardSelectionDashboardSelection defines model for UpdateDashboardSelection.DashboardSelection. +type UpdateDashboardSelectionDashboardSelection string + +// UpdateDefaultWorkspaceCurrencyRequest defines model for UpdateDefaultWorkspaceCurrencyRequest. +type UpdateDefaultWorkspaceCurrencyRequest struct { + CurrencyId *string `json:"currencyId,omitempty"` +} + +// UpdateEntityCreationPermissionsRequest defines model for UpdateEntityCreationPermissionsRequest. +type UpdateEntityCreationPermissionsRequest struct { + WhoCanCreateProjectsAndClients *string `json:"whoCanCreateProjectsAndClients,omitempty"` + WhoCanCreateTags *string `json:"whoCanCreateTags,omitempty"` + WhoCanCreateTasks *string `json:"whoCanCreateTasks,omitempty"` +} + +// UpdateExpenseRequest defines model for UpdateExpenseRequest. +type UpdateExpenseRequest struct { + Amount float64 `json:"amount"` + Billable *bool `json:"billable,omitempty"` + CategoryId *string `json:"categoryId,omitempty"` + ChangeFields *[]UpdateExpenseRequestChangeFields `json:"changeFields,omitempty"` + Date *time.Time `json:"date,omitempty"` + File *openapi_types.File `json:"file,omitempty"` + Notes *string `json:"notes,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TaskId *string `json:"taskId,omitempty"` + UserId string `json:"userId"` +} + +// UpdateExpenseRequestChangeFields defines model for UpdateExpenseRequest.ChangeFields. +type UpdateExpenseRequestChangeFields string + +// UpdateFavoriteEntriesRequest defines model for UpdateFavoriteEntriesRequest. +type UpdateFavoriteEntriesRequest struct { + Billable *bool `json:"billable,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// UpdateInvoiceItemRequest defines model for UpdateInvoiceItemRequest. +type UpdateInvoiceItemRequest struct { + Description *string `json:"description,omitempty"` + ItemType *string `json:"itemType,omitempty"` + Quantity int32 `json:"quantity"` + UnitPrice int32 `json:"unitPrice"` +} + +// UpdateInvoiceItemTypeRequest defines model for UpdateInvoiceItemTypeRequest. +type UpdateInvoiceItemTypeRequest struct { + Name string `json:"name"` +} + +// UpdateInvoiceRequest defines model for UpdateInvoiceRequest. +type UpdateInvoiceRequest struct { + ClientId *string `json:"clientId,omitempty"` + CompanyId *string `json:"companyId,omitempty"` + Currency string `json:"currency"` + Discount *float64 `json:"discount,omitempty"` + DiscountPercent *float64 `json:"discountPercent,omitempty"` + DueDate *time.Time `json:"dueDate,omitempty"` + IssuedDate *time.Time `json:"issuedDate,omitempty"` + Note *string `json:"note,omitempty"` + Number string `json:"number"` + Subject *string `json:"subject,omitempty"` + Tax *float64 `json:"tax,omitempty"` + Tax2 *float64 `json:"tax2,omitempty"` + Tax2Percent *float64 `json:"tax2Percent,omitempty"` + TaxPercent *float64 `json:"taxPercent,omitempty"` + VisibleZeroFields *[]string `json:"visibleZeroFields,omitempty"` +} + +// UpdateInvoiceSettingsRequest defines model for UpdateInvoiceSettingsRequest. +type UpdateInvoiceSettingsRequest struct { + Defaults *InvoiceDefaultSettingsRequest `json:"defaults,omitempty"` + ExportFields *InvoiceExportFieldsRequest `json:"exportFields,omitempty"` + Labels LabelsCustomizationRequest `json:"labels"` +} + +// UpdateInvoicedStatusRequest defines model for UpdateInvoicedStatusRequest. +type UpdateInvoicedStatusRequest struct { + // Invoiced Indicates whether time entry is invoiced or not. + Invoiced bool `json:"invoiced"` + + // TimeEntries Represents a list of invoiced time entry ids + TimeEntries []string `json:"timeEntries"` +} + +// UpdateKioskRequest defines model for UpdateKioskRequest. +type UpdateKioskRequest struct { + DefaultBreakProjectId *string `json:"defaultBreakProjectId,omitempty"` + DefaultBreakTaskId *string `json:"defaultBreakTaskId,omitempty"` + DefaultEntities *DefaultKioskEntitiesRequest `json:"defaultEntities,omitempty"` + DefaultProjectId *string `json:"defaultProjectId,omitempty"` + DefaultTaskId *string `json:"defaultTaskId,omitempty"` + EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"` + Groups *ContainsUserGroupFilterRequest `json:"groups,omitempty"` + Name string `json:"name"` + Pin *PinSettingRequest `json:"pin,omitempty"` + SessionDuration *int32 `json:"sessionDuration,omitempty"` + Users *ContainsUsersFilterRequest `json:"users,omitempty"` +} + +// UpdateKioskStatusRequest defines model for UpdateKioskStatusRequest. +type UpdateKioskStatusRequest struct { + Status *UpdateKioskStatusRequestStatus `json:"status,omitempty"` +} + +// UpdateKioskStatusRequestStatus defines model for UpdateKioskStatusRequest.Status. +type UpdateKioskStatusRequestStatus string + +// UpdateLangRequest defines model for UpdateLangRequest. +type UpdateLangRequest struct { + Lang *string `json:"lang,omitempty"` +} + +// UpdateManyClientsRequest defines model for UpdateManyClientsRequest. +type UpdateManyClientsRequest struct { + ArchiveProjects *bool `json:"archiveProjects,omitempty"` + Archived bool `json:"archived"` + ClientIds []string `json:"clientIds"` + MarkTasksAsDone *bool `json:"markTasksAsDone,omitempty"` +} + +// UpdateManyTagsRequest defines model for UpdateManyTagsRequest. +type UpdateManyTagsRequest struct { + Archived bool `json:"archived"` + TagIds []string `json:"tagIds"` +} + +// UpdateNameAndProfilePictureRequest defines model for UpdateNameAndProfilePictureRequest. +type UpdateNameAndProfilePictureRequest struct { + Name *string `json:"name,omitempty"` + ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"` +} + +// UpdatePinCodeRequest defines model for UpdatePinCodeRequest. +type UpdatePinCodeRequest struct { + PinCode string `json:"pinCode"` + Since *string `json:"since,omitempty"` +} + +// UpdatePolicyRequest defines model for UpdatePolicyRequest. +type UpdatePolicyRequest struct { + AllowHalfDay bool `json:"allowHalfDay"` + AllowNegativeBalance bool `json:"allowNegativeBalance"` + Approve ApproveDto `json:"approve"` + Archived bool `json:"archived"` + AutomaticAccrual *AutomaticAccrualRequest `json:"automaticAccrual,omitempty"` + AutomaticTimeEntryCreation *AutomaticTimeEntryCreationRequest `json:"automaticTimeEntryCreation,omitempty"` + Color *string `json:"color,omitempty"` + EveryoneIncludingNew bool `json:"everyoneIncludingNew"` + Name string `json:"name"` + NegativeBalance *NegativeBalanceRequest `json:"negativeBalance,omitempty"` + UserGroups ContainsFilterRequest `json:"userGroups"` + Users ContainsFilterRequest `json:"users"` +} + +// UpdateProjectRequest defines model for UpdateProjectRequest. +type UpdateProjectRequest struct { + Archived *bool `json:"archived,omitempty"` + Billable *bool `json:"billable,omitempty"` + ClientId *string `json:"clientId,omitempty"` + Color *string `json:"color,omitempty"` + CostRate *CostRateRequest `json:"costRate,omitempty"` + HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"` + IsPublic *bool `json:"isPublic,omitempty"` + Name *string `json:"name,omitempty"` + Note *string `json:"note,omitempty"` +} + +// UpdateProjectsRequest defines model for UpdateProjectsRequest. +type UpdateProjectsRequest struct { + ProjectUpdateSyncId *string `json:"projectUpdateSyncId,omitempty"` + UpdateSyncId *string `json:"updateSyncId,omitempty"` +} + +// UpdatePumbleIntegrationSettingsRequest defines model for UpdatePumbleIntegrationSettingsRequest. +type UpdatePumbleIntegrationSettingsRequest struct { + ShowChatWidget *bool `json:"showChatWidget,omitempty"` +} + +// UpdateQuantityRequest defines model for UpdateQuantityRequest. +type UpdateQuantityRequest struct { + ItemType *string `json:"itemType,omitempty"` + Quantity int32 `json:"quantity"` + SeatType UpdateQuantityRequestSeatType `json:"seatType"` +} + +// UpdateQuantityRequestSeatType defines model for UpdateQuantityRequest.SeatType. +type UpdateQuantityRequestSeatType string + +// UpdateRoleRequest defines model for UpdateRoleRequest. +type UpdateRoleRequest struct { + ContainsRoleObjectsFilter *ContainsUsersFilterRequest `json:"containsRoleObjectsFilter,omitempty"` + Entity *ContainsUsersFilterRequest `json:"entity,omitempty"` + Role *UpdateRoleRequestRole `json:"role,omitempty"` +} + +// UpdateRoleRequestRole defines model for UpdateRoleRequest.Role. +type UpdateRoleRequestRole string + +// UpdateRoundRequest defines model for UpdateRoundRequest. +type UpdateRoundRequest struct { + Minutes *string `json:"minutes,omitempty"` + Round *string `json:"round,omitempty"` +} + +// UpdateSchedulingSettingsRequest defines model for UpdateSchedulingSettingsRequest. +type UpdateSchedulingSettingsRequest struct { + CanSeeBillableAndCostAmount *bool `json:"canSeeBillableAndCostAmount,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + EveryoneCanSeeAllAssignments *bool `json:"everyoneCanSeeAllAssignments,omitempty"` + WhoCanCreateAssignments *string `json:"whoCanCreateAssignments,omitempty"` +} + +// UpdateSidebarRequest defines model for UpdateSidebarRequest. +type UpdateSidebarRequest struct { + Sidebar *[]SidebarItemRequest `json:"sidebar,omitempty"` +} + +// UpdateSummaryReportSettingsRequest defines model for UpdateSummaryReportSettingsRequest. +type UpdateSummaryReportSettingsRequest struct { + Group string `json:"group"` + Subgroup string `json:"subgroup"` +} + +// UpdateTaskRequest defines model for UpdateTaskRequest. +type UpdateTaskRequest struct { + AssigneeId *string `json:"assigneeId,omitempty"` + AssigneeIds *[]string `json:"assigneeIds,omitempty"` + Billable *bool `json:"billable,omitempty"` + BudgetEstimate *int64 `json:"budgetEstimate,omitempty"` + Estimate *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Units *[]struct { + DateBased *bool `json:"dateBased,omitempty"` + Duration *struct { + Nano *int32 `json:"nano,omitempty"` + Negative *bool `json:"negative,omitempty"` + Positive *bool `json:"positive,omitempty"` + Seconds *int64 `json:"seconds,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"duration,omitempty"` + DurationEstimated *bool `json:"durationEstimated,omitempty"` + TimeBased *bool `json:"timeBased,omitempty"` + } `json:"units,omitempty"` + Zero *bool `json:"zero,omitempty"` + } `json:"estimate,omitempty"` + Name string `json:"name"` + Status *string `json:"status,omitempty"` + UserGroupIds *[]string `json:"userGroupIds,omitempty"` +} + +// UpdateTimeEntryBillableRequest defines model for UpdateTimeEntryBillableRequest. +type UpdateTimeEntryBillableRequest struct { + Billable bool `json:"billable"` +} + +// UpdateTimeEntryDescriptionRequest defines model for UpdateTimeEntryDescriptionRequest. +type UpdateTimeEntryDescriptionRequest struct { + Description *string `json:"description,omitempty"` +} + +// UpdateTimeEntryEndRequest defines model for UpdateTimeEntryEndRequest. +type UpdateTimeEntryEndRequest struct { + End *time.Time `json:"end,omitempty"` +} + +// UpdateTimeEntryProjectRequest defines model for UpdateTimeEntryProjectRequest. +type UpdateTimeEntryProjectRequest struct { + ProjectId *ProjectId `json:"projectId,omitempty"` +} + +// UpdateTimeEntryRequest defines model for UpdateTimeEntryRequest. +type UpdateTimeEntryRequest struct { + Billable *bool `json:"billable,omitempty"` + CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"` + Description *string `json:"description,omitempty"` + End *time.Time `json:"end,omitempty"` + ProjectId *string `json:"projectId,omitempty"` + Start *time.Time `json:"start,omitempty"` + StartAsString *string `json:"startAsString,omitempty"` + TagIds *[]string `json:"tagIds,omitempty"` + TaskId *string `json:"taskId,omitempty"` +} + +// UpdateTimeEntryStartRequest defines model for UpdateTimeEntryStartRequest. +type UpdateTimeEntryStartRequest struct { + Start *time.Time `json:"start,omitempty"` +} + +// UpdateTimeEntryTagsRequest defines model for UpdateTimeEntryTagsRequest. +type UpdateTimeEntryTagsRequest struct { + TagIds *[]string `json:"tagIds,omitempty"` +} + +// UpdateTimeEntryTaskRequest defines model for UpdateTimeEntryTaskRequest. +type UpdateTimeEntryTaskRequest struct { + TaskId *TaskId `json:"taskId,omitempty"` +} + +// UpdateTimeEntryUserRequest defines model for UpdateTimeEntryUserRequest. +type UpdateTimeEntryUserRequest struct { + UserId string `json:"userId"` +} + +// UpdateTimeOffRequest defines model for UpdateTimeOffRequest. +type UpdateTimeOffRequest struct { + Active *bool `json:"active,omitempty"` + RegularUserCanSeeOtherUsersTimeOff *bool `json:"regularUserCanSeeOtherUsersTimeOff,omitempty"` + Type *bool `json:"type,omitempty"` +} + +// UpdateTimeTrackingSettingsRequest defines model for UpdateTimeTrackingSettingsRequest. +type UpdateTimeTrackingSettingsRequest struct { + TimeTrackingManual bool `json:"timeTrackingManual"` +} + +// UpdateTimezoneRequest defines model for UpdateTimezoneRequest. +type UpdateTimezoneRequest struct { + Timezone string `json:"timezone"` +} + +// UpdateUserGroupNameRequest defines model for UpdateUserGroupNameRequest. +type UpdateUserGroupNameRequest struct { + Name *string `json:"name,omitempty"` +} + +// UpdateUserRolesRequest defines model for UpdateUserRolesRequest. +type UpdateUserRolesRequest struct { + Roles *[]UpdateRoleRequest `json:"roles,omitempty"` + UpdateRoleRequests *[]UpdateRoleRequest `json:"updateRoleRequests,omitempty"` +} + +// UpdateUserSettingsRequest defines model for UpdateUserSettingsRequest. +type UpdateUserSettingsRequest struct { + Name *string `json:"name,omitempty"` + ProfilePicture *string `json:"profilePicture,omitempty"` + ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"` + Settings UserSettingsDto `json:"settings"` +} + +// UpdateUsersFromUserGroupsRequest defines model for UpdateUsersFromUserGroupsRequest. +type UpdateUsersFromUserGroupsRequest struct { + UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"` + UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"` + UserGroupId *string `json:"userGroupId,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// UpdateWorkspaceRequest defines model for UpdateWorkspaceRequest. +type UpdateWorkspaceRequest struct { + ImageUrl *string `json:"imageUrl,omitempty"` + Name string `json:"name"` + WorkspaceSettings *UpdateWorkspaceSettingsRequest `json:"workspaceSettings,omitempty"` +} + +// UpdateWorkspaceSettingsRequest defines model for UpdateWorkspaceSettingsRequest. +type UpdateWorkspaceSettingsRequest struct { + ActiveBillableHours *bool `json:"activeBillableHours,omitempty"` + AdminOnlyPages *[]UpdateWorkspaceSettingsRequestAdminOnlyPages `json:"adminOnlyPages,omitempty"` + ApprovalSettings *UpdateApprovalSettingsRequest `json:"approvalSettings,omitempty"` + AuditLogSettings *UpdateAudiLogSettingsRequest `json:"auditLogSettings,omitempty"` + AutomaticLock *UpdateAutomaticLockRequest `json:"automaticLock,omitempty"` + BreakSettings *BreakSettingsRequest `json:"breakSettings,omitempty"` + CanManagerEditUsersTime *bool `json:"canManagerEditUsersTime,omitempty"` + CanManagerLaunchKiosk *bool `json:"canManagerLaunchKiosk,omitempty"` + CanSeeTimeSheet *bool `json:"canSeeTimeSheet,omitempty"` + CanSeeTracker *bool `json:"canSeeTracker,omitempty"` + CompanyAddress *string `json:"companyAddress,omitempty"` + CostRateActive *bool `json:"costRateActive,omitempty"` + CurrencyFormat *UpdateWorkspaceSettingsRequestCurrencyFormat `json:"currencyFormat,omitempty"` + // Deprecated: + DecimalFormat *bool `json:"decimalFormat,omitempty"` + DefaultBillableProjects *bool `json:"defaultBillableProjects,omitempty"` + DurationFormat *UpdateWorkspaceSettingsRequestDurationFormat `json:"durationFormat,omitempty"` + EntityCreationPermissions *UpdateEntityCreationPermissionsRequest `json:"entityCreationPermissions,omitempty"` + ExpensesEnabled *bool `json:"expensesEnabled,omitempty"` + FavoriteEntriesEnabled *bool `json:"favoriteEntriesEnabled,omitempty"` + ForceDescription *bool `json:"forceDescription,omitempty"` + ForceProjects *bool `json:"forceProjects,omitempty"` + ForceTags *bool `json:"forceTags,omitempty"` + ForceTasks *bool `json:"forceTasks,omitempty"` + HighResolutionScreenshots *bool `json:"highResolutionScreenshots,omitempty"` + InvoicingEnabled *bool `json:"invoicingEnabled,omitempty"` + IsCostRateActive *bool `json:"isCostRateActive,omitempty"` + IsProjectPublicByDefault *bool `json:"isProjectPublicByDefault,omitempty"` + KioskAutologinEnabled *bool `json:"kioskAutologinEnabled,omitempty"` + KioskEnabled *bool `json:"kioskEnabled,omitempty"` + KioskProjectsAndTasksEnabled *bool `json:"kioskProjectsAndTasksEnabled,omitempty"` + LocationsEnabled *bool `json:"locationsEnabled,omitempty"` + LockTimeEntries *string `json:"lockTimeEntries,omitempty"` + LockTimeZone *string `json:"lockTimeZone,omitempty"` + LockedTimeEntries *string `json:"lockedTimeEntries,omitempty"` + MultiFactorEnabled *bool `json:"multiFactorEnabled,omitempty"` + NumberFormat *UpdateWorkspaceSettingsRequestNumberFormat `json:"numberFormat,omitempty"` + OnlyAdminsCanChangeBillableStatus *bool `json:"onlyAdminsCanChangeBillableStatus,omitempty"` + OnlyAdminsCreateProject *bool `json:"onlyAdminsCreateProject,omitempty"` + OnlyAdminsCreateTag *bool `json:"onlyAdminsCreateTag,omitempty"` + OnlyAdminsCreateTask *bool `json:"onlyAdminsCreateTask,omitempty"` + OnlyAdminsSeeAllTimeEntries *bool `json:"onlyAdminsSeeAllTimeEntries,omitempty"` + OnlyAdminsSeeBillableRates *bool `json:"onlyAdminsSeeBillableRates,omitempty"` + OnlyAdminsSeeDashboard *bool `json:"onlyAdminsSeeDashboard,omitempty"` + OnlyAdminsSeeProjectStatus *bool `json:"onlyAdminsSeeProjectStatus,omitempty"` + OnlyAdminsSeePublicProjectsEntries *bool `json:"onlyAdminsSeePublicProjectsEntries,omitempty"` + ProjectFavorite *bool `json:"projectFavorite,omitempty"` + ProjectFavorites *bool `json:"projectFavorites,omitempty"` + ProjectGroupingLabel string `json:"projectGroupingLabel"` + ProjectPickerSpecialFilter *bool `json:"projectPickerSpecialFilter,omitempty"` + ProjectPublicByDefault *bool `json:"projectPublicByDefault,omitempty"` + PumbleIntegrationSettings *UpdatePumbleIntegrationSettingsRequest `json:"pumbleIntegrationSettings,omitempty"` + PumbleIntegrationSettingsRequest *UpdatePumbleIntegrationSettingsRequest `json:"pumbleIntegrationSettingsRequest,omitempty"` + Round *UpdateRoundRequest `json:"round,omitempty"` + SchedulingEnabled *bool `json:"schedulingEnabled,omitempty"` + SchedulingSettings *UpdateSchedulingSettingsRequest `json:"schedulingSettings,omitempty"` + ScreenshotsEnabled *bool `json:"screenshotsEnabled,omitempty"` + TaskBillableEnabled *bool `json:"taskBillableEnabled,omitempty"` + TaskRateEnabled *bool `json:"taskRateEnabled,omitempty"` + TimeApprovalEnabled *bool `json:"timeApprovalEnabled,omitempty"` + TimeOff *UpdateTimeOffRequest `json:"timeOff,omitempty"` + TimeRoundingInReports *bool `json:"timeRoundingInReports,omitempty"` + TimeTrackingMode *UpdateWorkspaceSettingsRequestTimeTrackingMode `json:"timeTrackingMode,omitempty"` + TimesheetOn *bool `json:"timesheetOn,omitempty"` + TrackTimeDownToSecond *bool `json:"trackTimeDownToSecond,omitempty"` + TrackerOn *bool `json:"trackerOn,omitempty"` + WeekStart *string `json:"weekStart,omitempty"` + WorkingDays *[]string `json:"workingDays,omitempty"` +} + +// UpdateWorkspaceSettingsRequestAdminOnlyPages defines model for UpdateWorkspaceSettingsRequest.AdminOnlyPages. +type UpdateWorkspaceSettingsRequestAdminOnlyPages string + +// UpdateWorkspaceSettingsRequestCurrencyFormat defines model for UpdateWorkspaceSettingsRequest.CurrencyFormat. +type UpdateWorkspaceSettingsRequestCurrencyFormat string + +// UpdateWorkspaceSettingsRequestDurationFormat defines model for UpdateWorkspaceSettingsRequest.DurationFormat. +type UpdateWorkspaceSettingsRequestDurationFormat string + +// UpdateWorkspaceSettingsRequestNumberFormat defines model for UpdateWorkspaceSettingsRequest.NumberFormat. +type UpdateWorkspaceSettingsRequestNumberFormat string + +// UpdateWorkspaceSettingsRequestTimeTrackingMode defines model for UpdateWorkspaceSettingsRequest.TimeTrackingMode. +type UpdateWorkspaceSettingsRequestTimeTrackingMode string + +// UpgradePreCheckDto defines model for UpgradePreCheckDto. +type UpgradePreCheckDto struct { + CanUpgrade *bool `json:"canUpgrade,omitempty"` + WorkspaceForRedirect *string `json:"workspaceForRedirect,omitempty"` +} + +// UpgradePriceDto defines model for UpgradePriceDto. +type UpgradePriceDto struct { + AppliedBalance *float64 `json:"appliedBalance,omitempty"` + Currency *string `json:"currency,omitempty"` + MinLimitedQty *int32 `json:"minLimitedQty,omitempty"` + MinRegularQty *int32 `json:"minRegularQty,omitempty"` + Price *float64 `json:"price,omitempty"` + Subtotal *float64 `json:"subtotal,omitempty"` + Taxes *map[string]float64 `json:"taxes,omitempty"` + Total *float64 `json:"total,omitempty"` +} + +// UploadFileResponseV1 defines model for UploadFileResponseV1. +type UploadFileResponseV1 struct { + // Name File name of the uploaded image + Name *string `json:"name,omitempty"` + + // Url The URL of the uploaded image in the server + Url *string `json:"url,omitempty"` +} + +// UpsertUserCustomFieldRequest defines model for UpsertUserCustomFieldRequest. +type UpsertUserCustomFieldRequest struct { + // CustomFieldId Represents custom field identifier across the system. + CustomFieldId string `json:"customFieldId"` + + // Value Represents custom field value. + Value *map[string]interface{} `json:"value,omitempty"` +} + +// Url defines model for Url. +type Url = map[string]interface{} + +// UserAdminDto defines model for UserAdminDto. +type UserAdminDto struct { + AccessEnabled *bool `json:"accessEnabled,omitempty"` + ApiKey *ApiKeyDto `json:"apiKey,omitempty"` + CountActiveWsMemberships *int64 `json:"countActiveWsMemberships,omitempty"` + CountInactiveWsMemberships *int64 `json:"countInactiveWsMemberships,omitempty"` + CountInvitedWsMemberships *int64 `json:"countInvitedWsMemberships,omitempty"` + CountOfWorkspaces *int64 `json:"countOfWorkspaces,omitempty"` + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Status *UserAdminDtoStatus `json:"status,omitempty"` +} + +// UserAdminDtoStatus defines model for UserAdminDto.Status. +type UserAdminDtoStatus string + +// UserAssignmentsRequest defines model for UserAssignmentsRequest. +type UserAssignmentsRequest struct { + End *time.Time `json:"end,omitempty"` + Start *time.Time `json:"start,omitempty"` + StatusFilter *UserAssignmentsRequestStatusFilter `json:"statusFilter,omitempty"` +} + +// UserAssignmentsRequestStatusFilter defines model for UserAssignmentsRequest.StatusFilter. +type UserAssignmentsRequestStatusFilter string + +// UserAttendanceReportFilterRequest defines model for UserAttendanceReportFilterRequest. +type UserAttendanceReportFilterRequest struct { + CustomFields *[]CustomFieldFilter `json:"customFields,omitempty"` + IncludeUsers *bool `json:"includeUsers,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + SearchValue *string `json:"searchValue,omitempty"` + SortColumn *string `json:"sortColumn,omitempty"` + SortOrder *string `json:"sortOrder,omitempty"` + Statuses *[]string `json:"statuses,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + UserStatuses *[]string `json:"userStatuses,omitempty"` +} + +// UserCapacityDto defines model for UserCapacityDto. +type UserCapacityDto struct { + Capacity *int64 `json:"capacity,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// UserCustomFieldPutRequest defines model for UserCustomFieldPutRequest. +type UserCustomFieldPutRequest struct { + UserCustomFields *[]UpsertUserCustomFieldRequest `json:"userCustomFields,omitempty"` +} + +// UserCustomFieldValueDto defines model for UserCustomFieldValueDto. +type UserCustomFieldValueDto struct { + CustomFieldId *string `json:"customFieldId,omitempty"` + SourceType *string `json:"sourceType,omitempty"` + UserId *string `json:"userId,omitempty"` + Value *map[string]interface{} `json:"value,omitempty"` +} + +// UserCustomFieldValueFullDto defines model for UserCustomFieldValueFullDto. +type UserCustomFieldValueFullDto struct { + CustomField *CustomFieldDto `json:"customField,omitempty"` + CustomFieldDto *CustomFieldDto `json:"customFieldDto,omitempty"` + CustomFieldId *string `json:"customFieldId,omitempty"` + Name *string `json:"name,omitempty"` + SourceType *string `json:"sourceType,omitempty"` + Type *string `json:"type,omitempty"` + UserId *string `json:"userId,omitempty"` + Value *map[string]interface{} `json:"value,omitempty"` +} + +// UserDeleteRequest defines model for UserDeleteRequest. +type UserDeleteRequest struct { + EmailForm *string `json:"emailForm,omitempty"` + Message *string `json:"message,omitempty"` +} + +// UserDto defines model for UserDto. +type UserDto struct { + ActiveWorkspace *string `json:"activeWorkspace,omitempty"` + DefaultWorkspace *string `json:"defaultWorkspace,omitempty"` + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + ProfilePicture *string `json:"profilePicture,omitempty"` + Settings *UserSettingsDto `json:"settings,omitempty"` + Status *UserDtoStatus `json:"status,omitempty"` +} + +// UserDtoStatus defines model for UserDto.Status. +type UserDtoStatus string + +// UserEmailsRequest defines model for UserEmailsRequest. +type UserEmailsRequest struct { + Emails *[]string `json:"emails,omitempty"` +} + +// UserGroupAttendanceFilterRequest defines model for UserGroupAttendanceFilterRequest. +type UserGroupAttendanceFilterRequest struct { + ExcludedIds *[]string `json:"excludedIds,omitempty"` + ForceFilter *bool `json:"forceFilter,omitempty"` + IncludeUsers *bool `json:"includeUsers,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + SearchValue *string `json:"searchValue,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` +} + +// UserGroupDto defines model for UserGroupDto. +type UserGroupDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + UserIds *[]string `json:"userIds,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// UserGroupInfoDto defines model for UserGroupInfoDto. +type UserGroupInfoDto struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// UserGroupReportFilterRequest defines model for UserGroupReportFilterRequest. +type UserGroupReportFilterRequest struct { + ExcludeIds *[]string `json:"excludeIds,omitempty"` + ForApproval *bool `json:"forApproval,omitempty"` + ForceFilter *bool `json:"forceFilter,omitempty"` + IgnoreFilter *bool `json:"ignoreFilter,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + SearchValue *string `json:"searchValue,omitempty"` +} + +// UserInfoWithMembershipStatusDto defines model for UserInfoWithMembershipStatusDto. +type UserInfoWithMembershipStatusDto struct { + Email *string `json:"email,omitempty"` + MembershipStatus *UserInfoWithMembershipStatusDtoMembershipStatus `json:"membershipStatus,omitempty"` + Name *string `json:"name,omitempty"` + UserId *string `json:"userId,omitempty"` +} + +// UserInfoWithMembershipStatusDtoMembershipStatus defines model for UserInfoWithMembershipStatusDto.MembershipStatus. +type UserInfoWithMembershipStatusDtoMembershipStatus string + +// UserInvitationDto defines model for UserInvitationDto. +type UserInvitationDto struct { + CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"` + CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"` + Creation *time.Time `json:"creation,omitempty"` + InvitationCode *string `json:"invitationCode,omitempty"` + InvitationId *string `json:"invitationId,omitempty"` + InvitedBy *string `json:"invitedBy,omitempty"` + Lang *string `json:"lang,omitempty"` + NotificationId *string `json:"notificationId,omitempty"` + UserId *string `json:"userId,omitempty"` + WorkspaceDetail *WorkspaceDetailDto `json:"workspaceDetail,omitempty"` +} + +// UserListAndCountDto defines model for UserListAndCountDto. +type UserListAndCountDto struct { + Count *int64 `json:"count,omitempty"` + Users *[]UserDto `json:"users,omitempty"` +} + +// UserMembershipAndInviteDto defines model for UserMembershipAndInviteDto. +type UserMembershipAndInviteDto struct { + CakeOrganizations *[]CakeOrganization `json:"cakeOrganizations,omitempty"` + PendingInvitations *[]UserInvitationDto `json:"pendingInvitations,omitempty"` + Regions *[]RegionDto `json:"regions,omitempty"` + UserInfo *CakeUserInfo `json:"userInfo,omitempty"` + WorkspaceDetails *[]WorkspaceUserMembershipDto `json:"workspaceDetails,omitempty"` +} + +// UserNotificationMarkAsReadManyRequest defines model for UserNotificationMarkAsReadManyRequest. +type UserNotificationMarkAsReadManyRequest struct { + Notifications *[]string `json:"notifications,omitempty"` +} + +// UserNotificationMarkAsReadRequest defines model for UserNotificationMarkAsReadRequest. +type UserNotificationMarkAsReadRequest struct { + NotificationId string `json:"notificationId"` +} + +// UserReportFilterRequest defines model for UserReportFilterRequest. +type UserReportFilterRequest struct { + CustomFields *[]CustomFieldFilter `json:"customFields,omitempty"` + ExcludeIds *[]string `json:"excludeIds,omitempty"` + ForApproval *bool `json:"forApproval,omitempty"` + ForceFilter *bool `json:"forceFilter,omitempty"` + IgnoreFilter *bool `json:"ignoreFilter,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + ReportType *string `json:"reportType,omitempty"` + SearchValue *string `json:"searchValue,omitempty"` + SortColumn *string `json:"sortColumn,omitempty"` + SortOrder *string `json:"sortOrder,omitempty"` + Statuses *[]string `json:"statuses,omitempty"` + UserStatuses *[]string `json:"userStatuses,omitempty"` +} + +// UserRolesInfoDto defines model for UserRolesInfoDto. +type UserRolesInfoDto struct { + Userroles *[]RoleInfoDto `json:"user-roles,omitempty"` + Userroles1 *[]RoleInfoDto `json:"userRoles,omitempty"` +} + +// UserSettingsDto defines model for UserSettingsDto. +type UserSettingsDto struct { + Alerts *bool `json:"alerts,omitempty"` + Approval *bool `json:"approval,omitempty"` + CollapseAllProjectLists *bool `json:"collapseAllProjectLists,omitempty"` + DarkTheme *bool `json:"darkTheme,omitempty"` + DashboardPinToTop *bool `json:"dashboardPinToTop,omitempty"` + DashboardSelection *UserSettingsDtoDashboardSelection `json:"dashboardSelection,omitempty"` + DashboardViewType *UserSettingsDtoDashboardViewType `json:"dashboardViewType,omitempty"` + DateFormat string `json:"dateFormat"` + GroupSimilarEntriesDisabled *bool `json:"groupSimilarEntriesDisabled,omitempty"` + IsCompactViewOn *bool `json:"isCompactViewOn,omitempty"` + Lang *string `json:"lang,omitempty"` + LongRunning *bool `json:"longRunning,omitempty"` + MultiFactorEnabled *bool `json:"multiFactorEnabled,omitempty"` + MyStartOfDay *string `json:"myStartOfDay,omitempty"` + Onboarding *bool `json:"onboarding,omitempty"` + ProjectListCollapse *int32 `json:"projectListCollapse,omitempty"` + ProjectPickerSpecialFilter *bool `json:"projectPickerSpecialFilter,omitempty"` + Pto *bool `json:"pto,omitempty"` + Reminders *bool `json:"reminders,omitempty"` + ScheduledReports *bool `json:"scheduledReports,omitempty"` + Scheduling *bool `json:"scheduling,omitempty"` + SendNewsletter *bool `json:"sendNewsletter,omitempty"` + ShowOnlyWorkingDays *bool `json:"showOnlyWorkingDays,omitempty"` + SummaryReportSettings *SummaryReportSettingsDto `json:"summaryReportSettings,omitempty"` + Theme *UserSettingsDtoTheme `json:"theme,omitempty"` + TimeFormat string `json:"timeFormat"` + TimeTrackingManual *bool `json:"timeTrackingManual,omitempty"` + TimeZone string `json:"timeZone"` + WeekStart *UserSettingsDtoWeekStart `json:"weekStart,omitempty"` + WeeklyUpdates *bool `json:"weeklyUpdates,omitempty"` +} + +// UserSettingsDtoDashboardSelection defines model for UserSettingsDto.DashboardSelection. +type UserSettingsDtoDashboardSelection string + +// UserSettingsDtoDashboardViewType defines model for UserSettingsDto.DashboardViewType. +type UserSettingsDtoDashboardViewType string + +// UserSettingsDtoTheme defines model for UserSettingsDto.Theme. +type UserSettingsDtoTheme string + +// UserSettingsDtoWeekStart defines model for UserSettingsDto.WeekStart. +type UserSettingsDtoWeekStart string + +// UserSummaryDto defines model for UserSummaryDto. +type UserSummaryDto struct { + Email *string `json:"email,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// UsersAndCountDto defines model for UsersAndCountDto. +type UsersAndCountDto struct { + Count *int64 `json:"count,omitempty"` + Users *[]UserAdminDto `json:"users,omitempty"` +} + +// UsersDto defines model for UsersDto. +type UsersDto struct { + Users *[]UserAdminDto `json:"users,omitempty"` +} + +// UsersExistRequest defines model for UsersExistRequest. +type UsersExistRequest struct { + IncludeInvitations *bool `json:"includeInvitations,omitempty"` + UserEmails []string `json:"userEmails"` + UserIds *[]string `json:"userIds,omitempty"` +} + +// UsersIdsRequest defines model for UsersIdsRequest. +type UsersIdsRequest struct { + ExcludeIds *[]string `json:"excludeIds,omitempty"` + Ids *[]string `json:"ids,omitempty"` +} + +// UsersNameAndProfilePictureDto defines model for UsersNameAndProfilePictureDto. +type UsersNameAndProfilePictureDto struct { + Name *string `json:"name,omitempty"` + ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"` +} + +// WalkthroughCreationRequest defines model for WalkthroughCreationRequest. +type WalkthroughCreationRequest struct { + Walkthrough *string `json:"walkthrough,omitempty"` +} + +// WalkthroughDto defines model for WalkthroughDto. +type WalkthroughDto struct { + Unfinished *[]WalkthroughDtoUnfinished `json:"unfinished,omitempty"` +} + +// WalkthroughDtoUnfinished defines model for WalkthroughDto.Unfinished. +type WalkthroughDtoUnfinished string + +// WebhookDto defines model for WebhookDto. +type WebhookDto struct { + AuthToken *string `json:"authToken,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + TriggerSource *[]string `json:"triggerSource,omitempty"` + TriggerSourceType *WebhookDtoTriggerSourceType `json:"triggerSourceType,omitempty"` + Url *string `json:"url,omitempty"` + UserId *string `json:"userId,omitempty"` + WebhookEvent *WebhookDtoWebhookEvent `json:"webhookEvent,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// WebhookDtoTriggerSourceType defines model for WebhookDto.TriggerSourceType. +type WebhookDtoTriggerSourceType string + +// WebhookDtoWebhookEvent defines model for WebhookDto.WebhookEvent. +type WebhookDtoWebhookEvent string + +// WebhookLogDto defines model for WebhookLogDto. +type WebhookLogDto struct { + Id *string `json:"id,omitempty"` + RequestBody *string `json:"requestBody,omitempty"` + RespondedAt *string `json:"respondedAt,omitempty"` + ResponseBody *string `json:"responseBody,omitempty"` + StatusCode *int32 `json:"statusCode,omitempty"` + WebhookId *string `json:"webhookId,omitempty"` +} + +// WebhookRequest defines model for WebhookRequest. +type WebhookRequest struct { + Name *string `json:"name,omitempty"` + TriggerSource []string `json:"triggerSource"` + TriggerSourceType *WebhookRequestTriggerSourceType `json:"triggerSourceType,omitempty"` + Url string `json:"url"` + WebhookEvent *WebhookRequestWebhookEvent `json:"webhookEvent,omitempty"` +} + +// WebhookRequestTriggerSourceType defines model for WebhookRequest.TriggerSourceType. +type WebhookRequestTriggerSourceType string + +// WebhookRequestWebhookEvent defines model for WebhookRequest.WebhookEvent. +type WebhookRequestWebhookEvent string + +// WebhooksDto defines model for WebhooksDto. +type WebhooksDto struct { + Webhooks *[]WebhookDto `json:"webhooks,omitempty"` + WorkspaceWebhookCount *int32 `json:"workspaceWebhookCount,omitempty"` +} + +// WeeklyCapacityDto defines model for WeeklyCapacityDto. +type WeeklyCapacityDto struct { + FirstDateOfWeek *openapi_types.Date `json:"firstDateOfWeek,omitempty"` + OffHours *float64 `json:"offHours,omitempty"` + Percentage *float64 `json:"percentage,omitempty"` + WorkingHours *float64 `json:"workingHours,omitempty"` +} + +// WorkspaceDetailDto defines model for WorkspaceDetailDto. +type WorkspaceDetailDto struct { + IsOnSubdomain *bool `json:"isOnSubdomain,omitempty"` + Region *string `json:"region,omitempty"` + RequireSSO *bool `json:"requireSSO,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` + WorkspaceImageUrl *string `json:"workspaceImageUrl,omitempty"` + WorkspaceName *string `json:"workspaceName,omitempty"` + WorkspaceStatus *string `json:"workspaceStatus,omitempty"` + WorkspaceUrl *string `json:"workspaceUrl,omitempty"` +} + +// WorkspaceDto defines model for WorkspaceDto. +type WorkspaceDto struct { + CostRate *RateDto `json:"costRate,omitempty"` + Currency *CurrencyDto `json:"currency,omitempty"` + FeatureSubscriptionType *WorkspaceDtoFeatureSubscriptionType `json:"featureSubscriptionType,omitempty"` + Features *[]WorkspaceDtoFeatures `json:"features,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + ImageUrl *string `json:"imageUrl,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + // Deprecated: + OnSubdomain *bool `json:"onSubdomain,omitempty"` + Subdomain *WorkspaceSubdomainDto `json:"subdomain,omitempty"` + WorkspaceSettings *WorkspaceSettingsDto `json:"workspaceSettings,omitempty"` +} + +// WorkspaceDtoFeatureSubscriptionType defines model for WorkspaceDto.FeatureSubscriptionType. +type WorkspaceDtoFeatureSubscriptionType string + +// WorkspaceDtoFeatures defines model for WorkspaceDto.Features. +type WorkspaceDtoFeatures string + +// WorkspaceOverviewDto defines model for WorkspaceOverviewDto. +type WorkspaceOverviewDto struct { + AccessEnabled *bool `json:"accessEnabled,omitempty"` + CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"` + CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"` + CostRate *RateDto `json:"costRate,omitempty"` + Currency *CurrencyDto `json:"currency,omitempty"` + FeatureSubscriptionType *WorkspaceOverviewDtoFeatureSubscriptionType `json:"featureSubscriptionType,omitempty"` + Features *[]WorkspaceOverviewDtoFeatures `json:"features,omitempty"` + HourlyRate *RateDto `json:"hourlyRate,omitempty"` + Id *string `json:"id,omitempty"` + ImageUrl *string `json:"imageUrl,omitempty"` + Memberships *[]MembershipDto `json:"memberships,omitempty"` + Name *string `json:"name,omitempty"` + // Deprecated: + OnSubdomain *bool `json:"onSubdomain,omitempty"` + Reason *string `json:"reason,omitempty"` + Subdomain *WorkspaceSubdomainDto `json:"subdomain,omitempty"` + WorkspaceSettings *WorkspaceSettingsDto `json:"workspaceSettings,omitempty"` +} + +// WorkspaceOverviewDtoFeatureSubscriptionType defines model for WorkspaceOverviewDto.FeatureSubscriptionType. +type WorkspaceOverviewDtoFeatureSubscriptionType string + +// WorkspaceOverviewDtoFeatures defines model for WorkspaceOverviewDto.Features. +type WorkspaceOverviewDtoFeatures string + +// WorkspaceSettingsDto defines model for WorkspaceSettingsDto. +type WorkspaceSettingsDto struct { + ActiveBillableHours *bool `json:"activeBillableHours,omitempty"` + AdminOnlyPages *[]WorkspaceSettingsDtoAdminOnlyPages `json:"adminOnlyPages,omitempty"` + ApprovalSettings *ApprovalSettings `json:"approvalSettings,omitempty"` + AuditLogSettings *AuditLogSettingsDto `json:"auditLogSettings,omitempty"` + AutomaticLock *AutomaticLockDto `json:"automaticLock,omitempty"` + BreakSettings *BreakSettingsDto `json:"breakSettings,omitempty"` + CanManagerEditUsersTime *bool `json:"canManagerEditUsersTime,omitempty"` + CanManagerLaunchKiosk *bool `json:"canManagerLaunchKiosk,omitempty"` + CanSeeTimeSheet *bool `json:"canSeeTimeSheet,omitempty"` + CanSeeTracker *bool `json:"canSeeTracker,omitempty"` + CompanyAddress *string `json:"companyAddress,omitempty"` + CurrencyFormat *WorkspaceSettingsDtoCurrencyFormat `json:"currencyFormat,omitempty"` + CustomLabels *CustomLabelsDto `json:"customLabels,omitempty"` + // Deprecated: + DecimalFormat *bool `json:"decimalFormat,omitempty"` + DefaultBillableProjects *bool `json:"defaultBillableProjects,omitempty"` + DurationFormat *WorkspaceSettingsDtoDurationFormat `json:"durationFormat,omitempty"` + EntityCreationPermissions *EntityCreationPermissionsDto `json:"entityCreationPermissions,omitempty"` + ExpensesEnabled *bool `json:"expensesEnabled,omitempty"` + FavoriteEntriesEnabled *bool `json:"favoriteEntriesEnabled,omitempty"` + ForceDescription *bool `json:"forceDescription,omitempty"` + ForceProjects *bool `json:"forceProjects,omitempty"` + ForceTags *bool `json:"forceTags,omitempty"` + ForceTasks *bool `json:"forceTasks,omitempty"` + HighResolutionScreenshots *bool `json:"highResolutionScreenshots,omitempty"` + InvoicingEnabled *bool `json:"invoicingEnabled,omitempty"` + IsCostRateActive *bool `json:"isCostRateActive,omitempty"` + IsProjectPublicByDefault *bool `json:"isProjectPublicByDefault,omitempty"` + KioskAutologinEnabled *bool `json:"kioskAutologinEnabled,omitempty"` + KioskEnabled *bool `json:"kioskEnabled,omitempty"` + KioskProjectsAndTasksEnabled *bool `json:"kioskProjectsAndTasksEnabled,omitempty"` + LocationsEnabled *bool `json:"locationsEnabled,omitempty"` + LockTimeEntries *string `json:"lockTimeEntries,omitempty"` + LockTimeZone *string `json:"lockTimeZone,omitempty"` + MultiFactorEnabled *bool `json:"multiFactorEnabled,omitempty"` + NumberFormat *WorkspaceSettingsDtoNumberFormat `json:"numberFormat,omitempty"` + OnlyAdminsCanChangeBillableStatus *bool `json:"onlyAdminsCanChangeBillableStatus,omitempty"` + OnlyAdminsCreateProject *bool `json:"onlyAdminsCreateProject,omitempty"` + OnlyAdminsCreateTag *bool `json:"onlyAdminsCreateTag,omitempty"` + OnlyAdminsCreateTask *bool `json:"onlyAdminsCreateTask,omitempty"` + OnlyAdminsSeeAllTimeEntries *bool `json:"onlyAdminsSeeAllTimeEntries,omitempty"` + OnlyAdminsSeeBillableRates *bool `json:"onlyAdminsSeeBillableRates,omitempty"` + OnlyAdminsSeeDashboard *bool `json:"onlyAdminsSeeDashboard,omitempty"` + OnlyAdminsSeeProjectStatus *bool `json:"onlyAdminsSeeProjectStatus,omitempty"` + OnlyAdminsSeePublicProjectsEntries *bool `json:"onlyAdminsSeePublicProjectsEntries,omitempty"` + ProjectFavorites *bool `json:"projectFavorites,omitempty"` + ProjectGroupingLabel *string `json:"projectGroupingLabel,omitempty"` + ProjectLabel *string `json:"projectLabel,omitempty"` + ProjectPickerSpecialFilter *bool `json:"projectPickerSpecialFilter,omitempty"` + PumbleIntegrationSettings *PumbleIntegrationSettingsDto `json:"pumbleIntegrationSettings,omitempty"` + Round *RoundDto `json:"round,omitempty"` + SchedulingEnabled *bool `json:"schedulingEnabled,omitempty"` + SchedulingSettings *SchedulingSettingsDto `json:"schedulingSettings,omitempty"` + ScreenshotsEnabled *bool `json:"screenshotsEnabled,omitempty"` + TaskBillableEnabled *bool `json:"taskBillableEnabled,omitempty"` + TaskLabel *string `json:"taskLabel,omitempty"` + TaskRateEnabled *bool `json:"taskRateEnabled,omitempty"` + // Deprecated: + TimeApprovalEnabled *bool `json:"timeApprovalEnabled,omitempty"` + TimeOff *TimeOffDto `json:"timeOff,omitempty"` + TimeRoundingInReports *bool `json:"timeRoundingInReports,omitempty"` + TimeTrackingMode *WorkspaceSettingsDtoTimeTrackingMode `json:"timeTrackingMode,omitempty"` + // Deprecated: + TrackTimeDownToSecond *bool `json:"trackTimeDownToSecond,omitempty"` + WeekStart *WorkspaceSettingsDtoWeekStart `json:"weekStart,omitempty"` + WorkingDays *[]WorkspaceSettingsDtoWorkingDays `json:"workingDays,omitempty"` +} + +// WorkspaceSettingsDtoAdminOnlyPages defines model for WorkspaceSettingsDto.AdminOnlyPages. +type WorkspaceSettingsDtoAdminOnlyPages string + +// WorkspaceSettingsDtoCurrencyFormat defines model for WorkspaceSettingsDto.CurrencyFormat. +type WorkspaceSettingsDtoCurrencyFormat string + +// WorkspaceSettingsDtoDurationFormat defines model for WorkspaceSettingsDto.DurationFormat. +type WorkspaceSettingsDtoDurationFormat string + +// WorkspaceSettingsDtoNumberFormat defines model for WorkspaceSettingsDto.NumberFormat. +type WorkspaceSettingsDtoNumberFormat string + +// WorkspaceSettingsDtoTimeTrackingMode defines model for WorkspaceSettingsDto.TimeTrackingMode. +type WorkspaceSettingsDtoTimeTrackingMode string + +// WorkspaceSettingsDtoWeekStart defines model for WorkspaceSettingsDto.WeekStart. +type WorkspaceSettingsDtoWeekStart string + +// WorkspaceSettingsDtoWorkingDays defines model for WorkspaceSettingsDto.WorkingDays. +type WorkspaceSettingsDtoWorkingDays string + +// WorkspaceSubdomainDto defines model for WorkspaceSubdomainDto. +type WorkspaceSubdomainDto struct { + Enabled *bool `json:"enabled,omitempty"` + Name *string `json:"name,omitempty"` +} + +// WorkspaceSubscriptionInfoDto defines model for WorkspaceSubscriptionInfoDto. +type WorkspaceSubscriptionInfoDto struct { + AccessDisabled *bool `json:"accessDisabled,omitempty"` + CurrentSubscriptionPlan *string `json:"currentSubscriptionPlan,omitempty"` + CustomerIds *map[string]string `json:"customerIds,omitempty"` + Name *string `json:"name,omitempty"` + NumberOfActiveLimitedUsers *int32 `json:"numberOfActiveLimitedUsers,omitempty"` + NumberOfActiveUsers *int32 `json:"numberOfActiveUsers,omitempty"` + NumberOfInactiveUsers *int32 `json:"numberOfInactiveUsers,omitempty"` + NumberOfPendingUsers *int32 `json:"numberOfPendingUsers,omitempty"` + OwnerEmail *string `json:"ownerEmail,omitempty"` + StripeCustomerId *string `json:"stripeCustomerId,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// WorkspaceTransferAccessDisabledDto defines model for WorkspaceTransferAccessDisabledDto. +type WorkspaceTransferAccessDisabledDto struct { + DomainUrl *string `json:"domainUrl,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// WorkspaceTransferDeprecatedRequest defines model for WorkspaceTransferDeprecatedRequest. +type WorkspaceTransferDeprecatedRequest struct { + Code *string `json:"code,omitempty"` + PasswordConfirm *string `json:"passwordConfirm,omitempty"` + TargetRegion string `json:"targetRegion"` +} + +// WorkspaceTransferDto defines model for WorkspaceTransferDto. +type WorkspaceTransferDto struct { + Id *string `json:"id,omitempty"` + SourceRegion *string `json:"sourceRegion,omitempty"` + StartTime *string `json:"startTime,omitempty"` + Status *string `json:"status,omitempty"` + TargetRegion *string `json:"targetRegion,omitempty"` + TargetRegionDomainUrl *string `json:"targetRegionDomainUrl,omitempty"` + TargetRegionUrl *string `json:"targetRegionUrl,omitempty"` + TransferMessage *string `json:"transferMessage,omitempty"` + WorkspaceId *string `json:"workspaceId,omitempty"` +} + +// WorkspaceTransferFailedRequest defines model for WorkspaceTransferFailedRequest. +type WorkspaceTransferFailedRequest struct { + Error *string `json:"error,omitempty"` + ProcessingError *string `json:"processingError,omitempty"` + SourceRegion *string `json:"sourceRegion,omitempty"` + SourceRegionUrl *string `json:"sourceRegionUrl,omitempty"` + TargetRegion *string `json:"targetRegion,omitempty"` + TargetRegionUrl *string `json:"targetRegionUrl,omitempty"` + TransferAppId *string `json:"transferAppId,omitempty"` +} + +// WorkspaceTransferFinishedRequest defines model for WorkspaceTransferFinishedRequest. +type WorkspaceTransferFinishedRequest struct { + SendErrorEmail *bool `json:"sendErrorEmail,omitempty"` + SourceRegion *string `json:"sourceRegion,omitempty"` + SourceRegionUrl *string `json:"sourceRegionUrl,omitempty"` + TargetRegion *string `json:"targetRegion,omitempty"` + TargetRegionApiUrl *string `json:"targetRegionApiUrl,omitempty"` + TargetRegionDomainUrl *string `json:"targetRegionDomainUrl,omitempty"` + TargetRegionUrl *string `json:"targetRegionUrl,omitempty"` + TransferAppId *string `json:"transferAppId,omitempty"` + TransferSeatDetailsDto *TransferSeatDetailsDto `json:"transferSeatDetailsDto,omitempty"` +} + +// WorkspaceTransferPossibleDto defines model for WorkspaceTransferPossibleDto. +type WorkspaceTransferPossibleDto struct { + Reason *WorkspaceTransferPossibleDtoReason `json:"reason,omitempty"` + TransferPossible *bool `json:"transferPossible,omitempty"` +} + +// WorkspaceTransferPossibleDtoReason defines model for WorkspaceTransferPossibleDto.Reason. +type WorkspaceTransferPossibleDtoReason string + +// WorkspaceTransferRequest defines model for WorkspaceTransferRequest. +type WorkspaceTransferRequest struct { + Code *string `json:"code,omitempty"` + TargetRegion string `json:"targetRegion"` +} + +// WorkspaceUserMembershipDto defines model for WorkspaceUserMembershipDto. +type WorkspaceUserMembershipDto struct { + CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"` + CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"` + UserStatus *string `json:"userStatus,omitempty"` + WorkspaceDetail *WorkspaceDetailDto `json:"workspaceDetail,omitempty"` +} + +// GetAllUsersParams defines parameters for GetAllUsers. +type GetAllUsersParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` + SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"` + SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"` + SearchEmail *string `form:"searchEmail,omitempty" json:"searchEmail,omitempty"` + StrictEmailSearch *bool `form:"strictEmailSearch,omitempty" json:"strictEmailSearch,omitempty"` + SearchName *string `form:"searchName,omitempty" json:"searchName,omitempty"` + StrictNameSearch *bool `form:"strictNameSearch,omitempty" json:"strictNameSearch,omitempty"` +} + +// GetUserMembershipsAndInvitesParams defines parameters for GetUserMembershipsAndInvites. +type GetUserMembershipsAndInvitesParams struct { + SubDomainName *string `json:"Sub-Domain-Name,omitempty"` +} + +// AddNotificationsMultipartBody defines parameters for AddNotifications. +type AddNotificationsMultipartBody struct { + Image *openapi_types.File `json:"image,omitempty"` + Request NewsRequest `json:"request"` +} + +// UpdateNewsMultipartBody defines parameters for UpdateNews. +type UpdateNewsMultipartBody struct { + Image *openapi_types.File `json:"image,omitempty"` + Request NewsRequest `json:"request"` +} + +// SearchAllUsersParams defines parameters for SearchAllUsers. +type SearchAllUsersParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` + SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"` + SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"` + Email *string `form:"email,omitempty" json:"email,omitempty"` + StrictEmailSearch *bool `form:"strictEmailSearch,omitempty" json:"strictEmailSearch,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` + StrictNameSearch *bool `form:"strictNameSearch,omitempty" json:"strictNameSearch,omitempty"` + WorkspaceId *string `form:"workspaceId,omitempty" json:"workspaceId,omitempty"` + AgentTicketLink *string `json:"Agent-Ticket-Link,omitempty"` +} + +// NumberOfUsersRegisteredParams defines parameters for NumberOfUsersRegistered. +type NumberOfUsersRegisteredParams struct { + Days *string `form:"days,omitempty" json:"days,omitempty"` +} + +// GetUsersOnWorkspaceParams defines parameters for GetUsersOnWorkspace. +type GetUsersOnWorkspaceParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` + SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"` + SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"` + SearchEmail *string `form:"searchEmail,omitempty" json:"searchEmail,omitempty"` +} + +// GetUsersOfWorkspace5Params defines parameters for GetUsersOfWorkspace5. +type GetUsersOfWorkspace5Params struct { + Email *string `form:"email,omitempty" json:"email,omitempty"` + ProjectId *string `form:"projectId,omitempty" json:"projectId,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"` +} + +// GetMembersInfoParams defines parameters for GetMembersInfo. +type GetMembersInfoParams struct { + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetUserNamesParams defines parameters for GetUserNames. +type GetUserNamesParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Status string `form:"status" json:"status"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` +} + +// GetUsersAndUsersFromUserGroupsAssignedToProjectParams defines parameters for GetUsersAndUsersFromUserGroupsAssignedToProject. +type GetUsersAndUsersFromUserGroupsAssignedToProjectParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetUsersOfWorkspace4Params defines parameters for GetUsersOfWorkspace4. +type GetUsersOfWorkspace4Params struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// GetUsersForReportFilterOldParams defines parameters for GetUsersForReportFilterOld. +type GetUsersForReportFilterOldParams struct { + SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + ForceFilter *bool `form:"force-filter,omitempty" json:"force-filter,omitempty"` + IgnoreFilter *bool `form:"ignore-filter,omitempty" json:"ignore-filter,omitempty"` + ExcludeIds *[]string `form:"excludeIds,omitempty" json:"excludeIds,omitempty"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + UserStatuses *[]string `form:"userStatuses,omitempty" json:"userStatuses,omitempty"` + ReportType *string `form:"reportType,omitempty" json:"reportType,omitempty"` +} + +// GetUsersOfUserGroupParams defines parameters for GetUsersOfUserGroup. +type GetUsersOfUserGroupParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"` +} + +// GetUsersOfWorkspace3Params defines parameters for GetUsersOfWorkspace3. +type GetUsersOfWorkspace3Params struct { + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// GetUsersOfWorkspace2Params defines parameters for GetUsersOfWorkspace2. +type GetUsersOfWorkspace2Params struct { + Email *string `form:"email,omitempty" json:"email,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + SearchByNameOnly *bool `form:"searchByNameOnly,omitempty" json:"searchByNameOnly,omitempty"` + EmailAsName *bool `form:"email-as-name,omitempty" json:"email-as-name,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + UserStatuses *[]string `form:"userStatuses,omitempty" json:"userStatuses,omitempty"` +} + +// ChangeEmailParams defines parameters for ChangeEmail. +type ChangeEmailParams struct { + SubDomainName *string `json:"Sub-Domain-Name,omitempty"` +} + +// GetNotificationsParams defines parameters for GetNotifications. +type GetNotificationsParams struct { + Type *string `form:"type,omitempty" json:"type,omitempty"` + ExcludeInvitations *bool `form:"excludeInvitations,omitempty" json:"excludeInvitations,omitempty"` +} + +// UpdateSettingsParams defines parameters for UpdateSettings. +type UpdateSettingsParams struct { + SubDomainName *string `json:"Sub-Domain-Name,omitempty"` +} + +// UploadImageMultipartBody defines parameters for UploadImage. +type UploadImageMultipartBody struct { + // File Image to be uploaded + File openapi_types.File `json:"file"` +} + +// GetWorkspaceInfoParams defines parameters for GetWorkspaceInfo. +type GetWorkspaceInfoParams struct { + WorkspaceId *string `form:"workspaceId,omitempty" json:"workspaceId,omitempty"` + Email *string `form:"email,omitempty" json:"email,omitempty"` +} + +// UpdateWorkspaceParams defines parameters for UpdateWorkspace. +type UpdateWorkspaceParams struct { + SubDomainName *string `json:"Sub-Domain-Name,omitempty"` +} + +// GetABTestingParams defines parameters for GetABTesting. +type GetABTestingParams struct { + Type string `form:"type" json:"type"` +} + +// GetInstalledAddonsParams defines parameters for GetInstalledAddons. +type GetInstalledAddonsParams struct { + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + SearchTerm *string `form:"search-term,omitempty" json:"search-term,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetInstalledAddonsIdNamePairParams defines parameters for GetInstalledAddonsIdNamePair. +type GetInstalledAddonsIdNamePairParams struct { + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + SearchTerm *string `form:"search-term,omitempty" json:"search-term,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetAddonUserJWTParams defines parameters for GetAddonUserJWT. +type GetAddonUserJWTParams struct { + Type string `form:"type" json:"type"` +} + +// CheckWorkspaceTransferPossibilityParams defines parameters for CheckWorkspaceTransferPossibility. +type CheckWorkspaceTransferPossibilityParams struct { + Region string `form:"region" json:"region"` +} + +// GetClients1Params defines parameters for GetClients1. +type GetClients1Params struct { + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetClientsOfIdsParams defines parameters for GetClientsOfIds. +type GetClientsOfIdsParams struct { + SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetClientsForInvoiceFilter1Params defines parameters for GetClientsForInvoiceFilter1. +type GetClientsForInvoiceFilter1Params struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetClients2Params defines parameters for GetClients2. +type GetClients2Params struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetClientsForReportFilterParams defines parameters for GetClientsForReportFilter. +type GetClientsForReportFilterParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` +} + +// GetClientIdsForReportFilterParams defines parameters for GetClientIdsForReportFilter. +type GetClientIdsForReportFilterParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// Update10Params defines parameters for Update10. +type Update10Params struct { + ArchiveProjects *bool `form:"archive-projects,omitempty" json:"archive-projects,omitempty"` + MarkTasksAsDone *bool `form:"mark-tasks-as-done,omitempty" json:"mark-tasks-as-done,omitempty"` +} + +// GetCouponParams defines parameters for GetCoupon. +type GetCouponParams struct { + Type string `form:"type" json:"type"` +} + +// OfWorkspaceParams defines parameters for OfWorkspace. +type OfWorkspaceParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` + EntityType *[]string `form:"entityType,omitempty" json:"entityType,omitempty"` +} + +// OfWorkspaceWithRequiredAvailabilityParams defines parameters for OfWorkspaceWithRequiredAvailability. +type OfWorkspaceWithRequiredAvailabilityParams struct { + EntityType *[]string `form:"entityType,omitempty" json:"entityType,omitempty"` +} + +// GetOfProjectParams defines parameters for GetOfProject. +type GetOfProjectParams struct { + Status string `form:"status" json:"status"` + EntityType *[]string `form:"entityType,omitempty" json:"entityType,omitempty"` +} + +// AddEmailParams defines parameters for AddEmail. +type AddEmailParams struct { + SendEmail *bool `form:"sendEmail,omitempty" json:"sendEmail,omitempty"` +} + +// GetExpensesParams defines parameters for GetExpenses. +type GetExpensesParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` +} + +// GetCategoriesParams defines parameters for GetCategories. +type GetCategoriesParams struct { + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` +} + +// GetCategoriesByIdsParams defines parameters for GetCategoriesByIds. +type GetCategoriesByIdsParams struct { + Ids *[]string `form:"ids,omitempty" json:"ids,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` +} + +// GetExpensesInDateRangeParams defines parameters for GetExpensesInDateRange. +type GetExpensesInDateRangeParams struct { + UserId string `form:"userId" json:"userId"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// GetInvoiceEmailTemplatesParams defines parameters for GetInvoiceEmailTemplates. +type GetInvoiceEmailTemplatesParams struct { + InvoiceEmailTemplateType *string `form:"invoiceEmailTemplateType,omitempty" json:"invoiceEmailTemplateType,omitempty"` +} + +// GetClientsForInvoiceFilterParams defines parameters for GetClientsForInvoiceFilter. +type GetClientsForInvoiceFilterParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// ExportInvoiceParams defines parameters for ExportInvoice. +type ExportInvoiceParams struct { + UserLocale string `form:"userLocale" json:"userLocale"` +} + +// DeleteInvoiceItemsParams defines parameters for DeleteInvoiceItems. +type DeleteInvoiceItemsParams struct { + InvoiceItemsOrder []int32 `form:"invoiceItemsOrder" json:"invoiceItemsOrder"` +} + +// GetPaymentsForInvoiceParams defines parameters for GetPaymentsForInvoice. +type GetPaymentsForInvoiceParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// IsAvailableParams defines parameters for IsAvailable. +type IsAvailableParams struct { + PinContext IsAvailableParamsPinContext `form:"pinContext" json:"pinContext"` + PinCode string `form:"pinCode" json:"pinCode"` +} + +// IsAvailableParamsPinContext defines parameters for IsAvailable. +type IsAvailableParamsPinContext string + +// IsAvailable1Params defines parameters for IsAvailable1. +type IsAvailable1Params struct { + PinCode string `form:"pinCode" json:"pinCode"` +} + +// GeneratePinCodeParams defines parameters for GeneratePinCode. +type GeneratePinCodeParams struct { + Context GeneratePinCodeParamsContext `form:"context" json:"context"` +} + +// GeneratePinCodeParamsContext defines parameters for GeneratePinCode. +type GeneratePinCodeParamsContext string + +// GetKiosksOfWorkspaceParams defines parameters for GetKiosksOfWorkspace. +type GetKiosksOfWorkspaceParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` +} + +// GetWithoutDefaultsParams defines parameters for GetWithoutDefaults. +type GetWithoutDefaultsParams struct { + Type *string `form:"type,omitempty" json:"type,omitempty"` + IsBreak *bool `form:"isBreak,omitempty" json:"isBreak,omitempty"` +} + +// CheckAvailabilityOfDomainNameParams defines parameters for CheckAvailabilityOfDomainName. +type CheckAvailabilityOfDomainNameParams struct { + DomainName string `form:"domain-name" json:"domain-name"` +} + +// GetAllOrganizationsOfUserParams defines parameters for GetAllOrganizationsOfUser. +type GetAllOrganizationsOfUserParams struct { + MembershipStatus *string `form:"membership-status,omitempty" json:"membership-status,omitempty"` +} + +// GetCustomerInfoParams defines parameters for GetCustomerInfo. +type GetCustomerInfoParams struct { + CountryCode *string `form:"countryCode,omitempty" json:"countryCode,omitempty"` +} + +// UpdateCustomerJSONBody defines parameters for UpdateCustomer. +type UpdateCustomerJSONBody struct { + CustomerBillingRequest *CustomerBillingRequest `json:"customerBillingRequest,omitempty"` + CustomerRequest *CustomerRequest `json:"customerRequest,omitempty"` +} + +// ExtendTrialParams defines parameters for ExtendTrial. +type ExtendTrialParams struct { + Days *int32 `form:"days,omitempty" json:"days,omitempty"` +} + +// GetFeatureSubscriptionsParams defines parameters for GetFeatureSubscriptions. +type GetFeatureSubscriptionsParams struct { + Type *string `form:"type,omitempty" json:"type,omitempty"` +} + +// GetInvoicesParams defines parameters for GetInvoices. +type GetInvoicesParams struct { + Status *[]string `form:"status,omitempty" json:"status,omitempty"` + StartingAfter *string `form:"startingAfter,omitempty" json:"startingAfter,omitempty"` + Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +} + +// GetInvoicesCountParams defines parameters for GetInvoicesCount. +type GetInvoicesCountParams struct { + Status *[]string `form:"status,omitempty" json:"status,omitempty"` +} + +// GetInvoicesListParams defines parameters for GetInvoicesList. +type GetInvoicesListParams struct { + Status *[]string `form:"status,omitempty" json:"status,omitempty"` + NextPage *string `form:"nextPage,omitempty" json:"nextPage,omitempty"` + Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +} + +// CreateSetupIntentForPaymentMethodJSONBody defines parameters for CreateSetupIntentForPaymentMethod. +type CreateSetupIntentForPaymentMethodJSONBody struct { + CustomerBillingRequest *CustomerBillingRequest `json:"customerBillingRequest,omitempty"` + InvisibleReCaptchaRequest *InvisibleReCaptchaRequest `json:"invisibleReCaptchaRequest,omitempty"` + PaymentMethodAddressRequest *PaymentMethodAddressRequest `json:"paymentMethodAddressRequest,omitempty"` +} + +// PreviewUpgradeParams defines parameters for PreviewUpgrade. +type PreviewUpgradeParams struct { + Type *string `form:"type,omitempty" json:"type,omitempty"` + Quantity *int32 `form:"quantity,omitempty" json:"quantity,omitempty"` + LimitedQuantity *int32 `form:"limitedQuantity,omitempty" json:"limitedQuantity,omitempty"` +} + +// CreateSetupIntentForInitialSubscriptionJSONBody defines parameters for CreateSetupIntentForInitialSubscription. +type CreateSetupIntentForInitialSubscriptionJSONBody struct { + CustomerBillingRequest *CustomerBillingRequest `json:"customerBillingRequest,omitempty"` + CustomerRequest *CustomerRequest `json:"customerRequest,omitempty"` + InvisibleReCaptchaRequest *InvisibleReCaptchaRequest `json:"invisibleReCaptchaRequest,omitempty"` + PaymentMethodAddressRequest *PaymentMethodAddressRequest `json:"paymentMethodAddressRequest,omitempty"` +} + +// CreateSubscriptionJSONBody defines parameters for CreateSubscription. +type CreateSubscriptionJSONBody struct { + CustomerRequest *CustomerRequest `json:"customerRequest,omitempty"` + PaymentRequest *PaymentRequest `json:"paymentRequest,omitempty"` + QuantityRequest *CreateSubscriptionQuantityRequest `json:"quantityRequest,omitempty"` +} + +// UpgradePreCheckParams defines parameters for UpgradePreCheck. +type UpgradePreCheckParams struct { + Type string `form:"type" json:"type"` +} + +// FindForUserAndPolicyParams defines parameters for FindForUserAndPolicy. +type FindForUserAndPolicyParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetClientsParams defines parameters for GetClients. +type GetClientsParams struct { + Search *string `form:"search,omitempty" json:"search,omitempty"` + Page *string `form:"page,omitempty" json:"page,omitempty"` + PageSize *string `form:"page-size,omitempty" json:"page-size,omitempty"` + ExcludedProjects *[]string `form:"excludedProjects,omitempty" json:"excludedProjects,omitempty"` + ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"` + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` + PickerOptions PickerOptions `form:"pickerOptions" json:"pickerOptions"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetProjects3Params defines parameters for GetProjects3. +type GetProjects3Params struct { + ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"` + ExcludedProjects *[]string `form:"excludedProjects,omitempty" json:"excludedProjects,omitempty"` + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` + Favorites *bool `form:"favorites,omitempty" json:"favorites,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetProjectFavoritesParams defines parameters for GetProjectFavorites. +type GetProjectFavoritesParams struct { + Search *string `form:"search,omitempty" json:"search,omitempty"` + ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"` + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` +} + +// GetTasks21Params defines parameters for GetTasks21. +type GetTasks21Params struct { + Search *string `form:"search,omitempty" json:"search,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"` + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` + TaskFilterEnabled *bool `form:"taskFilterEnabled,omitempty" json:"taskFilterEnabled,omitempty"` +} + +// GetProjects2Params defines parameters for GetProjects2. +type GetProjects2Params struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + StrictNameSearch *bool `form:"strict-name-search,omitempty" json:"strict-name-search,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` + Billable *bool `form:"billable,omitempty" json:"billable,omitempty"` + Clients *[]string `form:"clients,omitempty" json:"clients,omitempty"` + ContainsClient *bool `form:"contains-client,omitempty" json:"contains-client,omitempty"` + ClientStatus *string `form:"client-status,omitempty" json:"client-status,omitempty"` + Users *[]string `form:"users,omitempty" json:"users,omitempty"` + ContainsUser *bool `form:"contains-user,omitempty" json:"contains-user,omitempty"` + UserStatus *string `form:"user-status,omitempty" json:"user-status,omitempty"` + IsTemplate *bool `form:"is-template,omitempty" json:"is-template,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// UpdateMany1Params defines parameters for UpdateMany1. +type UpdateMany1Params struct { + TasksStatus *string `form:"tasks-status,omitempty" json:"tasks-status,omitempty"` +} + +// GetFilteredProjectsCountParams defines parameters for GetFilteredProjectsCount. +type GetFilteredProjectsCountParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` + Billable *bool `form:"billable,omitempty" json:"billable,omitempty"` + Clients *[]string `form:"clients,omitempty" json:"clients,omitempty"` + ContainsClient *bool `form:"contains-client,omitempty" json:"contains-client,omitempty"` + ClientStatus *string `form:"client-status,omitempty" json:"client-status,omitempty"` + Users *[]string `form:"users,omitempty" json:"users,omitempty"` + ContainsUser *bool `form:"contains-user,omitempty" json:"contains-user,omitempty"` + UserStatus *string `form:"user-status,omitempty" json:"user-status,omitempty"` +} + +// LastUsedProject1Params defines parameters for LastUsedProject1. +type LastUsedProject1Params struct { + Type *string `form:"type,omitempty" json:"type,omitempty"` +} + +// GetProjectsListParams defines parameters for GetProjectsList. +type GetProjectsListParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + StrictNameSearch *bool `form:"strict-name-search,omitempty" json:"strict-name-search,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` + Billable *bool `form:"billable,omitempty" json:"billable,omitempty"` + Clients *[]string `form:"clients,omitempty" json:"clients,omitempty"` + ContainsClient *bool `form:"contains-client,omitempty" json:"contains-client,omitempty"` + ClientStatus *string `form:"client-status,omitempty" json:"client-status,omitempty"` + Users *[]string `form:"users,omitempty" json:"users,omitempty"` + ContainsUser *bool `form:"contains-user,omitempty" json:"contains-user,omitempty"` + UserStatus *string `form:"user-status,omitempty" json:"user-status,omitempty"` + IsTemplate *bool `form:"is-template,omitempty" json:"is-template,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetAllTasksJSONBody defines parameters for GetAllTasks. +type GetAllTasksJSONBody = []string + +// GetTasksJSONBody defines parameters for GetTasks. +type GetTasksJSONBody = []string + +// GetTasksParams defines parameters for GetTasks. +type GetTasksParams struct { + Page *string `form:"page,omitempty" json:"page,omitempty"` + PageSize *string `form:"pageSize,omitempty" json:"pageSize,omitempty"` + SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"` + SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` +} + +// GetProject1Params defines parameters for GetProject1. +type GetProject1Params struct { + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` +} + +// Update14Params defines parameters for Update14. +type Update14Params struct { + TasksStatus *string `form:"tasks-status,omitempty" json:"tasks-status,omitempty"` +} + +// Update6Params defines parameters for Update6. +type Update6Params struct { + TasksStatus *string `form:"tasks-status,omitempty" json:"tasks-status,omitempty"` +} + +// Create13Params defines parameters for Create13. +type Create13Params struct { + ContainsAssignee *bool `form:"contains-assignee,omitempty" json:"contains-assignee,omitempty"` +} + +// Update7Params defines parameters for Update7. +type Update7Params struct { + ContainsAssignee *bool `form:"contains-assignee,omitempty" json:"contains-assignee,omitempty"` + MembershipStatus *string `form:"membership-status,omitempty" json:"membership-status,omitempty"` +} + +// GetUsers4Params defines parameters for GetUsers4. +type GetUsers4Params struct { + Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"` +} + +// OfWorkspaceIdAndUserIdParams defines parameters for OfWorkspaceIdAndUserId. +type OfWorkspaceIdAndUserIdParams struct { + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` +} + +// GetMyMostTrackedParams defines parameters for GetMyMostTracked. +type GetMyMostTrackedParams struct { + Count *string `form:"count,omitempty" json:"count,omitempty"` + Start *string `form:"start,omitempty" json:"start,omitempty"` + End *string `form:"end,omitempty" json:"end,omitempty"` +} + +// GetTeamActivitiesParams defines parameters for GetTeamActivities. +type GetTeamActivitiesParams struct { + Start *string `form:"start,omitempty" json:"start,omitempty"` + End *string `form:"end,omitempty" json:"end,omitempty"` + Type *string `form:"type,omitempty" json:"type,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetAmountPreviewParams defines parameters for GetAmountPreview. +type GetAmountPreviewParams struct { + UserId string `form:"userId" json:"userId"` + ProjectId string `form:"projectId" json:"projectId"` + TaskId string `form:"taskId" json:"taskId"` + TotalHours float64 `form:"totalHours" json:"totalHours"` + Billable bool `form:"billable" json:"billable"` +} + +// GetProjectTotalsParams defines parameters for GetProjectTotals. +type GetProjectTotalsParams struct { + Search *string `form:"search,omitempty" json:"search,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetProjectTotalsForSingleProjectParams defines parameters for GetProjectTotalsForSingleProject. +type GetProjectTotalsForSingleProjectParams struct { + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// GetProjectsForUserParams defines parameters for GetProjectsForUser. +type GetProjectsForUserParams struct { + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// Delete11Params defines parameters for Delete11. +type Delete11Params struct { + SeriesUpdateOption *string `form:"seriesUpdateOption,omitempty" json:"seriesUpdateOption,omitempty"` +} + +// GetAssignmentsForUserParams defines parameters for GetAssignmentsForUser. +type GetAssignmentsForUserParams struct { + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` + Published bool `form:"published" json:"published"` +} + +// GetUsers3Params defines parameters for GetUsers3. +type GetUsers3Params struct { + Exclude *[]string `form:"exclude,omitempty" json:"exclude,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + StatusFilter *GetUsers3ParamsStatusFilter `form:"statusFilter,omitempty" json:"statusFilter,omitempty"` +} + +// GetUsers3ParamsStatusFilter defines parameters for GetUsers3. +type GetUsers3ParamsStatusFilter string + +// GetProjects1Params defines parameters for GetProjects1. +type GetProjects1Params struct { + Exclude *[]string `form:"exclude,omitempty" json:"exclude,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + StatusFilter *GetProjects1ParamsStatusFilter `form:"statusFilter,omitempty" json:"statusFilter,omitempty"` +} + +// GetProjects1ParamsStatusFilter defines parameters for GetProjects1. +type GetProjects1ParamsStatusFilter string + +// RemindToPublishParams defines parameters for RemindToPublish. +type RemindToPublishParams struct { + StartDate string `form:"startDate" json:"startDate"` + EndDate string `form:"endDate" json:"endDate"` +} + +// GetUserTotalsForSingleUserParams defines parameters for GetUserTotalsForSingleUser. +type GetUserTotalsForSingleUserParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// GetProjectsParams defines parameters for GetProjects. +type GetProjectsParams struct { + UserId string `form:"userId" json:"userId"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + IncludeHidden *bool `form:"includeHidden,omitempty" json:"includeHidden,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// GetUsers2Params defines parameters for GetUsers2. +type GetUsers2Params struct { + ProjectId string `form:"projectId" json:"projectId"` + TaskId *string `form:"taskId,omitempty" json:"taskId,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + IncludeHidden *bool `form:"includeHidden,omitempty" json:"includeHidden,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` +} + +// GetUsersAssignedToProjectParams defines parameters for GetUsersAssignedToProject. +type GetUsersAssignedToProjectParams struct { + TaskId string `form:"taskId" json:"taskId"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + IncludeHidden *bool `form:"includeHidden,omitempty" json:"includeHidden,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` + Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"` + Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"` +} + +// FilterUsersByStatusJSONBody defines parameters for FilterUsersByStatus. +type FilterUsersByStatusJSONBody = []TeamMemberRequest + +// FilterUsersByStatusParams defines parameters for FilterUsersByStatus. +type FilterUsersByStatusParams struct { + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// StartParams defines parameters for Start. +type StartParams struct { + TimeEntryId *string `form:"timeEntryId,omitempty" json:"timeEntryId,omitempty"` + AssignmentId *string `form:"assignmentId,omitempty" json:"assignmentId,omitempty"` + AppName *string `json:"App-Name,omitempty"` + RequestId *string `json:"Request-Id,omitempty"` + Signature *string `json:"Signature,omitempty"` +} + +// GetTagsParams defines parameters for GetTags. +type GetTagsParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + StrictNameSearch *bool `form:"strict-name-search,omitempty" json:"strict-name-search,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Archived *bool `form:"archived,omitempty" json:"archived,omitempty"` +} + +// GetTagIdsByNameAndStatusParams defines parameters for GetTagIdsByNameAndStatus. +type GetTagIdsByNameAndStatusParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// GetTemplatesParams defines parameters for GetTemplates. +type GetTemplatesParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` + RemoveInactivePairs *bool `form:"remove-inactive-pairs,omitempty" json:"remove-inactive-pairs,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + WeekStart *string `form:"week-start,omitempty" json:"week-start,omitempty"` +} + +// GetTemplateParams defines parameters for GetTemplate. +type GetTemplateParams struct { + RemoveInactivePairs *bool `form:"remove-inactive-pairs,omitempty" json:"remove-inactive-pairs,omitempty"` +} + +// GetTeamMembersOfAdminParams defines parameters for GetTeamMembersOfAdmin. +type GetTeamMembersOfAdminParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// GetBalancesForPolicyParams defines parameters for GetBalancesForPolicy. +type GetBalancesForPolicyParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Sort *string `form:"sort,omitempty" json:"sort,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` +} + +// GetBalancesForUserParams defines parameters for GetBalancesForUser. +type GetBalancesForUserParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Sort *string `form:"sort,omitempty" json:"sort,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + WithArchived *bool `form:"with-archived,omitempty" json:"with-archived,omitempty"` +} + +// GetTeamMembersOfManagerParams defines parameters for GetTeamMembersOfManager. +type GetTeamMembersOfManagerParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// FindPoliciesForWorkspaceParams defines parameters for FindPoliciesForWorkspace. +type FindPoliciesForWorkspaceParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// FindPoliciesForUserParams defines parameters for FindPoliciesForUser. +type FindPoliciesForUserParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// Get1Params defines parameters for Get1. +type Get1Params struct { + FetchScope *string `form:"fetch-scope,omitempty" json:"fetch-scope,omitempty"` +} + +// GetAllUsersOfWorkspaceParams defines parameters for GetAllUsersOfWorkspace. +type GetAllUsersOfWorkspaceParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// GetUserGroupsOfWorkspaceParams defines parameters for GetUserGroupsOfWorkspace. +type GetUserGroupsOfWorkspaceParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + FilterTeam *bool `form:"filter-team,omitempty" json:"filter-team,omitempty"` +} + +// GetUsersOfWorkspaceParams defines parameters for GetUsersOfWorkspace. +type GetUsersOfWorkspaceParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + Search *string `form:"search,omitempty" json:"search,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` + FilterTeam *bool `form:"filter-team,omitempty" json:"filter-team,omitempty"` +} + +// GetParams defines parameters for Get. +type GetParams struct { + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` + FetchScope *string `form:"fetch-scope,omitempty" json:"fetch-scope,omitempty"` +} + +// GetTimelineForReportsParams defines parameters for GetTimelineForReports. +type GetTimelineForReportsParams struct { + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` + FetchScope *string `form:"fetch-scope,omitempty" json:"fetch-scope,omitempty"` +} + +// GetTimeEntriesBySearchValueParams defines parameters for GetTimeEntriesBySearchValue. +type GetTimeEntriesBySearchValueParams struct { + SearchValue string `form:"searchValue" json:"searchValue"` +} + +// Create6Params defines parameters for Create6. +type Create6Params struct { + FromEntry *string `form:"from-entry,omitempty" json:"from-entry,omitempty"` + AppName *string `json:"App-Name,omitempty"` + RequestId *string `json:"Request-Id,omitempty"` + Signature *string `json:"Signature,omitempty"` +} + +// GetMultipleTimeEntriesByIdParams defines parameters for GetMultipleTimeEntriesById. +type GetMultipleTimeEntriesByIdParams struct { + Id []string `form:"id" json:"id"` +} + +// CreateFull1Params defines parameters for CreateFull1. +type CreateFull1Params struct { + AppName *string `json:"App-Name,omitempty"` + RequestId *string `json:"Request-Id,omitempty"` + Signature *string `json:"Signature,omitempty"` +} + +// GetTimeEntriesRecentlyUsedParams defines parameters for GetTimeEntriesRecentlyUsed. +type GetTimeEntriesRecentlyUsedParams struct { + Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +} + +// ListOfFullParams defines parameters for ListOfFull. +type ListOfFullParams struct { + Page *string `form:"page,omitempty" json:"page,omitempty"` + Limit *string `form:"limit,omitempty" json:"limit,omitempty"` +} + +// GetTimeEntriesParams defines parameters for GetTimeEntries. +type GetTimeEntriesParams struct { + Description *string `form:"description,omitempty" json:"description,omitempty"` + Start *string `form:"start,omitempty" json:"start,omitempty"` + End *string `form:"end,omitempty" json:"end,omitempty"` + Project *string `form:"project,omitempty" json:"project,omitempty"` + Task *string `form:"task,omitempty" json:"task,omitempty"` + Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"` + ProjectRequired *bool `form:"project-required,omitempty" json:"project-required,omitempty"` + TaskRequired *bool `form:"task-required,omitempty" json:"task-required,omitempty"` + Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + InProgress *bool `form:"in-progress,omitempty" json:"in-progress,omitempty"` + GetWeekBefore *string `form:"get-week-before,omitempty" json:"get-week-before,omitempty"` +} + +// AssertTimeEntriesExistInDateRangeParams defines parameters for AssertTimeEntriesExistInDateRange. +type AssertTimeEntriesExistInDateRangeParams struct { + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// CreateFullParams defines parameters for CreateFull. +type CreateFullParams struct { + AppName *string `json:"App-Name,omitempty"` + RequestId *string `json:"Request-Id,omitempty"` + Signature *string `json:"Signature,omitempty"` +} + +// GetTimeEntriesInRangeParams defines parameters for GetTimeEntriesInRange. +type GetTimeEntriesInRangeParams struct { + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// GetTimeEntriesForTimesheetParams defines parameters for GetTimeEntriesForTimesheet. +type GetTimeEntriesForTimesheetParams struct { + Start *string `form:"start,omitempty" json:"start,omitempty"` + End *string `form:"end,omitempty" json:"end,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + InProgress *bool `form:"in-progress,omitempty" json:"in-progress,omitempty"` +} + +// PatchJSONBody defines parameters for Patch. +type PatchJSONBody map[string]map[string]interface{} + +// Update3Params defines parameters for Update3. +type Update3Params struct { + AppName *string `json:"App-Name,omitempty"` + RequestId *string `json:"Request-Id,omitempty"` + Signature *string `json:"Signature,omitempty"` +} + +// UpdateFullParams defines parameters for UpdateFull. +type UpdateFullParams struct { + StopTimer *bool `form:"stop-timer,omitempty" json:"stop-timer,omitempty"` +} + +// UpdateProjectAndTaskJSONBody defines parameters for UpdateProjectAndTask. +type UpdateProjectAndTaskJSONBody struct { + Request1 *UpdateTimeEntryTaskRequest `json:"request1,omitempty"` + Request2 *UpdateTimeEntryProjectRequest `json:"request2,omitempty"` +} + +// GetTrialActivationDataParams defines parameters for GetTrialActivationData. +type GetTrialActivationDataParams struct { + TestReverseFreeTrialPhase *string `form:"testReverseFreeTrialPhase,omitempty" json:"testReverseFreeTrialPhase,omitempty"` + TestActivateTrial *bool `form:"testActivateTrial,omitempty" json:"testActivateTrial,omitempty"` +} + +// GetUserGroups2Params defines parameters for GetUserGroups2. +type GetUserGroups2Params struct { + ProjectId *string `form:"projectId,omitempty" json:"projectId,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + Name *string `form:"name,omitempty" json:"name,omitempty"` + SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"` + SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + SearchGroups *bool `form:"search-groups,omitempty" json:"search-groups,omitempty"` +} + +// GetUsersForReportFilter1Params defines parameters for GetUsersForReportFilter1. +type GetUsersForReportFilter1Params struct { + SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"` + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + ForceFilter *bool `form:"force-filter,omitempty" json:"force-filter,omitempty"` + IgnoreFilter *bool `form:"ignore-filter,omitempty" json:"ignore-filter,omitempty"` + ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"` + ForApproval *bool `form:"forApproval,omitempty" json:"forApproval,omitempty"` +} + +// GetUserGroupIdsByNameParams defines parameters for GetUserGroupIdsByName. +type GetUserGroupIdsByNameParams struct { + Name *string `form:"name,omitempty" json:"name,omitempty"` +} + +// GetUserGroupsParams defines parameters for GetUserGroups. +type GetUserGroupsParams struct { + SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"` +} + +// RemoveUserParams defines parameters for RemoveUser. +type RemoveUserParams struct { + UserGroupIds *[]string `form:"userGroupIds,omitempty" json:"userGroupIds,omitempty"` + UserId *string `form:"userId,omitempty" json:"userId,omitempty"` +} + +// AddUsersParams defines parameters for AddUsers. +type AddUsersParams struct { + SendEmail *bool `form:"sendEmail,omitempty" json:"sendEmail,omitempty"` +} + +// GetExpensesForUsersParams defines parameters for GetExpensesForUsers. +type GetExpensesForUsersParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` + UserId []string `form:"userId" json:"userId"` +} + +// GetPreviewParams defines parameters for GetPreview. +type GetPreviewParams struct { + Unsubmitted *bool `form:"unsubmitted,omitempty" json:"unsubmitted,omitempty"` +} + +// GetTimeEntryStatusParams defines parameters for GetTimeEntryStatus. +type GetTimeEntryStatusParams struct { + Start *string `form:"start,omitempty" json:"start,omitempty"` +} + +// GetTimeEntryWeekStatusParams defines parameters for GetTimeEntryWeekStatus. +type GetTimeEntryWeekStatusParams struct { + Start *string `form:"start,omitempty" json:"start,omitempty"` +} + +// GetHolidays1Params defines parameters for GetHolidays1. +type GetHolidays1Params struct { + Start string `form:"start" json:"start"` + End string `form:"end" json:"end"` +} + +// GetUserRolesParams defines parameters for GetUserRoles. +type GetUserRolesParams struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"` +} + +// GetWebhooksParams defines parameters for GetWebhooks. +type GetWebhooksParams struct { + Type *[]string `form:"type,omitempty" json:"type,omitempty"` +} + +// GetLogsForWebhook1Params defines parameters for GetLogsForWebhook1. +type GetLogsForWebhook1Params struct { + Page *int32 `form:"page,omitempty" json:"page,omitempty"` + Size *int32 `form:"size,omitempty" json:"size,omitempty"` + Status *string `form:"status,omitempty" json:"status,omitempty"` + SortByNewest *bool `form:"sortByNewest,omitempty" json:"sortByNewest,omitempty"` + From *string `form:"from,omitempty" json:"from,omitempty"` + To *string `form:"to,omitempty" json:"to,omitempty"` +} + +// GetLogCountParams defines parameters for GetLogCount. +type GetLogCountParams struct { + Status *string `form:"status,omitempty" json:"status,omitempty"` +} + +// DownloadReportJSONRequestBody defines body for DownloadReport for application/json ContentType. +type DownloadReportJSONRequestBody = InvoiceEmailLinkPinRequest + +// ValidatePinJSONRequestBody defines body for ValidatePin for application/json ContentType. +type ValidatePinJSONRequestBody = InvoiceEmailLinkPinRequest + +// UpdateSmtpConfigurationJSONRequestBody defines body for UpdateSmtpConfiguration for application/json ContentType. +type UpdateSmtpConfigurationJSONRequestBody = SmtpConfigurationRequest + +// DisableAccessToEntitiesInTransferJSONRequestBody defines body for DisableAccessToEntitiesInTransfer for application/json ContentType. +type DisableAccessToEntitiesInTransferJSONRequestBody = DisableAccessToEntitiesInTransferRequest + +// UsersExistJSONRequestBody defines body for UsersExist for application/json ContentType. +type UsersExistJSONRequestBody = UsersExistRequest + +// HandleTransferCompletedFailureJSONRequestBody defines body for HandleTransferCompletedFailure for application/json ContentType. +type HandleTransferCompletedFailureJSONRequestBody = WorkspaceTransferFailedRequest + +// HandleTransferCompletedSuccessJSONRequestBody defines body for HandleTransferCompletedSuccess for application/json ContentType. +type HandleTransferCompletedSuccessJSONRequestBody = WorkspaceTransferFinishedRequest + +// GetUserInfoJSONRequestBody defines body for GetUserInfo for application/json ContentType. +type GetUserInfoJSONRequestBody = UsersIdsRequest + +// GetUserMembershipsAndInvitesJSONRequestBody defines body for GetUserMembershipsAndInvites for application/json ContentType. +type GetUserMembershipsAndInvitesJSONRequestBody = LimboTokenRequest + +// AddNotificationsMultipartRequestBody defines body for AddNotifications for multipart/form-data ContentType. +type AddNotificationsMultipartRequestBody AddNotificationsMultipartBody + +// UpdateNewsMultipartRequestBody defines body for UpdateNews for multipart/form-data ContentType. +type UpdateNewsMultipartRequestBody UpdateNewsMultipartBody + +// BulkEditUsersJSONRequestBody defines body for BulkEditUsers for application/json ContentType. +type BulkEditUsersJSONRequestBody = BulkEditUsersRequest + +// GetInfoJSONRequestBody defines body for GetInfo for application/json ContentType. +type GetInfoJSONRequestBody = UsersIdsRequest + +// GetUserNamesJSONRequestBody defines body for GetUserNames for application/json ContentType. +type GetUserNamesJSONRequestBody = UsersIdsRequest + +// GetUsersForProjectMembersFilterJSONRequestBody defines body for GetUsersForProjectMembersFilter for application/json ContentType. +type GetUsersForProjectMembersFilterJSONRequestBody = UserReportFilterRequest + +// GetUsersForAttendanceReportFilter1JSONRequestBody defines body for GetUsersForAttendanceReportFilter1 for application/json ContentType. +type GetUsersForAttendanceReportFilter1JSONRequestBody = UserAttendanceReportFilterRequest + +// GetUsersForReportFilterJSONRequestBody defines body for GetUsersForReportFilter for application/json ContentType. +type GetUsersForReportFilterJSONRequestBody = UserReportFilterRequest + +// UpdateTimeTrackingSettings1JSONRequestBody defines body for UpdateTimeTrackingSettings1 for application/json ContentType. +type UpdateTimeTrackingSettings1JSONRequestBody = UpdateCompactViewSettings + +// UpdateDashboardSelectionJSONRequestBody defines body for UpdateDashboardSelection for application/json ContentType. +type UpdateDashboardSelectionJSONRequestBody = UpdateDashboardSelection + +// DeleteUserJSONRequestBody defines body for DeleteUser for application/json ContentType. +type DeleteUserJSONRequestBody = UserDeleteRequest + +// ChangeEmailJSONRequestBody defines body for ChangeEmail for application/json ContentType. +type ChangeEmailJSONRequestBody = ChangeEmailRequest + +// UpdateLangJSONRequestBody defines body for UpdateLang for application/json ContentType. +type UpdateLangJSONRequestBody = UpdateLangRequest + +// MarkAsRead1JSONRequestBody defines body for MarkAsRead1 for application/json ContentType. +type MarkAsRead1JSONRequestBody = UserNotificationMarkAsReadManyRequest + +// MarkAsReadJSONRequestBody defines body for MarkAsRead for application/json ContentType. +type MarkAsReadJSONRequestBody = UserNotificationMarkAsReadRequest + +// ChangeNameAdminJSONRequestBody defines body for ChangeNameAdmin for application/json ContentType. +type ChangeNameAdminJSONRequestBody = ChangeUsernameRequest + +// ReadNewsJSONRequestBody defines body for ReadNews for application/json ContentType. +type ReadNewsJSONRequestBody = ReadNewsRequest + +// UpdatePictureJSONRequestBody defines body for UpdatePicture for application/json ContentType. +type UpdatePictureJSONRequestBody = AddProfilePictureRequest + +// UpdateNameAndProfilePictureJSONRequestBody defines body for UpdateNameAndProfilePicture for application/json ContentType. +type UpdateNameAndProfilePictureJSONRequestBody = UpdateNameAndProfilePictureRequest + +// UpdateSettingsJSONRequestBody defines body for UpdateSettings for application/json ContentType. +type UpdateSettingsJSONRequestBody = UpdateUserSettingsRequest + +// UpdateSummaryReportSettingsJSONRequestBody defines body for UpdateSummaryReportSettings for application/json ContentType. +type UpdateSummaryReportSettingsJSONRequestBody = UpdateSummaryReportSettingsRequest + +// UpdateTimeTrackingSettingsJSONRequestBody defines body for UpdateTimeTrackingSettings for application/json ContentType. +type UpdateTimeTrackingSettingsJSONRequestBody = UpdateTimeTrackingSettingsRequest + +// UpdateTimezoneJSONRequestBody defines body for UpdateTimezone for application/json ContentType. +type UpdateTimezoneJSONRequestBody = UpdateTimezoneRequest + +// MarkNotificationsAsReadJSONRequestBody defines body for MarkNotificationsAsRead for application/json ContentType. +type MarkNotificationsAsReadJSONRequestBody = UserNotificationMarkAsReadManyRequest + +// UploadImageMultipartRequestBody defines body for UploadImage for multipart/form-data ContentType. +type UploadImageMultipartRequestBody UploadImageMultipartBody + +// FinishWalkthroughJSONRequestBody defines body for FinishWalkthrough for application/json ContentType. +type FinishWalkthroughJSONRequestBody = WalkthroughCreationRequest + +// CreateJSONRequestBody defines body for Create for application/json ContentType. +type CreateJSONRequestBody = CreateWorkspaceRequest + +// InsertLegacyPlanNotificationsJSONRequestBody defines body for InsertLegacyPlanNotifications for application/json ContentType. +type InsertLegacyPlanNotificationsJSONRequestBody = LegacyPlanNotificationRequest + +// GetPermissionsToUserForWorkspacesJSONRequestBody defines body for GetPermissionsToUserForWorkspaces for application/json ContentType. +type GetPermissionsToUserForWorkspacesJSONRequestBody = GetWorkspacesAuthorizationsForUserRequest + +// UpdateWorkspaceJSONRequestBody defines body for UpdateWorkspace for application/json ContentType. +type UpdateWorkspaceJSONRequestBody = UpdateWorkspaceRequest + +// UninstallJSONRequestBody defines body for Uninstall for application/json ContentType. +type UninstallJSONRequestBody = AddonUninstallRequest + +// InstallJSONRequestBody defines body for Install for application/json ContentType. +type InstallJSONRequestBody = AddonInstallRequest + +// GetInstalledAddonsByKeysJSONRequestBody defines body for GetInstalledAddonsByKeys for application/json ContentType. +type GetInstalledAddonsByKeysJSONRequestBody = AddonKeysRequest + +// UpdateSettings1JSONRequestBody defines body for UpdateSettings1 for application/json ContentType. +type UpdateSettings1JSONRequestBody = AddonUpdateSettingsRequest + +// UpdateStatus3JSONRequestBody defines body for UpdateStatus3 for application/json ContentType. +type UpdateStatus3JSONRequestBody = AddonUpdateStatusRequest + +// Create20JSONRequestBody defines body for Create20 for application/json ContentType. +type Create20JSONRequestBody = CreateAlertRequest + +// Update11JSONRequestBody defines body for Update11 for application/json ContentType. +type Update11JSONRequestBody = CreateAlertRequest + +// ApproveRequestsJSONRequestBody defines body for ApproveRequests for application/json ContentType. +type ApproveRequestsJSONRequestBody = ApproveRequestsRequest + +// CountJSONRequestBody defines body for Count for application/json ContentType. +type CountJSONRequestBody = GetCountRequest + +// RemindManagersToApproveJSONRequestBody defines body for RemindManagersToApprove for application/json ContentType. +type RemindManagersToApproveJSONRequestBody = RemindToApproveRequest + +// RemindUsersToSubmitJSONRequestBody defines body for RemindUsersToSubmit for application/json ContentType. +type RemindUsersToSubmitJSONRequestBody = RemindToSubmitAndTrackRequest + +// GetApprovalGroupsJSONRequestBody defines body for GetApprovalGroups for application/json ContentType. +type GetApprovalGroupsJSONRequestBody = GetApprovalsRequest + +// GetUnsubmittedSummariesJSONRequestBody defines body for GetUnsubmittedSummaries for application/json ContentType. +type GetUnsubmittedSummariesJSONRequestBody = GetUnsubmittedEntriesDurationRequest + +// UpdateStatus2JSONRequestBody defines body for UpdateStatus2 for application/json ContentType. +type UpdateStatus2JSONRequestBody = UpdateApprovalRequest + +// FetchCustomAttributesJSONRequestBody defines body for FetchCustomAttributes for application/json ContentType. +type FetchCustomAttributesJSONRequestBody = FetchCustomAttributesRequest + +// DeleteMany3JSONRequestBody defines body for DeleteMany3 for application/json ContentType. +type DeleteMany3JSONRequestBody = ClientIdsRequest + +// UpdateMany2JSONRequestBody defines body for UpdateMany2 for application/json ContentType. +type UpdateMany2JSONRequestBody = UpdateManyClientsRequest + +// Create19JSONRequestBody defines body for Create19 for application/json ContentType. +type Create19JSONRequestBody = CreateClientRequest + +// GetArchivePermissionsJSONRequestBody defines body for GetArchivePermissions for application/json ContentType. +type GetArchivePermissionsJSONRequestBody = ClientIdsRequest + +// HaveRelatedTasksJSONRequestBody defines body for HaveRelatedTasks for application/json ContentType. +type HaveRelatedTasksJSONRequestBody = ClientIdsRequest + +// GetClientsOfIdsJSONRequestBody defines body for GetClientsOfIds for application/json ContentType. +type GetClientsOfIdsJSONRequestBody = ClientIdsRequest + +// GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody defines body for GetTimeOffPoliciesAndHolidaysForClient for application/json ContentType. +type GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody = ClientIdsRequest + +// Update10JSONRequestBody defines body for Update10 for application/json ContentType. +type Update10JSONRequestBody = UpdateClientRequest + +// SetCostRate2JSONRequestBody defines body for SetCostRate2 for application/json ContentType. +type SetCostRate2JSONRequestBody = CostRateRequest + +// CreateCurrencyJSONRequestBody defines body for CreateCurrency for application/json ContentType. +type CreateCurrencyJSONRequestBody = CreateCurrencyRequest + +// UpdateCurrencyCodeJSONRequestBody defines body for UpdateCurrencyCode for application/json ContentType. +type UpdateCurrencyCodeJSONRequestBody = UpdateCurrencyCodeRequest + +// SetCurrencyJSONRequestBody defines body for SetCurrency for application/json ContentType. +type SetCurrencyJSONRequestBody = UpdateDefaultWorkspaceCurrencyRequest + +// Create18JSONRequestBody defines body for Create18 for application/json ContentType. +type Create18JSONRequestBody = CustomFieldRequest + +// EditJSONRequestBody defines body for Edit for application/json ContentType. +type EditJSONRequestBody = UpdateCustomFieldRequest + +// EditDefaultValuesJSONRequestBody defines body for EditDefaultValues for application/json ContentType. +type EditDefaultValuesJSONRequestBody = CustomFieldProjectDefaultValuesRequest + +// UpdateCustomLabelsJSONRequestBody defines body for UpdateCustomLabels for application/json ContentType. +type UpdateCustomLabelsJSONRequestBody = CustomLabelsRequest + +// AddEmailJSONRequestBody defines body for AddEmail for application/json ContentType. +type AddEmailJSONRequestBody = AddEmailRequest + +// DeleteManyExpensesJSONRequestBody defines body for DeleteManyExpenses for application/json ContentType. +type DeleteManyExpensesJSONRequestBody = ExpensesIdsRequest + +// CreateExpenseMultipartRequestBody defines body for CreateExpense for multipart/form-data ContentType. +type CreateExpenseMultipartRequestBody = CreateExpenseRequest + +// Create17JSONRequestBody defines body for Create17 for application/json ContentType. +type Create17JSONRequestBody = ExpenseCategoryRequest + +// UpdateCategoryJSONRequestBody defines body for UpdateCategory for application/json ContentType. +type UpdateCategoryJSONRequestBody = ExpenseCategoryRequest + +// UpdateStatus1JSONRequestBody defines body for UpdateStatus1 for application/json ContentType. +type UpdateStatus1JSONRequestBody = ExpenseCategoryArchiveRequest + +// UpdateInvoicedStatus1JSONRequestBody defines body for UpdateInvoicedStatus1 for application/json ContentType. +type UpdateInvoicedStatus1JSONRequestBody = UpdateInvoicedStatusRequest + +// RestoreManyExpensesJSONRequestBody defines body for RestoreManyExpenses for application/json ContentType. +type RestoreManyExpensesJSONRequestBody = ExpensesIdsRequest + +// UpdateExpenseMultipartRequestBody defines body for UpdateExpense for multipart/form-data ContentType. +type UpdateExpenseMultipartRequestBody = UpdateExpenseRequest + +// ImportFileDataJSONRequestBody defines body for ImportFileData for application/json ContentType. +type ImportFileDataJSONRequestBody = FileImportRequest + +// Create16JSONRequestBody defines body for Create16 for application/json ContentType. +type Create16JSONRequestBody = HolidayRequest + +// Update9JSONRequestBody defines body for Update9 for application/json ContentType. +type Update9JSONRequestBody = HolidayRequest + +// SetHourlyRate2JSONRequestBody defines body for SetHourlyRate2 for application/json ContentType. +type SetHourlyRate2JSONRequestBody = HourlyRateRequest + +// GetInvitedEmailsInfoJSONRequestBody defines body for GetInvitedEmailsInfo for application/json ContentType. +type GetInvitedEmailsInfoJSONRequestBody = UserEmailsRequest + +// UpsertInvoiceEmailTemplateJSONRequestBody defines body for UpsertInvoiceEmailTemplate for application/json ContentType. +type UpsertInvoiceEmailTemplateJSONRequestBody = CreateInvoiceEmailTemplateRequest + +// SendInvoiceEmailJSONRequestBody defines body for SendInvoiceEmail for application/json ContentType. +type SendInvoiceEmailJSONRequestBody = SendInvoiceEmailRequest + +// CreateInvoiceJSONRequestBody defines body for CreateInvoice for application/json ContentType. +type CreateInvoiceJSONRequestBody = CreateInvoiceRequest + +// CreateCompanyJSONRequestBody defines body for CreateCompany for application/json ContentType. +type CreateCompanyJSONRequestBody = CompanyRequest + +// UpdateCompaniesInWorkspaceJSONRequestBody defines body for UpdateCompaniesInWorkspace for application/json ContentType. +type UpdateCompaniesInWorkspaceJSONRequestBody = BulkUpdateCompaniesRequest + +// UpdateCompanyJSONRequestBody defines body for UpdateCompany for application/json ContentType. +type UpdateCompanyJSONRequestBody = CompanyRequest + +// GetInvoicesInfoJSONRequestBody defines body for GetInvoicesInfo for application/json ContentType. +type GetInvoicesInfoJSONRequestBody = InvoiceFilterRequest + +// CreateInvoiceItemTypeJSONRequestBody defines body for CreateInvoiceItemType for application/json ContentType. +type CreateInvoiceItemTypeJSONRequestBody = CreateInvoiceItemTypeRequest + +// UpdateInvoiceItemTypeJSONRequestBody defines body for UpdateInvoiceItemType for application/json ContentType. +type UpdateInvoiceItemTypeJSONRequestBody = UpdateInvoiceItemTypeRequest + +// UpdateInvoicePermissionsJSONRequestBody defines body for UpdateInvoicePermissions for application/json ContentType. +type UpdateInvoicePermissionsJSONRequestBody = InvoicePermissionsRequest + +// UpdateInvoiceSettingsJSONRequestBody defines body for UpdateInvoiceSettings for application/json ContentType. +type UpdateInvoiceSettingsJSONRequestBody = UpdateInvoiceSettingsRequest + +// UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType. +type UpdateInvoiceJSONRequestBody = UpdateInvoiceRequest + +// ImportTimeAndExpensesJSONRequestBody defines body for ImportTimeAndExpenses for application/json ContentType. +type ImportTimeAndExpensesJSONRequestBody = ImportTimeEntriesAndExpensesRequest + +// ReorderInvoiceItem1JSONRequestBody defines body for ReorderInvoiceItem1 for application/json ContentType. +type ReorderInvoiceItem1JSONRequestBody = ReorderInvoiceItemRequest + +// EditInvoiceItemJSONRequestBody defines body for EditInvoiceItem for application/json ContentType. +type EditInvoiceItemJSONRequestBody = UpdateInvoiceItemRequest + +// CreateInvoicePaymentJSONRequestBody defines body for CreateInvoicePayment for application/json ContentType. +type CreateInvoicePaymentJSONRequestBody = CreateInvoicePaymentRequest + +// ChangeInvoiceStatusJSONRequestBody defines body for ChangeInvoiceStatus for application/json ContentType. +type ChangeInvoiceStatusJSONRequestBody = ChangeInvoiceStatusRequest + +// UpdatePinCodeJSONRequestBody defines body for UpdatePinCode for application/json ContentType. +type UpdatePinCodeJSONRequestBody = UpdatePinCodeRequest + +// Create15JSONRequestBody defines body for Create15 for application/json ContentType. +type Create15JSONRequestBody = CreateKioskRequest + +// UpdateBreakDefaultsJSONRequestBody defines body for UpdateBreakDefaults for application/json ContentType. +type UpdateBreakDefaultsJSONRequestBody = BulkUpdateKioskDefaultsRequest + +// UpdateDefaultsJSONRequestBody defines body for UpdateDefaults for application/json ContentType. +type UpdateDefaultsJSONRequestBody = BulkUpdateKioskDefaultsRequest + +// GetWithProjectJSONRequestBody defines body for GetWithProject for application/json ContentType. +type GetWithProjectJSONRequestBody = ProjectIdsRequest + +// GetWithTaskJSONRequestBody defines body for GetWithTask for application/json ContentType. +type GetWithTaskJSONRequestBody = TaskIdsRequest + +// Update8JSONRequestBody defines body for Update8 for application/json ContentType. +type Update8JSONRequestBody = UpdateKioskRequest + +// UpdateStatusJSONRequestBody defines body for UpdateStatus for application/json ContentType. +type UpdateStatusJSONRequestBody = UpdateKioskStatusRequest + +// AddLimitedUsersJSONRequestBody defines body for AddLimitedUsers for application/json ContentType. +type AddLimitedUsersJSONRequestBody = AddLimitedUserToWorkspaceRequest + +// UpdateMemberProfileJSONRequestBody defines body for UpdateMemberProfile for application/json ContentType. +type UpdateMemberProfileJSONRequestBody = MemberProfileRequest + +// UpdateMemberProfileWithAdditionalDataJSONRequestBody defines body for UpdateMemberProfileWithAdditionalData for application/json ContentType. +type UpdateMemberProfileWithAdditionalDataJSONRequestBody = MemberProfileFullRequest + +// UpdateMemberSettingsJSONRequestBody defines body for UpdateMemberSettings for application/json ContentType. +type UpdateMemberSettingsJSONRequestBody = MemberSettingsRequest + +// UpdateMemberWorkingDaysAndCapacityJSONRequestBody defines body for UpdateMemberWorkingDaysAndCapacity for application/json ContentType. +type UpdateMemberWorkingDaysAndCapacityJSONRequestBody = MemberSettingsRequest + +// FindNotInvitedEmailsInJSONRequestBody defines body for FindNotInvitedEmailsIn for application/json ContentType. +type FindNotInvitedEmailsInJSONRequestBody = UserEmailsRequest + +// Create14JSONRequestBody defines body for Create14 for application/json ContentType. +type Create14JSONRequestBody = CreateOrganizationRequest + +// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType. +type UpdateOrganizationJSONRequestBody = OrganizationRequest + +// UpdateOAuth2Configuration1JSONRequestBody defines body for UpdateOAuth2Configuration1 for application/json ContentType. +type UpdateOAuth2Configuration1JSONRequestBody = OAuthConfigurationRequest + +// TestOAuth2ConfigurationJSONRequestBody defines body for TestOAuth2Configuration for application/json ContentType. +type TestOAuth2ConfigurationJSONRequestBody = OAuthConfigurationRequest + +// UpdateSAML2ConfigurationJSONRequestBody defines body for UpdateSAML2Configuration for application/json ContentType. +type UpdateSAML2ConfigurationJSONRequestBody = SAML2ConfigurationRequest + +// TestSAML2ConfigurationJSONRequestBody defines body for TestSAML2Configuration for application/json ContentType. +type TestSAML2ConfigurationJSONRequestBody = SAML2ConfigurationRequest + +// TransferOwnershipJSONRequestBody defines body for TransferOwnership for application/json ContentType. +type TransferOwnershipJSONRequestBody = TransferOwnerRequest + +// CancelSubscriptionJSONRequestBody defines body for CancelSubscription for application/json ContentType. +type CancelSubscriptionJSONRequestBody = CancellationReasonDto + +// CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType. +type CreateCustomerJSONRequestBody = CustomerRequest + +// UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType. +type UpdateCustomerJSONRequestBody UpdateCustomerJSONBody + +// EditInvoiceInformationJSONRequestBody defines body for EditInvoiceInformation for application/json ContentType. +type EditInvoiceInformationJSONRequestBody = CustomerBillingRequest + +// EditPaymentInformationJSONRequestBody defines body for EditPaymentInformation for application/json ContentType. +type EditPaymentInformationJSONRequestBody = PaymentRequest + +// InitialUpgradeJSONRequestBody defines body for InitialUpgrade for application/json ContentType. +type InitialUpgradeJSONRequestBody = InitialPriceRequest + +// CreateSetupIntentForPaymentMethodJSONRequestBody defines body for CreateSetupIntentForPaymentMethod for application/json ContentType. +type CreateSetupIntentForPaymentMethodJSONRequestBody CreateSetupIntentForPaymentMethodJSONBody + +// UpdateUserSeatsJSONRequestBody defines body for UpdateUserSeats for application/json ContentType. +type UpdateUserSeatsJSONRequestBody = UpdateQuantityRequest + +// CreateSetupIntentForInitialSubscriptionJSONRequestBody defines body for CreateSetupIntentForInitialSubscription for application/json ContentType. +type CreateSetupIntentForInitialSubscriptionJSONRequestBody CreateSetupIntentForInitialSubscriptionJSONBody + +// CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType. +type CreateSubscriptionJSONRequestBody CreateSubscriptionJSONBody + +// UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType. +type UpdateSubscriptionJSONRequestBody = PaymentRequest + +// DeleteSubscriptionJSONRequestBody defines body for DeleteSubscription for application/json ContentType. +type DeleteSubscriptionJSONRequestBody = TerminateSubscriptionRequest + +// GetProjectAndTaskJSONRequestBody defines body for GetProjectAndTask for application/json ContentType. +type GetProjectAndTaskJSONRequestBody = ProjectTaskRequest + +// DeleteMany2JSONRequestBody defines body for DeleteMany2 for application/json ContentType. +type DeleteMany2JSONRequestBody = ProjectIdsRequest + +// UpdateMany1JSONRequestBody defines body for UpdateMany1 for application/json ContentType. +type UpdateMany1JSONRequestBody = PatchProjectRequest + +// Create12JSONRequestBody defines body for Create12 for application/json ContentType. +type Create12JSONRequestBody = CreateProjectRequest + +// GetFilteredProjectsJSONRequestBody defines body for GetFilteredProjects for application/json ContentType. +type GetFilteredProjectsJSONRequestBody = ProjectFilterRequest + +// CreateFromTemplateJSONRequestBody defines body for CreateFromTemplate for application/json ContentType. +type CreateFromTemplateJSONRequestBody = CreateFromTemplateRequest + +// GetProjectJSONRequestBody defines body for GetProject for application/json ContentType. +type GetProjectJSONRequestBody = ProjectIdsRequest + +// GetProjectsForReportFilterJSONRequestBody defines body for GetProjectsForReportFilter for application/json ContentType. +type GetProjectsForReportFilterJSONRequestBody = ProjectReportFilterRequest + +// GetProjectIdsForReportFilterJSONRequestBody defines body for GetProjectIdsForReportFilter for application/json ContentType. +type GetProjectIdsForReportFilterJSONRequestBody = ProjectReportFilterRequest + +// GetTasksByIdsJSONRequestBody defines body for GetTasksByIds for application/json ContentType. +type GetTasksByIdsJSONRequestBody = TaskIdsRequest + +// GetAllTasksJSONRequestBody defines body for GetAllTasks for application/json ContentType. +type GetAllTasksJSONRequestBody = GetAllTasksJSONBody + +// GetTasksJSONRequestBody defines body for GetTasks for application/json ContentType. +type GetTasksJSONRequestBody = GetTasksJSONBody + +// GetTasksForReportFilterJSONRequestBody defines body for GetTasksForReportFilter for application/json ContentType. +type GetTasksForReportFilterJSONRequestBody = TaskReportFilterRequest + +// GetTaskIdsForReportFilterJSONRequestBody defines body for GetTaskIdsForReportFilter for application/json ContentType. +type GetTaskIdsForReportFilterJSONRequestBody = TaskReportFilterRequest + +// GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody defines body for GetTimeOffPoliciesAndHolidaysWithProjects for application/json ContentType. +type GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody = ProjectIdsRequest + +// GetPermissionsToUserForProjectsJSONRequestBody defines body for GetPermissionsToUserForProjects for application/json ContentType. +type GetPermissionsToUserForProjectsJSONRequestBody = GetProjectsAuthorizationsForUserRequest + +// Update14JSONRequestBody defines body for Update14 for application/json ContentType. +type Update14JSONRequestBody = ProjectPatchRequest + +// Update6JSONRequestBody defines body for Update6 for application/json ContentType. +type Update6JSONRequestBody = UpdateProjectRequest + +// SetCostRate1JSONRequestBody defines body for SetCostRate1 for application/json ContentType. +type SetCostRate1JSONRequestBody = CostRateRequest + +// UpdateEstimateJSONRequestBody defines body for UpdateEstimate for application/json ContentType. +type UpdateEstimateJSONRequestBody = ProjectEstimateRequest + +// SetHourlyRate1JSONRequestBody defines body for SetHourlyRate1 for application/json ContentType. +type SetHourlyRate1JSONRequestBody = HourlyRateRequest + +// Create13JSONRequestBody defines body for Create13 for application/json ContentType. +type Create13JSONRequestBody = TaskRequest + +// GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody defines body for GetTimeOffPoliciesAndHolidaysWithTasks for application/json ContentType. +type GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody = TaskIdsRequest + +// Update7JSONRequestBody defines body for Update7 for application/json ContentType. +type Update7JSONRequestBody = UpdateTaskRequest + +// SetCostRateJSONRequestBody defines body for SetCostRate for application/json ContentType. +type SetCostRateJSONRequestBody = CostRateRequest + +// SetHourlyRateJSONRequestBody defines body for SetHourlyRate for application/json ContentType. +type SetHourlyRateJSONRequestBody = HourlyRateRequest + +// AddUsers1JSONRequestBody defines body for AddUsers1 for application/json ContentType. +type AddUsers1JSONRequestBody = AddUsersToProjectRequest + +// AddUsersCostRate1JSONRequestBody defines body for AddUsersCostRate1 for application/json ContentType. +type AddUsersCostRate1JSONRequestBody = CostRateRequest + +// AddUsersHourlyRate1JSONRequestBody defines body for AddUsersHourlyRate1 for application/json ContentType. +type AddUsersHourlyRate1JSONRequestBody = HourlyRateRequest + +// RemovePermissionsToUserJSONRequestBody defines body for RemovePermissionsToUser for application/json ContentType. +type RemovePermissionsToUserJSONRequestBody = AddAndRemoveProjectPermissionsRequest + +// AddPermissionsToUserJSONRequestBody defines body for AddPermissionsToUser for application/json ContentType. +type AddPermissionsToUserJSONRequestBody = AddAndRemoveProjectPermissionsRequest + +// ConnectJSONRequestBody defines body for Connect for application/json ContentType. +type ConnectJSONRequestBody = PumbleIntegrationRequest + +// SyncClientsJSONRequestBody defines body for SyncClients for application/json ContentType. +type SyncClientsJSONRequestBody = SyncClientsRequest + +// SyncProjectsJSONRequestBody defines body for SyncProjects for application/json ContentType. +type SyncProjectsJSONRequestBody = SyncProjectsRequest + +// UpdateProjectsJSONRequestBody defines body for UpdateProjects for application/json ContentType. +type UpdateProjectsJSONRequestBody = UpdateProjectsRequest + +// Create11JSONRequestBody defines body for Create11 for application/json ContentType. +type Create11JSONRequestBody = CreateReminderRequest + +// Update5JSONRequestBody defines body for Update5 for application/json ContentType. +type Update5JSONRequestBody = CreateReminderRequest + +// GetDashboardInfoJSONRequestBody defines body for GetDashboardInfo for application/json ContentType. +type GetDashboardInfoJSONRequestBody = GetMainReportRequest + +// GetDraftAssignmentsCountJSONRequestBody defines body for GetDraftAssignmentsCount for application/json ContentType. +type GetDraftAssignmentsCountJSONRequestBody = GetDraftCountRequest + +// GetFilteredProjectTotalsJSONRequestBody defines body for GetFilteredProjectTotals for application/json ContentType. +type GetFilteredProjectTotalsJSONRequestBody = ProjectTotalsRequest + +// PublishAssignmentsJSONRequestBody defines body for PublishAssignments for application/json ContentType. +type PublishAssignmentsJSONRequestBody = PublishAssignmentsRequest + +// CreateRecurringJSONRequestBody defines body for CreateRecurring for application/json ContentType. +type CreateRecurringJSONRequestBody = AssignmentCreateRequest + +// EditRecurringJSONRequestBody defines body for EditRecurring for application/json ContentType. +type EditRecurringJSONRequestBody = AssignmentUpdateRequest + +// EditPeriodForRecurringJSONRequestBody defines body for EditPeriodForRecurring for application/json ContentType. +type EditPeriodForRecurringJSONRequestBody = AssignmentPeriodRequest + +// EditRecurringPeriodJSONRequestBody defines body for EditRecurringPeriod for application/json ContentType. +type EditRecurringPeriodJSONRequestBody = RecurringAssignmentRequest + +// GetUserTotalsJSONRequestBody defines body for GetUserTotals for application/json ContentType. +type GetUserTotalsJSONRequestBody = GetUserTotalsRequest + +// GetFilteredAssignmentsForUserJSONRequestBody defines body for GetFilteredAssignmentsForUser for application/json ContentType. +type GetFilteredAssignmentsForUserJSONRequestBody = UserAssignmentsRequest + +// CopyAssignmentJSONRequestBody defines body for CopyAssignment for application/json ContentType. +type CopyAssignmentJSONRequestBody = CopyAssignmentRequest + +// SplitAssignmentJSONRequestBody defines body for SplitAssignment for application/json ContentType. +type SplitAssignmentJSONRequestBody = SplitAssignmentRequest + +// ShiftScheduleJSONRequestBody defines body for ShiftSchedule for application/json ContentType. +type ShiftScheduleJSONRequestBody = ShiftScheduleRequest + +// Create10JSONRequestBody defines body for Create10 for application/json ContentType. +type Create10JSONRequestBody = MilestoneCreateRequest + +// Edit1JSONRequestBody defines body for Edit1 for application/json ContentType. +type Edit1JSONRequestBody = MilestoneUpdateRequest + +// EditDateJSONRequestBody defines body for EditDate for application/json ContentType. +type EditDateJSONRequestBody = MilestoneDateRequest + +// UpdateSidebarJSONRequestBody defines body for UpdateSidebar for application/json ContentType. +type UpdateSidebarJSONRequestBody = UpdateSidebarRequest + +// FilterUsersByStatusJSONRequestBody defines body for FilterUsersByStatus for application/json ContentType. +type FilterUsersByStatusJSONRequestBody = FilterUsersByStatusJSONBody + +// Delete9JSONRequestBody defines body for Delete9 for application/json ContentType. +type Delete9JSONRequestBody = DiscardStopwatchRequest + +// StopJSONRequestBody defines body for Stop for application/json ContentType. +type StopJSONRequestBody = StopStopwatchRequest + +// StartJSONRequestBody defines body for Start for application/json ContentType. +type StartJSONRequestBody = StartStopwatchRequest + +// DeleteMany1JSONRequestBody defines body for DeleteMany1 for application/json ContentType. +type DeleteMany1JSONRequestBody = TagIdsRequest + +// UpdateManyJSONRequestBody defines body for UpdateMany for application/json ContentType. +type UpdateManyJSONRequestBody = UpdateManyTagsRequest + +// Create9JSONRequestBody defines body for Create9 for application/json ContentType. +type Create9JSONRequestBody = TagRequest + +// ConnectedToApprovedEntriesJSONRequestBody defines body for ConnectedToApprovedEntries for application/json ContentType. +type ConnectedToApprovedEntriesJSONRequestBody = TagIdsRequest + +// GetTagsOfIdsJSONRequestBody defines body for GetTagsOfIds for application/json ContentType. +type GetTagsOfIdsJSONRequestBody = TagIdsRequest + +// Update4JSONRequestBody defines body for Update4 for application/json ContentType. +type Update4JSONRequestBody = TagRequest + +// Create8JSONRequestBody defines body for Create8 for application/json ContentType. +type Create8JSONRequestBody = TemplateRequest + +// Update13JSONRequestBody defines body for Update13 for application/json ContentType. +type Update13JSONRequestBody = TemplatePatchRequest + +// ActivateJSONRequestBody defines body for Activate for application/json ContentType. +type ActivateJSONRequestBody = ActivateTemplateRequest + +// DeactivateJSONRequestBody defines body for Deactivate for application/json ContentType. +type DeactivateJSONRequestBody = ActivateTemplateRequest + +// CopyTimeEntriesJSONRequestBody defines body for CopyTimeEntries for application/json ContentType. +type CopyTimeEntriesJSONRequestBody = CopyEntriesRequest + +// UpdateBalanceJSONRequestBody defines body for UpdateBalance for application/json ContentType. +type UpdateBalanceJSONRequestBody = ChangeBalanceRequest + +// CreatePolicyJSONRequestBody defines body for CreatePolicy for application/json ContentType. +type CreatePolicyJSONRequestBody = CreatePolicyRequest + +// UpdatePolicyJSONRequestBody defines body for UpdatePolicy for application/json ContentType. +type UpdatePolicyJSONRequestBody = UpdatePolicyRequest + +// Create7JSONRequestBody defines body for Create7 for application/json ContentType. +type Create7JSONRequestBody = CreateTimeOffRequestRequest + +// RejectJSONRequestBody defines body for Reject for application/json ContentType. +type RejectJSONRequestBody = RejectTimeOffRequestRequest + +// CreateForOther1JSONRequestBody defines body for CreateForOther1 for application/json ContentType. +type CreateForOther1JSONRequestBody = CreateTimeOffRequestRequest + +// Get1JSONRequestBody defines body for Get1 for application/json ContentType. +type Get1JSONRequestBody = GetTimeOffRequestsRequest + +// GetJSONRequestBody defines body for Get for application/json ContentType. +type GetJSONRequestBody = GetTimelineRequest + +// GetTimelineForReportsJSONRequestBody defines body for GetTimelineForReports for application/json ContentType. +type GetTimelineForReportsJSONRequestBody = GetTimelineRequest + +// DeleteManyJSONRequestBody defines body for DeleteMany for application/json ContentType. +type DeleteManyJSONRequestBody = TimeEntryIdsRequest + +// Create6JSONRequestBody defines body for Create6 for application/json ContentType. +type Create6JSONRequestBody = CreateTimeEntryRequest + +// PatchTimeEntriesJSONRequestBody defines body for PatchTimeEntries for application/json ContentType. +type PatchTimeEntriesJSONRequestBody = TimeEntriesPatchRequest + +// EndStartedJSONRequestBody defines body for EndStarted for application/json ContentType. +type EndStartedJSONRequestBody = UpdateTimeEntryEndRequest + +// CreateFull1JSONRequestBody defines body for CreateFull1 for application/json ContentType. +type CreateFull1JSONRequestBody = CreateTimeEntryRequest + +// UpdateInvoicedStatusJSONRequestBody defines body for UpdateInvoicedStatus for application/json ContentType. +type UpdateInvoicedStatusJSONRequestBody = UpdateInvoicedStatusRequest + +// RestoreTimeEntriesJSONRequestBody defines body for RestoreTimeEntries for application/json ContentType. +type RestoreTimeEntriesJSONRequestBody = TimeEntryIdsRequest + +// CreateForManyJSONRequestBody defines body for CreateForMany for application/json ContentType. +type CreateForManyJSONRequestBody = CreateTimeEntryForManyRequest + +// CreateForOthersJSONRequestBody defines body for CreateForOthers for application/json ContentType. +type CreateForOthersJSONRequestBody = CreateTimeEntryRequest + +// CreateFullJSONRequestBody defines body for CreateFull for application/json ContentType. +type CreateFullJSONRequestBody = CreateTimeEntryRequest + +// PatchJSONRequestBody defines body for Patch for application/json ContentType. +type PatchJSONRequestBody PatchJSONBody + +// Update3JSONRequestBody defines body for Update3 for application/json ContentType. +type Update3JSONRequestBody = UpdateTimeEntryRequest + +// CreateTimeEntryAttributeJSONRequestBody defines body for CreateTimeEntryAttribute for application/json ContentType. +type CreateTimeEntryAttributeJSONRequestBody = CreateCustomAttributeRequest + +// DeleteTimeEntryAttributeJSONRequestBody defines body for DeleteTimeEntryAttribute for application/json ContentType. +type DeleteTimeEntryAttributeJSONRequestBody = DeleteCustomAttributeRequest + +// UpdateBillableJSONRequestBody defines body for UpdateBillable for application/json ContentType. +type UpdateBillableJSONRequestBody = UpdateTimeEntryBillableRequest + +// UpdateDescriptionJSONRequestBody defines body for UpdateDescription for application/json ContentType. +type UpdateDescriptionJSONRequestBody = UpdateTimeEntryDescriptionRequest + +// UpdateEndJSONRequestBody defines body for UpdateEnd for application/json ContentType. +type UpdateEndJSONRequestBody = UpdateTimeEntryEndRequest + +// UpdateFullJSONRequestBody defines body for UpdateFull for application/json ContentType. +type UpdateFullJSONRequestBody = UpdateTimeEntryRequest + +// UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType. +type UpdateProjectJSONRequestBody = UpdateTimeEntryProjectRequest + +// UpdateProjectAndTaskJSONRequestBody defines body for UpdateProjectAndTask for application/json ContentType. +type UpdateProjectAndTaskJSONRequestBody UpdateProjectAndTaskJSONBody + +// UpdateAndSplitJSONRequestBody defines body for UpdateAndSplit for application/json ContentType. +type UpdateAndSplitJSONRequestBody = TimeEntryPatchSplitRequest + +// SplitTimeEntryJSONRequestBody defines body for SplitTimeEntry for application/json ContentType. +type SplitTimeEntryJSONRequestBody = TimeEntrySplitRequest + +// UpdateStartJSONRequestBody defines body for UpdateStart for application/json ContentType. +type UpdateStartJSONRequestBody = UpdateTimeEntryStartRequest + +// UpdateTagsJSONRequestBody defines body for UpdateTags for application/json ContentType. +type UpdateTagsJSONRequestBody = UpdateTimeEntryTagsRequest + +// UpdateTimeIntervalJSONRequestBody defines body for UpdateTimeInterval for application/json ContentType. +type UpdateTimeIntervalJSONRequestBody = TimeEntriesDurationRequest + +// UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType. +type UpdateUserJSONRequestBody = UpdateTimeEntryUserRequest + +// UpdateCustomFieldJSONRequestBody defines body for UpdateCustomField for application/json ContentType. +type UpdateCustomFieldJSONRequestBody = UpdateCustomFieldRequest + +// PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody defines body for PenalizeCurrentTimerAndStartNewTimeEntry for application/json ContentType. +type PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody = PenalizeTimeEntryRequest + +// TransferWorkspaceDeprecatedFlowJSONRequestBody defines body for TransferWorkspaceDeprecatedFlow for application/json ContentType. +type TransferWorkspaceDeprecatedFlowJSONRequestBody = WorkspaceTransferDeprecatedRequest + +// TransferWorkspaceJSONRequestBody defines body for TransferWorkspace for application/json ContentType. +type TransferWorkspaceJSONRequestBody = WorkspaceTransferRequest + +// CopyTimeEntryCalendarDragJSONRequestBody defines body for CopyTimeEntryCalendarDrag for application/json ContentType. +type CopyTimeEntryCalendarDragJSONRequestBody = CreateTimeEntryRequest + +// Create5JSONRequestBody defines body for Create5 for application/json ContentType. +type Create5JSONRequestBody = CreateUserGroupRequest + +// GetUserGroupNamesJSONRequestBody defines body for GetUserGroupNames for application/json ContentType. +type GetUserGroupNamesJSONRequestBody = UsersIdsRequest + +// GetUserGroupForReportFilterPostJSONRequestBody defines body for GetUserGroupForReportFilterPost for application/json ContentType. +type GetUserGroupForReportFilterPostJSONRequestBody = UserGroupReportFilterRequest + +// GetUsersForAttendanceReportFilterJSONRequestBody defines body for GetUsersForAttendanceReportFilter for application/json ContentType. +type GetUsersForAttendanceReportFilterJSONRequestBody = UserGroupAttendanceFilterRequest + +// GetUserGroupsJSONRequestBody defines body for GetUserGroups for application/json ContentType. +type GetUserGroupsJSONRequestBody = GetUserGroupByIdsRequest + +// RemoveUserJSONRequestBody defines body for RemoveUser for application/json ContentType. +type RemoveUserJSONRequestBody = AddOrRemoveUsersFromUserGroups + +// AddUsersToUserGroupsFilterJSONRequestBody defines body for AddUsersToUserGroupsFilter for application/json ContentType. +type AddUsersToUserGroupsFilterJSONRequestBody = UpdateUsersFromUserGroupsRequest + +// Update2JSONRequestBody defines body for Update2 for application/json ContentType. +type Update2JSONRequestBody = UpdateUserGroupNameRequest + +// GetUsersJSONRequestBody defines body for GetUsers for application/json ContentType. +type GetUsersJSONRequestBody = GetUsersByIdsRequest + +// AddUsersJSONRequestBody defines body for AddUsers for application/json ContentType. +type AddUsersJSONRequestBody = AddUsersToWorkspaceRequest + +// SetMembershipsJSONRequestBody defines body for SetMemberships for application/json ContentType. +type SetMembershipsJSONRequestBody = SetWorkspaceMembershipStatusRequest + +// CreateDeprecatedJSONRequestBody defines body for CreateDeprecated for application/json ContentType. +type CreateDeprecatedJSONRequestBody = CreateApprovalRequest + +// GetApprovedTotalsJSONRequestBody defines body for GetApprovedTotals for application/json ContentType. +type GetApprovedTotalsJSONRequestBody = GetApprovalTotalsRequest + +// CreateForOtherDeprecatedJSONRequestBody defines body for CreateForOtherDeprecated for application/json ContentType. +type CreateForOtherDeprecatedJSONRequestBody = CreateApprovalRequest + +// GetPreviewJSONRequestBody defines body for GetPreview for application/json ContentType. +type GetPreviewJSONRequestBody = GetApprovalTotalsRequest + +// SetCostRateForUser1JSONRequestBody defines body for SetCostRateForUser1 for application/json ContentType. +type SetCostRateForUser1JSONRequestBody = CostRateRequest + +// UpsertUserCustomFieldValueJSONRequestBody defines body for UpsertUserCustomFieldValue for application/json ContentType. +type UpsertUserCustomFieldValueJSONRequestBody = UserCustomFieldPutRequest + +// CreateFavoriteTimeEntryJSONRequestBody defines body for CreateFavoriteTimeEntry for application/json ContentType. +type CreateFavoriteTimeEntryJSONRequestBody = CreateFavoriteEntriesRequest + +// ReorderInvoiceItemJSONRequestBody defines body for ReorderInvoiceItem for application/json ContentType. +type ReorderInvoiceItemJSONRequestBody = ReorderFavoriteEntriesRequest + +// Update1JSONRequestBody defines body for Update1 for application/json ContentType. +type Update1JSONRequestBody = UpdateFavoriteEntriesRequest + +// SetHourlyRateForUser1JSONRequestBody defines body for SetHourlyRateForUser1 for application/json ContentType. +type SetHourlyRateForUser1JSONRequestBody = HourlyRateRequest + +// ReSubmitJSONRequestBody defines body for ReSubmit for application/json ContentType. +type ReSubmitJSONRequestBody = SubmitApprovalRequest + +// UpdateUserRolesJSONRequestBody defines body for UpdateUserRoles for application/json ContentType. +type UpdateUserRolesJSONRequestBody = UpdateUserRolesRequest + +// Create2JSONRequestBody defines body for Create2 for application/json ContentType. +type Create2JSONRequestBody = SubmitApprovalRequest + +// CreateForOtherJSONRequestBody defines body for CreateForOther for application/json ContentType. +type CreateForOtherJSONRequestBody = SubmitApprovalRequest + +// Create1JSONRequestBody defines body for Create1 for application/json ContentType. +type Create1JSONRequestBody = WebhookRequest + +// UpdateJSONRequestBody defines body for Update for application/json ContentType. +type UpdateJSONRequestBody = WebhookRequest + +// AsPolicyFullDto returns the union data inside the PolicyDto as a PolicyFullDto +func (t PolicyDto) AsPolicyFullDto() (PolicyFullDto, error) { + var body PolicyFullDto + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromPolicyFullDto overwrites any union data inside the PolicyDto as the provided PolicyFullDto +func (t *PolicyDto) FromPolicyFullDto(v PolicyFullDto) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergePolicyFullDto performs a merge with any union data inside the PolicyDto, using the provided PolicyFullDto +func (t *PolicyDto) MergePolicyFullDto(v PolicyFullDto) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsPolicyRedactedDto returns the union data inside the PolicyDto as a PolicyRedactedDto +func (t PolicyDto) AsPolicyRedactedDto() (PolicyRedactedDto, error) { + var body PolicyRedactedDto + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromPolicyRedactedDto overwrites any union data inside the PolicyDto as the provided PolicyRedactedDto +func (t *PolicyDto) FromPolicyRedactedDto(v PolicyRedactedDto) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergePolicyRedactedDto performs a merge with any union data inside the PolicyDto, using the provided PolicyRedactedDto +func (t *PolicyDto) MergePolicyRedactedDto(v PolicyRedactedDto) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t PolicyDto) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + if err != nil { + return nil, err + } + object := make(map[string]json.RawMessage) + if t.union != nil { + err = json.Unmarshal(b, &object) + if err != nil { + return nil, err + } + } + + if t.AllowHalfDay != nil { + object["allowHalfDay"], err = json.Marshal(t.AllowHalfDay) + if err != nil { + return nil, fmt.Errorf("error marshaling 'allowHalfDay': %w", err) + } + } + + if t.AllowNegativeBalance != nil { + object["allowNegativeBalance"], err = json.Marshal(t.AllowNegativeBalance) + if err != nil { + return nil, fmt.Errorf("error marshaling 'allowNegativeBalance': %w", err) + } + } + + if t.Color != nil { + object["color"], err = json.Marshal(t.Color) + if err != nil { + return nil, fmt.Errorf("error marshaling 'color': %w", err) + } + } + + if t.Id != nil { + object["id"], err = json.Marshal(t.Id) + if err != nil { + return nil, fmt.Errorf("error marshaling 'id': %w", err) + } + } + + if t.Name != nil { + object["name"], err = json.Marshal(t.Name) + if err != nil { + return nil, fmt.Errorf("error marshaling 'name': %w", err) + } + } + + if t.NegativeBalance != nil { + object["negativeBalance"], err = json.Marshal(t.NegativeBalance) + if err != nil { + return nil, fmt.Errorf("error marshaling 'negativeBalance': %w", err) + } + } + + if t.TimeUnit != nil { + object["timeUnit"], err = json.Marshal(t.TimeUnit) + if err != nil { + return nil, fmt.Errorf("error marshaling 'timeUnit': %w", err) + } + } + + if t.WorkspaceId != nil { + object["workspaceId"], err = json.Marshal(t.WorkspaceId) + if err != nil { + return nil, fmt.Errorf("error marshaling 'workspaceId': %w", err) + } + } + b, err = json.Marshal(object) + return b, err +} + +func (t *PolicyDto) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + if err != nil { + return err + } + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) + if err != nil { + return err + } + + if raw, found := object["allowHalfDay"]; found { + err = json.Unmarshal(raw, &t.AllowHalfDay) + if err != nil { + return fmt.Errorf("error reading 'allowHalfDay': %w", err) + } + } + + if raw, found := object["allowNegativeBalance"]; found { + err = json.Unmarshal(raw, &t.AllowNegativeBalance) + if err != nil { + return fmt.Errorf("error reading 'allowNegativeBalance': %w", err) + } + } + + if raw, found := object["color"]; found { + err = json.Unmarshal(raw, &t.Color) + if err != nil { + return fmt.Errorf("error reading 'color': %w", err) + } + } + + if raw, found := object["id"]; found { + err = json.Unmarshal(raw, &t.Id) + if err != nil { + return fmt.Errorf("error reading 'id': %w", err) + } + } + + if raw, found := object["name"]; found { + err = json.Unmarshal(raw, &t.Name) + if err != nil { + return fmt.Errorf("error reading 'name': %w", err) + } + } + + if raw, found := object["negativeBalance"]; found { + err = json.Unmarshal(raw, &t.NegativeBalance) + if err != nil { + return fmt.Errorf("error reading 'negativeBalance': %w", err) + } + } + + if raw, found := object["timeUnit"]; found { + err = json.Unmarshal(raw, &t.TimeUnit) + if err != nil { + return fmt.Errorf("error reading 'timeUnit': %w", err) + } + } + + if raw, found := object["workspaceId"]; found { + err = json.Unmarshal(raw, &t.WorkspaceId) + if err != nil { + return fmt.Errorf("error reading 'workspaceId': %w", err) + } + } + + return err +} + +// RequestEditorFn is the function signature for the RequestEditor callback function +type RequestEditorFn func(ctx context.Context, req *http.Request) error + +// Doer performs HTTP requests. +// +// The standard http.Client implements this interface. +type HttpRequestDoer interface { + Do(req *http.Request) (*http.Response, error) +} + +// Client which conforms to the OpenAPI3 specification for this service. +type Client struct { + // The endpoint of the server conforming to this interface, with scheme, + // https://api.deepmap.com for example. This can contain a path relative + // to the server, such as https://api.deepmap.com/dev-test, and all the + // paths in the swagger spec will be appended to the server. + Server string + + // Doer for performing requests, typically a *http.Client with any + // customized settings, such as certificate chains. + Client HttpRequestDoer + + // A list of callbacks for modifying requests which are generated before sending over + // the network. + RequestEditors []RequestEditorFn +} + +// ClientOption allows setting custom parameters during construction +type ClientOption func(*Client) error + +// Creates a new Client, with reasonable defaults +func NewClient(server string, opts ...ClientOption) (*Client, error) { + // create a client with sane default values + client := Client{ + Server: server, + } + // mutate client and add all optional params + for _, o := range opts { + if err := o(&client); err != nil { + return nil, err + } + } + // ensure the server URL always has a trailing slash + if !strings.HasSuffix(client.Server, "/") { + client.Server += "/" + } + // create httpClient, if not already present + if client.Client == nil { + client.Client = &http.Client{} + } + return &client, nil +} + +// WithHTTPClient allows overriding the default Doer, which is +// automatically created using http.Client. This is useful for tests. +func WithHTTPClient(doer HttpRequestDoer) ClientOption { + return func(c *Client) error { + c.Client = doer + return nil + } +} + +// WithRequestEditorFn allows setting up a callback function, which will be +// called right before sending the request. This can be used to mutate the request. +func WithRequestEditorFn(fn RequestEditorFn) ClientOption { + return func(c *Client) error { + c.RequestEditors = append(c.RequestEditors, fn) + return nil + } +} + +// The interface specification for the client above. +type ClientInterface interface { + // GetInitialData request + GetInitialData(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadReportWithBody request with any body + DownloadReportWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DownloadReport(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ResetPin request + ResetPin(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ValidatePinWithBody request with any body + ValidatePinWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ValidatePin(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSmtpConfigurationWithBody request with any body + UpdateSmtpConfigurationWithBody(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSmtpConfiguration(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DisableAccessToEntitiesInTransferWithBody request with any body + DisableAccessToEntitiesInTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DisableAccessToEntitiesInTransfer(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EnableAccessToEntitiesInTransfer request + EnableAccessToEntitiesInTransfer(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UsersExistWithBody request with any body + UsersExistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UsersExist(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HandleCleanupOnSourceRegion request + HandleCleanupOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HandleTransferCompletedOnSourceRegion request + HandleTransferCompletedOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HandleTransferCompletedFailureWithBody request with any body + HandleTransferCompletedFailureWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + HandleTransferCompletedFailure(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HandleTransferCompletedSuccessWithBody request with any body + HandleTransferCompletedSuccessWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + HandleTransferCompletedSuccess(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllUsers request + GetAllUsers(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserInfoWithBody request with any body + GetUserInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserInfo(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserMembershipsAndInvitesWithBody request with any body + GetUserMembershipsAndInvitesWithBody(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserMembershipsAndInvites(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CheckForNewsletterSubscription request + CheckForNewsletterSubscription(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddNotificationsWithBody request with any body + AddNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetNews request + GetNews(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteNews request + DeleteNews(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateNewsWithBody request with any body + UpdateNewsWithBody(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SearchAllUsers request + SearchAllUsers(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // NumberOfUsersRegistered request + NumberOfUsersRegistered(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOnWorkspace request + GetUsersOnWorkspace(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // BulkEditUsersWithBody request with any body + BulkEditUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + BulkEditUsers(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOfWorkspace5 request + GetUsersOfWorkspace5(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInfoWithBody request with any body + GetInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetInfo(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetMembersInfo request + GetMembersInfo(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserNamesWithBody request with any body + GetUserNamesWithBody(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserNames(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FindPoliciesToBeApprovedByUser request + FindPoliciesToBeApprovedByUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersAndUsersFromUserGroupsAssignedToProject request + GetUsersAndUsersFromUserGroupsAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersForProjectMembersFilterWithBody request with any body + GetUsersForProjectMembersFilterWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUsersForProjectMembersFilter(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersForAttendanceReportFilter1WithBody request with any body + GetUsersForAttendanceReportFilter1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUsersForAttendanceReportFilter1(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOfWorkspace4 request + GetUsersOfWorkspace4(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersForReportFilterOld request + GetUsersForReportFilterOld(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersForReportFilterWithBody request with any body + GetUsersForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUsersForReportFilter(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOfUserGroup request + GetUsersOfUserGroup(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOfWorkspace3 request + GetUsersOfWorkspace3(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOfWorkspace2 request + GetUsersOfWorkspace2(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUser request + GetUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateTimeTrackingSettings1WithBody request with any body + UpdateTimeTrackingSettings1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateTimeTrackingSettings1(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateDashboardSelectionWithBody request with any body + UpdateDashboardSelectionWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateDashboardSelection(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetDefaultWorkspace request + SetDefaultWorkspace(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteUserWithBody request with any body + DeleteUserWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteUser(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ChangeEmailWithBody request with any body + ChangeEmailWithBody(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ChangeEmail(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HasPendingEmailChange request + HasPendingEmailChange(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateLangWithBody request with any body + UpdateLangWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateLang(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // MarkAsRead1WithBody request with any body + MarkAsRead1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + MarkAsRead1(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // MarkAsReadWithBody request with any body + MarkAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + MarkAsRead(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ChangeNameAdminWithBody request with any body + ChangeNameAdminWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ChangeNameAdmin(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetNewsForUser request + GetNewsForUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ReadNewsWithBody request with any body + ReadNewsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReadNews(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetNotifications request + GetNotifications(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdatePictureWithBody request with any body + UpdatePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdatePicture(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateNameAndProfilePictureWithBody request with any body + UpdateNameAndProfilePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateNameAndProfilePicture(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSettingsWithBody request with any body + UpdateSettingsWithBody(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSettings(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSummaryReportSettingsWithBody request with any body + UpdateSummaryReportSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSummaryReportSettings(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateTimeTrackingSettingsWithBody request with any body + UpdateTimeTrackingSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateTimeTrackingSettings(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateTimezoneWithBody request with any body + UpdateTimezoneWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateTimezone(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetVerificationCampaignNotifications request + GetVerificationCampaignNotifications(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // MarkNotificationsAsReadWithBody request with any body + MarkNotificationsAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + MarkNotificationsAsRead(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkCapacityForUser request + GetWorkCapacityForUser(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersWorkingDays request + GetUsersWorkingDays(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UploadImageWithBody request with any body + UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllUnfinishedWalkthroughTypes request + GetAllUnfinishedWalkthroughTypes(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FinishWalkthroughWithBody request with any body + FinishWalkthroughWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + FinishWalkthrough(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOwnerEmailByWorkspaceId request + GetOwnerEmailByWorkspaceId(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkspacesOfUser request + GetWorkspacesOfUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateWithBody request with any body + CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkspaceInfo request + GetWorkspaceInfo(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InsertLegacyPlanNotificationsWithBody request with any body + InsertLegacyPlanNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InsertLegacyPlanNotifications(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPermissionsToUserForWorkspacesWithBody request with any body + GetPermissionsToUserForWorkspacesWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetPermissionsToUserForWorkspaces(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // LeaveWorkspace request + LeaveWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkspaceById request + GetWorkspaceById(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateWorkspaceWithBody request with any body + UpdateWorkspaceWithBody(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateWorkspace(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetABTesting request + GetABTesting(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetActiveMembers request + GetActiveMembers(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UninstallWithBody request with any body + UninstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Uninstall(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInstalledAddons request + GetInstalledAddons(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InstallWithBody request with any body + InstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Install(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInstalledAddonsIdNamePair request + GetInstalledAddonsIdNamePair(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInstalledAddonsByKeysWithBody request with any body + GetInstalledAddonsByKeysWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetInstalledAddonsByKeys(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Uninstall1 request + Uninstall1(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAddonById request + GetAddonById(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSettings1WithBody request with any body + UpdateSettings1WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSettings1(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateStatus3WithBody request with any body + UpdateStatus3WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateStatus3(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAddonUserJWT request + GetAddonUserJWT(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAddonWebhooks request + GetAddonWebhooks(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveUninstalledAddon request + RemoveUninstalledAddon(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListOfWorkspace1 request + ListOfWorkspace1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create20WithBody request with any body + Create20WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create20(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete18 request + Delete18(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update11WithBody request with any body + Update11WithBody(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update11(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllowedUpdates request + GetAllowedUpdates(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ApproveRequestsWithBody request with any body + ApproveRequestsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ApproveRequests(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CountWithBody request with any body + CountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Count(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HasPending request + HasPending(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemindManagersToApproveWithBody request with any body + RemindManagersToApproveWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RemindManagersToApprove(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemindUsersToSubmitWithBody request with any body + RemindUsersToSubmitWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RemindUsersToSubmit(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApprovalGroupsWithBody request with any body + GetApprovalGroupsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetApprovalGroups(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUnsubmittedSummariesWithBody request with any body + GetUnsubmittedSummariesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUnsubmittedSummaries(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WithdrawAllOfWorkspace request + WithdrawAllOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRequestsByWorkspace request + GetRequestsByWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApprovalRequest request + GetApprovalRequest(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateStatus2WithBody request with any body + UpdateStatus2WithBody(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateStatus2(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApprovalDashboard request + GetApprovalDashboard(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApprovalDetails request + GetApprovalDetails(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FetchCustomAttributesWithBody request with any body + FetchCustomAttributesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + FetchCustomAttributes(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CheckWorkspaceTransferPossibility request + CheckWorkspaceTransferPossibility(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteMany3WithBody request with any body + DeleteMany3WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteMany3(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClients1 request + GetClients1(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateMany2WithBody request with any body + UpdateMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMany2(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create19WithBody request with any body + Create19WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create19(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetArchivePermissionsWithBody request with any body + GetArchivePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetArchivePermissions(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HaveRelatedTasksWithBody request with any body + HaveRelatedTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + HaveRelatedTasks(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClientsOfIdsWithBody request with any body + GetClientsOfIdsWithBody(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetClientsOfIds(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClientsForInvoiceFilter1 request + GetClientsForInvoiceFilter1(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClients2 request + GetClients2(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClientsForReportFilter request + GetClientsForReportFilter(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClientIdsForReportFilter request + GetClientIdsForReportFilter(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeOffPoliciesAndHolidaysForClientWithBody request with any body + GetTimeOffPoliciesAndHolidaysForClientWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTimeOffPoliciesAndHolidaysForClient(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete17 request + Delete17(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClient request + GetClient(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectsArchivePermissions request + GetProjectsArchivePermissions(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update10WithBody request with any body + Update10WithBody(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update10(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetCostRate2WithBody request with any body + SetCostRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetCostRate2(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCoupon request + GetCoupon(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkspaceCurrencies request + GetWorkspaceCurrencies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateCurrencyWithBody request with any body + CreateCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateCurrency(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveCurrency request + RemoveCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCurrency request + GetCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCurrencyCodeWithBody request with any body + UpdateCurrencyCodeWithBody(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCurrencyCode(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetCurrencyWithBody request with any body + SetCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetCurrency(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // OfWorkspace request + OfWorkspace(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create18WithBody request with any body + Create18WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create18(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // OfWorkspaceWithRequiredAvailability request + OfWorkspaceWithRequiredAvailability(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete16 request + Delete16(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditWithBody request with any body + EditWithBody(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Edit(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveDefaultValueOfProject request + RemoveDefaultValueOfProject(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditDefaultValuesWithBody request with any body + EditDefaultValuesWithBody(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditDefaultValues(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOfProject request + GetOfProject(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCustomLabelsWithBody request with any body + UpdateCustomLabelsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCustomLabels(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddEmailWithBody request with any body + AddEmailWithBody(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddEmail(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteManyExpensesWithBody request with any body + DeleteManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteManyExpenses(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetExpenses request + GetExpenses(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateExpenseWithBody request with any body + CreateExpenseWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCategories request + GetCategories(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create17WithBody request with any body + Create17WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create17(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCategoriesByIds request + GetCategoriesByIds(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteCategory request + DeleteCategory(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCategoryWithBody request with any body + UpdateCategoryWithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCategory(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateStatus1WithBody request with any body + UpdateStatus1WithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateStatus1(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetExpensesInDateRange request + GetExpensesInDateRange(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateInvoicedStatus1WithBody request with any body + UpdateInvoicedStatus1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateInvoicedStatus1(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RestoreManyExpensesWithBody request with any body + RestoreManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RestoreManyExpenses(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteExpense request + DeleteExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetExpense request + GetExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateExpenseWithBody request with any body + UpdateExpenseWithBody(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadFile request + DownloadFile(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ImportFileDataWithBody request with any body + ImportFileDataWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ImportFileData(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CheckUsersForImport request + CheckUsersForImport(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetHolidays request + GetHolidays(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create16WithBody request with any body + Create16WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create16(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete15 request + Delete15(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update9WithBody request with any body + Update9WithBody(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update9(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetHourlyRate2WithBody request with any body + SetHourlyRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetHourlyRate2(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvitedEmailsInfoWithBody request with any body + GetInvitedEmailsInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetInvitedEmailsInfo(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoiceEmailTemplates request + GetInvoiceEmailTemplates(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpsertInvoiceEmailTemplateWithBody request with any body + UpsertInvoiceEmailTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpsertInvoiceEmailTemplate(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoiceEmailData request + GetInvoiceEmailData(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SendInvoiceEmailWithBody request with any body + SendInvoiceEmailWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SendInvoiceEmail(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateInvoiceWithBody request with any body + CreateInvoiceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateInvoice(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllCompanies request + GetAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateCompanyWithBody request with any body + CreateCompanyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateCompany(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCompaniesInWorkspaceWithBody request with any body + UpdateCompaniesInWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCompaniesInWorkspace(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CountAllCompanies request + CountAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClientsForInvoiceFilter request + GetClientsForInvoiceFilter(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteCompany request + DeleteCompany(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCompanyById request + GetCompanyById(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCompanyWithBody request with any body + UpdateCompanyWithBody(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCompany(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoicesInfoWithBody request with any body + GetInvoicesInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetInvoicesInfo(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoiceItemTypes request + GetInvoiceItemTypes(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateInvoiceItemTypeWithBody request with any body + CreateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateInvoiceItemType(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteInvoiceItemType request + DeleteInvoiceItemType(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateInvoiceItemTypeWithBody request with any body + UpdateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateInvoiceItemType(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetNextInvoiceNumber request + GetNextInvoiceNumber(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoicePermissions request + GetInvoicePermissions(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateInvoicePermissionsWithBody request with any body + UpdateInvoicePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateInvoicePermissions(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CanUserManageInvoices request + CanUserManageInvoices(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoiceSettings request + GetInvoiceSettings(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateInvoiceSettingsWithBody request with any body + UpdateInvoiceSettingsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateInvoiceSettings(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteInvoice request + DeleteInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoice request + GetInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateInvoiceWithBody request with any body + UpdateInvoiceWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateInvoice(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DuplicateInvoice request + DuplicateInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ExportInvoice request + ExportInvoice(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ImportTimeAndExpensesWithBody request with any body + ImportTimeAndExpensesWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ImportTimeAndExpenses(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddInvoiceItem request + AddInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ReorderInvoiceItem1WithBody request with any body + ReorderInvoiceItem1WithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReorderInvoiceItem1(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditInvoiceItemWithBody request with any body + EditInvoiceItemWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteInvoiceItems request + DeleteInvoiceItems(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPaymentsForInvoice request + GetPaymentsForInvoice(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateInvoicePaymentWithBody request with any body + CreateInvoicePaymentWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateInvoicePayment(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeletePaymentById request + DeletePaymentById(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ChangeInvoiceStatusWithBody request with any body + ChangeInvoiceStatusWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ChangeInvoiceStatus(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AuthorizationCheck request + AuthorizationCheck(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // IsAvailable request + IsAvailable(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // IsAvailable1 request + IsAvailable1(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GeneratePinCode request + GeneratePinCode(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GeneratePinCodeForUser request + GeneratePinCodeForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserPinCode request + GetUserPinCode(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdatePinCodeWithBody request with any body + UpdatePinCodeWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdatePinCode(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetKiosksOfWorkspace request + GetKiosksOfWorkspace(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create15WithBody request with any body + Create15WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create15(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateBreakDefaultsWithBody request with any body + UpdateBreakDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateBreakDefaults(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTotalCountOfKiosksOnWorkspace request + GetTotalCountOfKiosksOnWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateDefaultsWithBody request with any body + UpdateDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateDefaults(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HasActiveKiosks request + HasActiveKiosks(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWithProjectWithBody request with any body + GetWithProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetWithProject(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWithTaskWithBody request with any body + GetWithTaskWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetWithTask(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetForReportFilter request + GetForReportFilter(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWithoutDefaults request + GetWithoutDefaults(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteKiosk request + DeleteKiosk(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetKioskById request + GetKioskById(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update8WithBody request with any body + Update8WithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update8(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ExportAssignees request + ExportAssignees(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HasEntryInProgress request + HasEntryInProgress(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateStatusWithBody request with any body + UpdateStatusWithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateStatus(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AcknowledgeLegacyPlanNotifications request + AcknowledgeLegacyPlanNotifications(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLegacyPlanUpgradeData request + GetLegacyPlanUpgradeData(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddLimitedUsersWithBody request with any body + AddLimitedUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddLimitedUsers(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLimitedUsersCount request + GetLimitedUsersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetMemberProfile request + GetMemberProfile(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateMemberProfileWithBody request with any body + UpdateMemberProfileWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMemberProfile(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateMemberProfileWithAdditionalDataWithBody request with any body + UpdateMemberProfileWithAdditionalDataWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMemberProfileWithAdditionalData(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateMemberSettingsWithBody request with any body + UpdateMemberSettingsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMemberSettings(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWeekStart request + GetWeekStart(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateMemberWorkingDaysAndCapacityWithBody request with any body + UpdateMemberWorkingDaysAndCapacityWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMemberWorkingDaysAndCapacity(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetMembersCount request + GetMembersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FindNotInvitedEmailsInWithBody request with any body + FindNotInvitedEmailsInWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + FindNotInvitedEmailsIn(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrganization request + GetOrganization(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create14WithBody request with any body + Create14WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create14(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrganizationName request + GetOrganizationName(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CheckAvailabilityOfDomainName request + CheckAvailabilityOfDomainName(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteOrganization request + DeleteOrganization(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateOrganizationWithBody request with any body + UpdateOrganizationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateOrganization(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLoginSettings request + GetLoginSettings(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteOAuth2Configuration request + DeleteOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrganizationOAuth2Configuration request + GetOrganizationOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateOAuth2Configuration1WithBody request with any body + UpdateOAuth2Configuration1WithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateOAuth2Configuration1(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TestOAuth2ConfigurationWithBody request with any body + TestOAuth2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TestOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteSAML2Configuration request + DeleteSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrganizationSAML2Configuration request + GetOrganizationSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSAML2ConfigurationWithBody request with any body + UpdateSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TestSAML2ConfigurationWithBody request with any body + TestSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TestSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllOrganizationsOfUser request + GetAllOrganizationsOfUser(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkspaceOwner request + GetWorkspaceOwner(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TransferOwnershipWithBody request with any body + TransferOwnershipWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TransferOwnership(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkspaceOwnerTimeZone request + GetWorkspaceOwnerTimeZone(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CancelSubscriptionWithBody request with any body + CancelSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CancelSubscription(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ConfirmPayment request + ConfirmPayment(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCustomerInfo request + GetCustomerInfo(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateCustomerWithBody request with any body + CreateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateCustomer(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCustomerWithBody request with any body + UpdateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCustomer(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditInvoiceInformationWithBody request with any body + EditInvoiceInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditInvoiceInformation(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditPaymentInformationWithBody request with any body + EditPaymentInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditPaymentInformation(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ExtendTrial request + ExtendTrial(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFeatureSubscriptions request + GetFeatureSubscriptions(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // InitialUpgradeWithBody request with any body + InitialUpgradeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + InitialUpgrade(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoiceInfo request + GetInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoices request + GetInvoices(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoicesCount request + GetInvoicesCount(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLastOpenInvoice request + GetLastOpenInvoice(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInvoicesList request + GetInvoicesList(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPaymentDate request + GetPaymentDate(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPaymentInfo request + GetPaymentInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSetupIntentForPaymentMethodWithBody request with any body + CreateSetupIntentForPaymentMethodWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSetupIntentForPaymentMethod(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PreviewUpgrade request + PreviewUpgrade(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ReactivateSubscription request + ReactivateSubscription(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetScheduledInvoiceInfo request + GetScheduledInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateUserSeatsWithBody request with any body + UpdateUserSeatsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateUserSeats(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSetupIntentForInitialSubscriptionWithBody request with any body + CreateSetupIntentForInitialSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSetupIntentForInitialSubscription(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSubscriptionWithBody request with any body + CreateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSubscription(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSubscriptionWithBody request with any body + UpdateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSubscription(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpgradePreCheck request + UpgradePreCheck(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteSubscriptionWithBody request with any body + DeleteSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteSubscription(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TerminateTrial request + TerminateTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // StartTrial request + StartTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WasRegionalEverAllowed request + WasRegionalEverAllowed(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FindForUserAndPolicy request + FindForUserAndPolicy(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetClients request + GetClients(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjects3 request + GetProjects3(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectFavorites request + GetProjectFavorites(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTasks21 request + GetTasks21(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RecalculateProjectStatus1 request + RecalculateProjectStatus1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectAndTaskWithBody request with any body + GetProjectAndTaskWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetProjectAndTask(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteMany2WithBody request with any body + DeleteMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteMany2(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjects2 request + GetProjects2(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateMany1WithBody request with any body + UpdateMany1WithBody(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMany1(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create12WithBody request with any body + Create12WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create12(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFilteredProjectsCount request + GetFilteredProjectsCount(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFilteredProjectsWithBody request with any body + GetFilteredProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetFilteredProjects(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateFromTemplateWithBody request with any body + CreateFromTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateFromTemplate(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectWithBody request with any body + GetProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetProject(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLastUsedProject request + GetLastUsedProject(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // LastUsedProject1 request + LastUsedProject1(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectsList request + GetProjectsList(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HasManagerRole1 request + HasManagerRole1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectsForReportFilterWithBody request with any body + GetProjectsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetProjectsForReportFilter(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectIdsForReportFilterWithBody request with any body + GetProjectIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetProjectIdsForReportFilter(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTasksByIdsWithBody request with any body + GetTasksByIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTasksByIds(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllTasksWithBody request with any body + GetAllTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetAllTasks(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTasksWithBody request with any body + GetTasksWithBody(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTasks(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTasksForReportFilterWithBody request with any body + GetTasksForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTasksForReportFilter(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTaskIdsForReportFilterWithBody request with any body + GetTaskIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTaskIdsForReportFilter(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeOffPoliciesAndHolidaysWithProjectsWithBody request with any body + GetTimeOffPoliciesAndHolidaysWithProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTimeOffPoliciesAndHolidaysWithProjects(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLastUsedOfUser request + GetLastUsedOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPermissionsToUserForProjectsWithBody request with any body + GetPermissionsToUserForProjectsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetPermissionsToUserForProjects(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete13 request + Delete13(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProject1 request + GetProject1(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update14WithBody request with any body + Update14WithBody(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update14(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update6WithBody request with any body + Update6WithBody(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update6(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetCostRate1WithBody request with any body + SetCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetCostRate1(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateEstimateWithBody request with any body + UpdateEstimateWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateEstimate(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetHourlyRate1WithBody request with any body + SetHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetHourlyRate1(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HasManagerRole request + HasManagerRole(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAuthsForProject request + GetAuthsForProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RecalculateProjectStatus request + RecalculateProjectStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTasks1 request + GetTasks1(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create13WithBody request with any body + Create13WithBody(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create13(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTasksAssignedToUser request + GetTasksAssignedToUser(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeOffPoliciesAndHolidaysWithTasksWithBody request with any body + GetTimeOffPoliciesAndHolidaysWithTasksWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTimeOffPoliciesAndHolidaysWithTasks(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update7WithBody request with any body + Update7WithBody(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update7(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetCostRateWithBody request with any body + SetCostRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetCostRate(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetHourlyRateWithBody request with any body + SetHourlyRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetHourlyRate(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete14 request + Delete14(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTaskAssignedToUser request + GetTaskAssignedToUser(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddUsers1WithBody request with any body + AddUsers1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddUsers1(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetStatus request + GetStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveUserGroupMembership request + RemoveUserGroupMembership(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsers4 request + GetUsers4(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddUsersCostRate1WithBody request with any body + AddUsersCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddUsersCostRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddUsersHourlyRate1WithBody request with any body + AddUsersHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddUsersHourlyRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveUserMembership request + RemoveUserMembership(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemovePermissionsToUserWithBody request with any body + RemovePermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RemovePermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPermissionsToUser1 request + GetPermissionsToUser1(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddPermissionsToUserWithBody request with any body + AddPermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddPermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Disconnect request + Disconnect(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ConnectWithBody request with any body + ConnectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Connect(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Connect1 request + Connect1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SyncClientsWithBody request with any body + SyncClientsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SyncClients(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SyncProjectsWithBody request with any body + SyncProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SyncProjects(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateProjectsWithBody request with any body + UpdateProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateProjects(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllRegionsForUserAccount request + GetAllRegionsForUserAccount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListOfWorkspace request + ListOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create11WithBody request with any body + Create11WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create11(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // OfWorkspaceIdAndUserId request + OfWorkspaceIdAndUserId(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete12 request + Delete12(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update5WithBody request with any body + Update5WithBody(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update5(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDashboardInfoWithBody request with any body + GetDashboardInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetDashboardInfo(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetMyMostTracked request + GetMyMostTracked(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamActivities request + GetTeamActivities(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAmountPreview request + GetAmountPreview(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDraftAssignmentsCountWithBody request with any body + GetDraftAssignmentsCountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetDraftAssignmentsCount(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectTotals request + GetProjectTotals(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFilteredProjectTotalsWithBody request with any body + GetFilteredProjectTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetFilteredProjectTotals(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectTotalsForSingleProject request + GetProjectTotalsForSingleProject(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjectsForUser request + GetProjectsForUser(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PublishAssignmentsWithBody request with any body + PublishAssignmentsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PublishAssignments(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateRecurringWithBody request with any body + CreateRecurringWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateRecurring(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete11 request + Delete11(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditRecurringWithBody request with any body + EditRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditPeriodForRecurringWithBody request with any body + EditPeriodForRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditPeriodForRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditRecurringPeriodWithBody request with any body + EditRecurringPeriodWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditRecurringPeriod(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserTotalsWithBody request with any body + GetUserTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserTotals(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAssignmentsForUser request + GetAssignmentsForUser(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFilteredAssignmentsForUserWithBody request with any body + GetFilteredAssignmentsForUserWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetFilteredAssignmentsForUser(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsers3 request + GetUsers3(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjects1 request + GetProjects1(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemindToPublish request + RemindToPublish(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserTotalsForSingleUser request + GetUserTotalsForSingleUser(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Get3 request + Get3(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CopyAssignmentWithBody request with any body + CopyAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CopyAssignment(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SplitAssignmentWithBody request with any body + SplitAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SplitAssignment(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ShiftScheduleWithBody request with any body + ShiftScheduleWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ShiftSchedule(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HideProject request + HideProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ShowProject request + ShowProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // HideUser request + HideUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ShowUser request + ShowUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create10WithBody request with any body + Create10WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create10(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete10 request + Delete10(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Get2 request + Get2(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Edit1WithBody request with any body + Edit1WithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Edit1(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditDateWithBody request with any body + EditDateWithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditDate(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetProjects request + GetProjects(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsers2 request + GetUsers2(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersAssignedToProject request + GetUsersAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSidebarConfig request + GetSidebarConfig(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateSidebarWithBody request with any body + UpdateSidebarWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateSidebar(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FilterUsersByStatusWithBody request with any body + FilterUsersByStatusWithBody(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + FilterUsersByStatus(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete9WithBody request with any body + Delete9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Delete9(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // StopWithBody request with any body + StopWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Stop(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // StartWithBody request with any body + StartWithBody(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Start(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteMany1WithBody request with any body + DeleteMany1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteMany1(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTags request + GetTags(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateManyWithBody request with any body + UpdateManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateMany(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create9WithBody request with any body + Create9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create9(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ConnectedToApprovedEntriesWithBody request with any body + ConnectedToApprovedEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ConnectedToApprovedEntries(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTagsOfIdsWithBody request with any body + GetTagsOfIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTagsOfIds(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTagIdsByNameAndStatus request + GetTagIdsByNameAndStatus(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete8 request + Delete8(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update4WithBody request with any body + Update4WithBody(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update4(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTemplates request + GetTemplates(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create8WithBody request with any body + Create8WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create8(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete7 request + Delete7(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTemplate request + GetTemplate(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update13WithBody request with any body + Update13WithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update13(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ActivateWithBody request with any body + ActivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Activate(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeactivateWithBody request with any body + DeactivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Deactivate(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CopyTimeEntriesWithBody request with any body + CopyTimeEntriesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CopyTimeEntries(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ContinueTimeEntry request + ContinueTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamMembersOfAdmin request + GetTeamMembersOfAdmin(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetBalancesForPolicy request + GetBalancesForPolicy(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateBalanceWithBody request with any body + UpdateBalanceWithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateBalance(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetBalancesForUser request + GetBalancesForUser(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamMembersOfManager request + GetTeamMembersOfManager(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FindPoliciesForWorkspace request + FindPoliciesForWorkspace(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreatePolicyWithBody request with any body + CreatePolicyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreatePolicy(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPolicyAssignmentForCurrentUser request + GetPolicyAssignmentForCurrentUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAssignmentsDistribution request + GetTeamAssignmentsDistribution(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPolicyAssignmentsForUser request + GetPolicyAssignmentsForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // FindPoliciesForUser request + FindPoliciesForUser(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeletePolicy request + DeletePolicy(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdatePolicyWithBody request with any body + UpdatePolicyWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdatePolicy(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Archive request + Archive(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Restore request + Restore(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPolicy request + GetPolicy(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create7WithBody request with any body + Create7WithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create7(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete6 request + Delete6(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Approve request + Approve(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RejectWithBody request with any body + RejectWithBody(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Reject(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateForOther1WithBody request with any body + CreateForOther1WithBody(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateForOther1(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Get1WithBody request with any body + Get1WithBody(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Get1(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeOffRequestById request + GetTimeOffRequestById(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllUsersOfWorkspace request + GetAllUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroupsOfWorkspace request + GetUserGroupsOfWorkspace(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersOfWorkspace request + GetUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWithBody request with any body + GetWithBody(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Get(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimelineForReportsWithBody request with any body + GetTimelineForReportsWithBody(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetTimelineForReports(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteManyWithBody request with any body + DeleteManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteMany(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntriesBySearchValue request + GetTimeEntriesBySearchValue(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create6WithBody request with any body + Create6WithBody(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create6(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchTimeEntriesWithBody request with any body + PatchTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PatchTimeEntries(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EndStartedWithBody request with any body + EndStartedWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EndStarted(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetMultipleTimeEntriesById request + GetMultipleTimeEntriesById(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateFull1WithBody request with any body + CreateFull1WithBody(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateFull1(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntryInProgress request + GetTimeEntryInProgress(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateInvoicedStatusWithBody request with any body + UpdateInvoicedStatusWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateInvoicedStatus(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListOfProject request + ListOfProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntriesRecentlyUsed request + GetTimeEntriesRecentlyUsed(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RestoreTimeEntriesWithBody request with any body + RestoreTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RestoreTimeEntries(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateForManyWithBody request with any body + CreateForManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateForMany(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateForOthersWithBody request with any body + CreateForOthersWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateForOthers(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListOfFull request + ListOfFull(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntries request + GetTimeEntries(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AssertTimeEntriesExistInDateRange request + AssertTimeEntriesExistInDateRange(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateFullWithBody request with any body + CreateFullWithBody(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateFull(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntriesInRange request + GetTimeEntriesInRange(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntriesForTimesheet request + GetTimeEntriesForTimesheet(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchWithBody request with any body + PatchWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Patch(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update3WithBody request with any body + Update3WithBody(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update3(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntryAttributes request + GetTimeEntryAttributes(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateTimeEntryAttributeWithBody request with any body + CreateTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteTimeEntryAttributeWithBody request with any body + DeleteTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + DeleteTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateBillableWithBody request with any body + UpdateBillableWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateBillable(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateDescriptionWithBody request with any body + UpdateDescriptionWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateDescription(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateEndWithBody request with any body + UpdateEndWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateEnd(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateFullWithBody request with any body + UpdateFullWithBody(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateFull(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateProjectWithBody request with any body + UpdateProjectWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateProject(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveProject request + RemoveProject(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateProjectAndTaskWithBody request with any body + UpdateProjectAndTaskWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateProjectAndTask(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateAndSplitWithBody request with any body + UpdateAndSplitWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateAndSplit(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SplitTimeEntryWithBody request with any body + SplitTimeEntryWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SplitTimeEntry(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateStartWithBody request with any body + UpdateStartWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateStart(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateTagsWithBody request with any body + UpdateTagsWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateTags(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveTask request + RemoveTask(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateTimeIntervalWithBody request with any body + UpdateTimeIntervalWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateTimeInterval(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateUserWithBody request with any body + UpdateUserWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateUser(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete5 request + Delete5(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateCustomFieldWithBody request with any body + UpdateCustomFieldWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateCustomField(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PenalizeCurrentTimerAndStartNewTimeEntryWithBody request with any body + PenalizeCurrentTimerAndStartNewTimeEntryWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PenalizeCurrentTimerAndStartNewTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TransferWorkspaceDeprecatedFlowWithBody request with any body + TransferWorkspaceDeprecatedFlowWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TransferWorkspaceDeprecatedFlow(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TransferWorkspaceWithBody request with any body + TransferWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + TransferWorkspace(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTrialActivationData request + GetTrialActivationData(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveMember request + RemoveMember(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CopyTimeEntryCalendarDragWithBody request with any body + CopyTimeEntryCalendarDragWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CopyTimeEntryCalendarDrag(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DuplicateTimeEntry request + DuplicateTimeEntry(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroups1 request + GetUserGroups1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create5WithBody request with any body + Create5WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create5(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroups2 request + GetUserGroups2(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroupNamesWithBody request with any body + GetUserGroupNamesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserGroupNames(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersForReportFilter1 request + GetUsersForReportFilter1(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroupForReportFilterPostWithBody request with any body + GetUserGroupForReportFilterPostWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserGroupForReportFilterPost(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersForAttendanceReportFilterWithBody request with any body + GetUsersForAttendanceReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUsersForAttendanceReportFilter(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroupIdsByName request + GetUserGroupIdsByName(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserGroupsWithBody request with any body + GetUserGroupsWithBody(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUserGroups(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveUserWithBody request with any body + RemoveUserWithBody(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + RemoveUser(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddUsersToUserGroupsFilterWithBody request with any body + AddUsersToUserGroupsFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddUsersToUserGroupsFilter(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete4 request + Delete4(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update2WithBody request with any body + Update2WithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update2(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersWithBody request with any body + GetUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetUsers(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsers1 request + GetUsers1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // AddUsersWithBody request with any body + AddUsersWithBody(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + AddUsers(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetExpensesForUsers request + GetExpensesForUsers(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetMembershipsWithBody request with any body + SetMembershipsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetMemberships(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ResendInvite request + ResendInvite(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateDeprecatedWithBody request with any body + CreateDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateDeprecated(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRequestsByUser request + GetRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApprovedTotalsWithBody request with any body + GetApprovedTotalsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetApprovedTotals(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateForOtherDeprecatedWithBody request with any body + CreateForOtherDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateForOtherDeprecated(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPreviewWithBody request with any body + GetPreviewWithBody(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + GetPreview(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntryStatus request + GetTimeEntryStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTimeEntryWeekStatus request + GetTimeEntryWeekStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWeeklyRequestsByUser request + GetWeeklyRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WithdrawAllOfUser request + WithdrawAllOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WithdrawAllOfWorkspaceDeprecated request + WithdrawAllOfWorkspaceDeprecated(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WithdrawWeeklyOfUser request + WithdrawWeeklyOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetCostRateForUser1WithBody request with any body + SetCostRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetCostRateForUser1(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpsertUserCustomFieldValueWithBody request with any body + UpsertUserCustomFieldValueWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpsertUserCustomFieldValue(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetFavoriteEntries request + GetFavoriteEntries(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateFavoriteTimeEntryWithBody request with any body + CreateFavoriteTimeEntryWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateFavoriteTimeEntry(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ReorderInvoiceItemWithBody request with any body + ReorderInvoiceItemWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReorderInvoiceItem(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete3 request + Delete3(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Update1WithBody request with any body + Update1WithBody(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update1(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetHolidays1 request + GetHolidays1(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // SetHourlyRateForUser1WithBody request with any body + SetHourlyRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + SetHourlyRateForUser1(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPermissionsToUser request + GetPermissionsToUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // RemoveFavoriteProject request + RemoveFavoriteProject(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete2 request + Delete2(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create4 request + Create4(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete1 request + Delete1(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create3 request + Create3(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ReSubmitWithBody request with any body + ReSubmitWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ReSubmit(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserRoles request + GetUserRoles(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateUserRolesWithBody request with any body + UpdateUserRolesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + UpdateUserRoles(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create2WithBody request with any body + Create2WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create2(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateForOtherWithBody request with any body + CreateForOtherWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateForOther(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkCapacity request + GetWorkCapacity(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWebhooks request + GetWebhooks(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Create1WithBody request with any body + Create1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Create1(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // Delete request + Delete(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWebhook request + GetWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateWithBody request with any body + UpdateWithBody(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + Update(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLogsForWebhook1 request + GetLogsForWebhook1(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLogCount request + GetLogCount(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TriggerResendEventForWebhook request + TriggerResendEventForWebhook(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // TriggerTestEventForWebhook request + TriggerTestEventForWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GenerateNewToken request + GenerateNewToken(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) +} + +func (c *Client) GetInitialData(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInitialDataRequest(c.Server, reportId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DownloadReportWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadReportRequestWithBody(c.Server, reportId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DownloadReport(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadReportRequest(c.Server, reportId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ResetPin(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewResetPinRequest(c.Server, reportId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ValidatePinWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewValidatePinRequestWithBody(c.Server, reportId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ValidatePin(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewValidatePinRequest(c.Server, reportId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSmtpConfigurationWithBody(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSmtpConfigurationRequestWithBody(c.Server, systemSettingsId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSmtpConfiguration(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSmtpConfigurationRequest(c.Server, systemSettingsId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DisableAccessToEntitiesInTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDisableAccessToEntitiesInTransferRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DisableAccessToEntitiesInTransfer(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDisableAccessToEntitiesInTransferRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EnableAccessToEntitiesInTransfer(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEnableAccessToEntitiesInTransferRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UsersExistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUsersExistRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UsersExist(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUsersExistRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HandleCleanupOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleCleanupOnSourceRegionRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HandleTransferCompletedOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleTransferCompletedOnSourceRegionRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HandleTransferCompletedFailureWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleTransferCompletedFailureRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HandleTransferCompletedFailure(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleTransferCompletedFailureRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HandleTransferCompletedSuccessWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleTransferCompletedSuccessRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HandleTransferCompletedSuccess(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHandleTransferCompletedSuccessRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllUsers(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllUsersRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserInfoRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserInfo(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserInfoRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserMembershipsAndInvitesWithBody(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserMembershipsAndInvitesRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserMembershipsAndInvites(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserMembershipsAndInvitesRequest(c.Server, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CheckForNewsletterSubscription(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCheckForNewsletterSubscriptionRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddNotificationsRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetNews(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNewsRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteNews(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteNewsRequest(c.Server, newsId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateNewsWithBody(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateNewsRequestWithBody(c.Server, newsId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SearchAllUsers(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSearchAllUsersRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) NumberOfUsersRegistered(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewNumberOfUsersRegisteredRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOnWorkspace(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOnWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) BulkEditUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewBulkEditUsersRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) BulkEditUsers(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewBulkEditUsersRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOfWorkspace5(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOfWorkspace5Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInfoRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInfo(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInfoRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetMembersInfo(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetMembersInfoRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserNamesWithBody(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserNamesRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserNames(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserNamesRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindPoliciesToBeApprovedByUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindPoliciesToBeApprovedByUserRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersAndUsersFromUserGroupsAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersAndUsersFromUserGroupsAssignedToProjectRequest(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForProjectMembersFilterWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForProjectMembersFilterRequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForProjectMembersFilter(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForProjectMembersFilterRequest(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForAttendanceReportFilter1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForAttendanceReportFilter1RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForAttendanceReportFilter1(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForAttendanceReportFilter1Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOfWorkspace4(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOfWorkspace4Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForReportFilterOld(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForReportFilterOldRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForReportFilter(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForReportFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOfUserGroup(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOfUserGroupRequest(c.Server, workspaceId, userGroupId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOfWorkspace3(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOfWorkspace3Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOfWorkspace2(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOfWorkspace2Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimeTrackingSettings1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimeTrackingSettings1RequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimeTrackingSettings1(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimeTrackingSettings1Request(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateDashboardSelectionWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDashboardSelectionRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateDashboardSelection(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDashboardSelectionRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetDefaultWorkspace(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetDefaultWorkspaceRequest(c.Server, userId, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteUserWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteUser(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ChangeEmailWithBody(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeEmailRequestWithBody(c.Server, userId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ChangeEmail(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeEmailRequest(c.Server, userId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HasPendingEmailChange(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHasPendingEmailChangeRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateLangWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateLangRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateLang(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateLangRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) MarkAsRead1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMarkAsRead1RequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) MarkAsRead1(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMarkAsRead1Request(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) MarkAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMarkAsReadRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) MarkAsRead(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMarkAsReadRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ChangeNameAdminWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeNameAdminRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ChangeNameAdmin(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeNameAdminRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetNewsForUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNewsForUserRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReadNewsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReadNewsRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReadNews(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReadNewsRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetNotifications(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNotificationsRequest(c.Server, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdatePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePictureRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdatePicture(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePictureRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateNameAndProfilePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateNameAndProfilePictureRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateNameAndProfilePicture(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateNameAndProfilePictureRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSettingsWithBody(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettingsRequestWithBody(c.Server, userId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSettings(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettingsRequest(c.Server, userId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSummaryReportSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSummaryReportSettingsRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSummaryReportSettings(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSummaryReportSettingsRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimeTrackingSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimeTrackingSettingsRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimeTrackingSettings(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimeTrackingSettingsRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimezoneWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimezoneRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimezone(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimezoneRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetVerificationCampaignNotifications(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetVerificationCampaignNotificationsRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) MarkNotificationsAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMarkNotificationsAsReadRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) MarkNotificationsAsRead(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewMarkNotificationsAsReadRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkCapacityForUser(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkCapacityForUserRequest(c.Server, userId, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersWorkingDays(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersWorkingDaysRequest(c.Server, userId, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUploadImageRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllUnfinishedWalkthroughTypes(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllUnfinishedWalkthroughTypesRequest(c.Server, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FinishWalkthroughWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFinishWalkthroughRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FinishWalkthrough(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFinishWalkthroughRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOwnerEmailByWorkspaceId(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOwnerEmailByWorkspaceIdRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkspacesOfUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkspacesOfUserRequest(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkspaceInfo(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkspaceInfoRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) InsertLegacyPlanNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsertLegacyPlanNotificationsRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) InsertLegacyPlanNotifications(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInsertLegacyPlanNotificationsRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPermissionsToUserForWorkspacesWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPermissionsToUserForWorkspacesRequestWithBody(c.Server, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPermissionsToUserForWorkspaces(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPermissionsToUserForWorkspacesRequest(c.Server, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) LeaveWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLeaveWorkspaceRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkspaceById(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkspaceByIdRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateWorkspaceWithBody(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkspaceRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateWorkspace(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateWorkspaceRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetABTesting(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetABTestingRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetActiveMembers(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetActiveMembersRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UninstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUninstallRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Uninstall(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUninstallRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInstalledAddons(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstalledAddonsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) InstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInstallRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Install(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInstallRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInstalledAddonsIdNamePair(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstalledAddonsIdNamePairRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInstalledAddonsByKeysWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstalledAddonsByKeysRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInstalledAddonsByKeys(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInstalledAddonsByKeysRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Uninstall1(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUninstall1Request(c.Server, workspaceId, addonId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAddonById(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAddonByIdRequest(c.Server, workspaceId, addonId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSettings1WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettings1RequestWithBody(c.Server, workspaceId, addonId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSettings1(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSettings1Request(c.Server, workspaceId, addonId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus3WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatus3RequestWithBody(c.Server, workspaceId, addonId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus3(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatus3Request(c.Server, workspaceId, addonId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAddonUserJWT(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAddonUserJWTRequest(c.Server, workspaceId, addonId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAddonWebhooks(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAddonWebhooksRequest(c.Server, workspaceId, addonId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveUninstalledAddon(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUninstalledAddonRequest(c.Server, workspaceId, addonKey) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListOfWorkspace1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOfWorkspace1Request(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create20WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate20RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create20(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate20Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete18(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete18Request(c.Server, workspaceId, alertId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update11WithBody(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate11RequestWithBody(c.Server, workspaceId, alertId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update11(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate11Request(c.Server, workspaceId, alertId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllowedUpdates(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllowedUpdatesRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ApproveRequestsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewApproveRequestsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ApproveRequests(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewApproveRequestsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCountRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Count(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCountRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HasPending(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHasPendingRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemindManagersToApproveWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemindManagersToApproveRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemindManagersToApprove(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemindManagersToApproveRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemindUsersToSubmitWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemindUsersToSubmitRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemindUsersToSubmit(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemindUsersToSubmitRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovalGroupsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovalGroupsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovalGroups(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovalGroupsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUnsubmittedSummariesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUnsubmittedSummariesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUnsubmittedSummaries(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUnsubmittedSummariesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WithdrawAllOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWithdrawAllOfWorkspaceRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetRequestsByWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRequestsByWorkspaceRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovalRequest(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovalRequestRequest(c.Server, workspaceId, approvalRequestId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus2WithBody(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatus2RequestWithBody(c.Server, workspaceId, approvalRequestId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus2(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatus2Request(c.Server, workspaceId, approvalRequestId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovalDashboard(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovalDashboardRequest(c.Server, workspaceId, approvalRequestId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovalDetails(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovalDetailsRequest(c.Server, workspaceId, approvalRequestId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FetchCustomAttributesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFetchCustomAttributesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FetchCustomAttributes(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFetchCustomAttributesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CheckWorkspaceTransferPossibility(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCheckWorkspaceTransferPossibilityRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany3WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteMany3RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany3(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteMany3Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClients1(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClients1Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMany2RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMany2(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMany2Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create19WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate19RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create19(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate19Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetArchivePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetArchivePermissionsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetArchivePermissions(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetArchivePermissionsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HaveRelatedTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHaveRelatedTasksRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HaveRelatedTasks(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHaveRelatedTasksRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClientsOfIdsWithBody(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientsOfIdsRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClientsOfIds(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientsOfIdsRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClientsForInvoiceFilter1(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientsForInvoiceFilter1Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClients2(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClients2Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClientsForReportFilter(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientsForReportFilterRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClientIdsForReportFilter(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientIdsForReportFilterRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffPoliciesAndHolidaysForClientWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffPoliciesAndHolidaysForClient(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffPoliciesAndHolidaysForClientRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete17(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete17Request(c.Server, workspaceId, clientId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClient(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientRequest(c.Server, workspaceId, clientId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectsArchivePermissions(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectsArchivePermissionsRequest(c.Server, workspaceId, clientId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update10WithBody(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate10RequestWithBody(c.Server, workspaceId, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update10(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate10Request(c.Server, workspaceId, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRate2RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRate2(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRate2Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetCoupon(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCouponRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkspaceCurrencies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkspaceCurrenciesRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCurrencyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateCurrency(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCurrencyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveCurrencyRequest(c.Server, workspaceId, currencyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCurrencyRequest(c.Server, workspaceId, currencyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCurrencyCodeWithBody(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCurrencyCodeRequestWithBody(c.Server, workspaceId, currencyId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCurrencyCode(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCurrencyCodeRequest(c.Server, workspaceId, currencyId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCurrencyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCurrency(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCurrencyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) OfWorkspace(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewOfWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create18WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate18RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create18(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate18Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) OfWorkspaceWithRequiredAvailability(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewOfWorkspaceWithRequiredAvailabilityRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete16(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete16Request(c.Server, workspaceId, customFieldId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditWithBody(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditRequestWithBody(c.Server, workspaceId, customFieldId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Edit(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditRequest(c.Server, workspaceId, customFieldId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveDefaultValueOfProject(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveDefaultValueOfProjectRequest(c.Server, workspaceId, customFieldId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditDefaultValuesWithBody(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditDefaultValuesRequestWithBody(c.Server, workspaceId, customFieldId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditDefaultValues(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditDefaultValuesRequest(c.Server, workspaceId, customFieldId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOfProject(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOfProjectRequest(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCustomLabelsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomLabelsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCustomLabels(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomLabelsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddEmailWithBody(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddEmailRequestWithBody(c.Server, workspaceId, userId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddEmail(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddEmailRequest(c.Server, workspaceId, userId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteManyExpensesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteManyExpenses(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteManyExpensesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetExpenses(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetExpensesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateExpenseWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateExpenseRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetCategories(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCategoriesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create17WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate17RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create17(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate17Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetCategoriesByIds(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCategoriesByIdsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteCategory(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteCategoryRequest(c.Server, workspaceId, categoryId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCategoryWithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCategoryRequestWithBody(c.Server, workspaceId, categoryId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCategory(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCategoryRequest(c.Server, workspaceId, categoryId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus1WithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatus1RequestWithBody(c.Server, workspaceId, categoryId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus1(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatus1Request(c.Server, workspaceId, categoryId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetExpensesInDateRange(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetExpensesInDateRangeRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoicedStatus1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoicedStatus1RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoicedStatus1(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoicedStatus1Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RestoreManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRestoreManyExpensesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RestoreManyExpenses(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRestoreManyExpensesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteExpenseRequest(c.Server, workspaceId, expenseId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetExpenseRequest(c.Server, workspaceId, expenseId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateExpenseWithBody(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateExpenseRequestWithBody(c.Server, workspaceId, expenseId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DownloadFile(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadFileRequest(c.Server, workspaceId, expenseId, fileId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ImportFileDataWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewImportFileDataRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ImportFileData(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewImportFileDataRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CheckUsersForImport(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCheckUsersForImportRequest(c.Server, workspaceId, fileImportId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetHolidays(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetHolidaysRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create16WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate16RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create16(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate16Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete15(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete15Request(c.Server, workspaceId, holidayId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update9WithBody(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate9RequestWithBody(c.Server, workspaceId, holidayId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update9(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate9Request(c.Server, workspaceId, holidayId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRate2RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRate2(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRate2Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvitedEmailsInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvitedEmailsInfoRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvitedEmailsInfo(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvitedEmailsInfoRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoiceEmailTemplates(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoiceEmailTemplatesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpsertInvoiceEmailTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertInvoiceEmailTemplateRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpsertInvoiceEmailTemplate(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertInvoiceEmailTemplateRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoiceEmailData(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoiceEmailDataRequest(c.Server, workspaceId, invoiceId, invoiceEmailTemplateType) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SendInvoiceEmailWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendInvoiceEmailRequestWithBody(c.Server, workspaceId, invoiceId, invoiceEmailTemplateType, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SendInvoiceEmail(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSendInvoiceEmailRequest(c.Server, workspaceId, invoiceId, invoiceEmailTemplateType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateInvoiceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvoiceRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateInvoice(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvoiceRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllCompaniesRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateCompanyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCompanyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateCompany(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCompanyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCompaniesInWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCompaniesInWorkspaceRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCompaniesInWorkspace(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCompaniesInWorkspaceRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CountAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCountAllCompaniesRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClientsForInvoiceFilter(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientsForInvoiceFilterRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteCompany(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteCompanyRequest(c.Server, workspaceId, companyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetCompanyById(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCompanyByIdRequest(c.Server, workspaceId, companyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCompanyWithBody(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCompanyRequestWithBody(c.Server, workspaceId, companyId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCompany(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCompanyRequest(c.Server, workspaceId, companyId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoicesInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoicesInfoRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoicesInfo(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoicesInfoRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoiceItemTypes(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoiceItemTypesRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvoiceItemTypeRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateInvoiceItemType(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvoiceItemTypeRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteInvoiceItemType(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteInvoiceItemTypeRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoiceItemTypeRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoiceItemType(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoiceItemTypeRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetNextInvoiceNumber(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNextInvoiceNumberRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoicePermissions(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoicePermissionsRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoicePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoicePermissionsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoicePermissions(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoicePermissionsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CanUserManageInvoices(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCanUserManageInvoicesRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoiceSettings(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoiceSettingsRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoiceSettingsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoiceSettingsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoiceSettings(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoiceSettingsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteInvoiceRequest(c.Server, workspaceId, invoiceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoiceRequest(c.Server, workspaceId, invoiceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoiceWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoiceRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoice(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoiceRequest(c.Server, workspaceId, invoiceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DuplicateInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDuplicateInvoiceRequest(c.Server, workspaceId, invoiceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExportInvoice(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExportInvoiceRequest(c.Server, workspaceId, invoiceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ImportTimeAndExpensesWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewImportTimeAndExpensesRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ImportTimeAndExpenses(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewImportTimeAndExpensesRequest(c.Server, workspaceId, invoiceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddInvoiceItemRequest(c.Server, workspaceId, invoiceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReorderInvoiceItem1WithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReorderInvoiceItem1RequestWithBody(c.Server, workspaceId, invoiceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReorderInvoiceItem1(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReorderInvoiceItem1Request(c.Server, workspaceId, invoiceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditInvoiceItemWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditInvoiceItemRequestWithBody(c.Server, workspaceId, invoiceId, invoiceItemOrder, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditInvoiceItemRequest(c.Server, workspaceId, invoiceId, invoiceItemOrder, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteInvoiceItems(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteInvoiceItemsRequest(c.Server, workspaceId, invoiceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPaymentsForInvoice(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPaymentsForInvoiceRequest(c.Server, workspaceId, invoiceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateInvoicePaymentWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvoicePaymentRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateInvoicePayment(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateInvoicePaymentRequest(c.Server, workspaceId, invoiceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeletePaymentById(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeletePaymentByIdRequest(c.Server, workspaceId, invoiceId, paymentId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ChangeInvoiceStatusWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeInvoiceStatusRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ChangeInvoiceStatus(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewChangeInvoiceStatusRequest(c.Server, workspaceId, invoiceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AuthorizationCheck(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAuthorizationCheckRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) IsAvailable(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewIsAvailableRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) IsAvailable1(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewIsAvailable1Request(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GeneratePinCode(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGeneratePinCodeRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GeneratePinCodeForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGeneratePinCodeForUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserPinCode(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserPinCodeRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdatePinCodeWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePinCodeRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdatePinCode(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePinCodeRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetKiosksOfWorkspace(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetKiosksOfWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create15WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate15RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create15(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate15Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateBreakDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateBreakDefaultsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateBreakDefaults(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateBreakDefaultsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTotalCountOfKiosksOnWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTotalCountOfKiosksOnWorkspaceRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDefaultsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateDefaults(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDefaultsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HasActiveKiosks(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHasActiveKiosksRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWithProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWithProjectRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWithProject(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWithProjectRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWithTaskWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWithTaskRequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWithTask(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWithTaskRequest(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetForReportFilter(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetForReportFilterRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWithoutDefaults(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWithoutDefaultsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteKiosk(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteKioskRequest(c.Server, workspaceId, kioskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetKioskById(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetKioskByIdRequest(c.Server, workspaceId, kioskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update8WithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate8RequestWithBody(c.Server, workspaceId, kioskId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update8(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate8Request(c.Server, workspaceId, kioskId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExportAssignees(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExportAssigneesRequest(c.Server, workspaceId, kioskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HasEntryInProgress(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHasEntryInProgressRequest(c.Server, workspaceId, kioskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatusWithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatusRequestWithBody(c.Server, workspaceId, kioskId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStatus(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStatusRequest(c.Server, workspaceId, kioskId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AcknowledgeLegacyPlanNotifications(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAcknowledgeLegacyPlanNotificationsRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLegacyPlanUpgradeData(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLegacyPlanUpgradeDataRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddLimitedUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddLimitedUsersRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddLimitedUsers(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddLimitedUsersRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLimitedUsersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLimitedUsersCountRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetMemberProfile(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetMemberProfileRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberProfileWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberProfileRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberProfile(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberProfileRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberProfileWithAdditionalDataWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberProfileWithAdditionalDataRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberProfileWithAdditionalData(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberProfileWithAdditionalDataRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberSettingsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberSettingsRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberSettings(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberSettingsRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWeekStart(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWeekStartRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberWorkingDaysAndCapacityWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberWorkingDaysAndCapacityRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMemberWorkingDaysAndCapacity(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMemberWorkingDaysAndCapacityRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetMembersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetMembersCountRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindNotInvitedEmailsInWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindNotInvitedEmailsInRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindNotInvitedEmailsIn(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindNotInvitedEmailsInRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrganization(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create14WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate14RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create14(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate14Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrganizationName(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationNameRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CheckAvailabilityOfDomainName(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCheckAvailabilityOfDomainNameRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteOrganization(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrganizationRequest(c.Server, workspaceId, organizationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateOrganizationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateOrganization(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOrganizationRequest(c.Server, workspaceId, organizationId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLoginSettings(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLoginSettingsRequest(c.Server, workspaceId, organizationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOAuth2ConfigurationRequest(c.Server, workspaceId, organizationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrganizationOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationOAuth2ConfigurationRequest(c.Server, workspaceId, organizationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateOAuth2Configuration1WithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOAuth2Configuration1RequestWithBody(c.Server, workspaceId, organizationId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateOAuth2Configuration1(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateOAuth2Configuration1Request(c.Server, workspaceId, organizationId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TestOAuth2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestOAuth2ConfigurationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TestOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestOAuth2ConfigurationRequest(c.Server, workspaceId, organizationId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSAML2ConfigurationRequest(c.Server, workspaceId, organizationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrganizationSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrganizationSAML2ConfigurationRequest(c.Server, workspaceId, organizationId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSAML2ConfigurationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSAML2ConfigurationRequest(c.Server, workspaceId, organizationId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TestSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestSAML2ConfigurationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TestSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTestSAML2ConfigurationRequest(c.Server, workspaceId, organizationId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllOrganizationsOfUser(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllOrganizationsOfUserRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkspaceOwner(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkspaceOwnerRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TransferOwnershipWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTransferOwnershipRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TransferOwnership(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTransferOwnershipRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkspaceOwnerTimeZone(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkspaceOwnerTimeZoneRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CancelSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CancelSubscription(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCancelSubscriptionRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ConfirmPayment(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConfirmPaymentRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetCustomerInfo(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCustomerInfoRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCustomerRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateCustomer(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCustomerRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomerRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCustomer(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomerRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditInvoiceInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditInvoiceInformationRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditInvoiceInformation(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditInvoiceInformationRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditPaymentInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditPaymentInformationRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditPaymentInformation(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditPaymentInformationRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ExtendTrial(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewExtendTrialRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFeatureSubscriptions(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFeatureSubscriptionsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) InitialUpgradeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInitialUpgradeRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) InitialUpgrade(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewInitialUpgradeRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoiceInfoRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoices(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoicesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoicesCount(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoicesCountRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLastOpenInvoice(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLastOpenInvoiceRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetInvoicesList(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInvoicesListRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPaymentDate(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPaymentDateRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPaymentInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPaymentInfoRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSetupIntentForPaymentMethodWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSetupIntentForPaymentMethodRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSetupIntentForPaymentMethod(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSetupIntentForPaymentMethodRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PreviewUpgrade(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPreviewUpgradeRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReactivateSubscription(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReactivateSubscriptionRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetScheduledInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetScheduledInvoiceInfoRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateUserSeatsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserSeatsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateUserSeats(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserSeatsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSetupIntentForInitialSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSetupIntentForInitialSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSetupIntentForInitialSubscription(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSetupIntentForInitialSubscriptionRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateSubscription(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSubscriptionRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSubscription(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSubscriptionRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpgradePreCheck(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpgradePreCheckRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteSubscription(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSubscriptionRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TerminateTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTerminateTrialRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) StartTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStartTrialRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WasRegionalEverAllowed(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWasRegionalEverAllowedRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindForUserAndPolicy(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindForUserAndPolicyRequest(c.Server, workspaceId, policyId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetClients(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetClientsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjects3(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjects3Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectFavorites(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectFavoritesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasks21(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasks21Request(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RecalculateProjectStatus1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRecalculateProjectStatus1Request(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectAndTaskWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectAndTaskRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectAndTask(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectAndTaskRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteMany2RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany2(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteMany2Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjects2(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjects2Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMany1WithBody(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMany1RequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMany1(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateMany1Request(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create12WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate12RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create12(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate12Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredProjectsCount(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredProjectsCountRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredProjectsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredProjects(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredProjectsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFromTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFromTemplateRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFromTemplate(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFromTemplateRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProject(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLastUsedProject(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLastUsedProjectRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) LastUsedProject1(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLastUsedProject1Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectsList(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectsListRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HasManagerRole1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHasManagerRole1Request(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectsForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectsForReportFilter(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectsForReportFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectIdsForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectIdsForReportFilter(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectIdsForReportFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasksByIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksByIdsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasksByIds(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksByIdsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllTasksRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllTasks(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllTasksRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasksWithBody(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasks(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasksForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasksForReportFilter(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksForReportFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTaskIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTaskIdsForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTaskIdsForReportFilter(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTaskIdsForReportFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffPoliciesAndHolidaysWithProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffPoliciesAndHolidaysWithProjects(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffPoliciesAndHolidaysWithProjectsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLastUsedOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLastUsedOfUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPermissionsToUserForProjectsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPermissionsToUserForProjectsRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPermissionsToUserForProjects(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPermissionsToUserForProjectsRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete13(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete13Request(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProject1(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProject1Request(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update14WithBody(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate14RequestWithBody(c.Server, workspaceId, projectId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update14(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate14Request(c.Server, workspaceId, projectId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update6WithBody(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate6RequestWithBody(c.Server, workspaceId, projectId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update6(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate6Request(c.Server, workspaceId, projectId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRate1RequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRate1(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRate1Request(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateEstimateWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateEstimateRequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateEstimate(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateEstimateRequest(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRate1RequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRate1(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRate1Request(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HasManagerRole(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHasManagerRoleRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAuthsForProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAuthsForProjectRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RecalculateProjectStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRecalculateProjectStatusRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasks1(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasks1Request(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create13WithBody(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate13RequestWithBody(c.Server, workspaceId, projectId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create13(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate13Request(c.Server, workspaceId, projectId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTasksAssignedToUser(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTasksAssignedToUserRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffPoliciesAndHolidaysWithTasksWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffPoliciesAndHolidaysWithTasks(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffPoliciesAndHolidaysWithTasksRequest(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update7WithBody(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate7RequestWithBody(c.Server, workspaceId, projectId, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update7(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate7Request(c.Server, workspaceId, projectId, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRateRequestWithBody(c.Server, workspaceId, projectId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRate(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRateRequest(c.Server, workspaceId, projectId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRateRequestWithBody(c.Server, workspaceId, projectId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRate(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRateRequest(c.Server, workspaceId, projectId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete14(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete14Request(c.Server, workspaceId, projectId, taskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTaskAssignedToUser(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTaskAssignedToUserRequest(c.Server, workspaceId, projectId, taskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsers1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsers1RequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsers1(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsers1Request(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetStatusRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveUserGroupMembership(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUserGroupMembershipRequest(c.Server, workspaceId, projectId, usergroupId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsers4(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsers4Request(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersCostRate1RequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersCostRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersCostRate1Request(c.Server, workspaceId, projectId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersHourlyRate1RequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersHourlyRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersHourlyRate1Request(c.Server, workspaceId, projectId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveUserMembership(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUserMembershipRequest(c.Server, workspaceId, projectId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemovePermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemovePermissionsToUserRequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemovePermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemovePermissionsToUserRequest(c.Server, workspaceId, projectId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPermissionsToUser1(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPermissionsToUser1Request(c.Server, workspaceId, projectId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddPermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddPermissionsToUserRequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddPermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddPermissionsToUserRequest(c.Server, workspaceId, projectId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Disconnect(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDisconnectRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ConnectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnectRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Connect(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnectRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Connect1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnect1Request(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SyncClientsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSyncClientsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SyncClients(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSyncClientsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SyncProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSyncProjectsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SyncProjects(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSyncProjectsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateProjects(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllRegionsForUserAccount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllRegionsForUserAccountRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOfWorkspaceRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create11WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate11RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create11(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate11Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) OfWorkspaceIdAndUserId(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewOfWorkspaceIdAndUserIdRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete12(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete12Request(c.Server, workspaceId, reminderId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update5WithBody(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate5RequestWithBody(c.Server, workspaceId, reminderId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update5(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate5Request(c.Server, workspaceId, reminderId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetDashboardInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDashboardInfoRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetDashboardInfo(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDashboardInfoRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetMyMostTracked(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetMyMostTrackedRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTeamActivities(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamActivitiesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAmountPreview(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAmountPreviewRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetDraftAssignmentsCountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDraftAssignmentsCountRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetDraftAssignmentsCount(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDraftAssignmentsCountRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectTotals(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectTotalsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredProjectTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredProjectTotalsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredProjectTotals(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredProjectTotalsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectTotalsForSingleProject(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectTotalsForSingleProjectRequest(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjectsForUser(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectsForUserRequest(c.Server, workspaceId, projectId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PublishAssignmentsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPublishAssignmentsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PublishAssignments(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPublishAssignmentsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateRecurringWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRecurringRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateRecurring(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRecurringRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete11(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete11Request(c.Server, workspaceId, assignmentId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditRecurringRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditRecurringRequest(c.Server, workspaceId, assignmentId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditPeriodForRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditPeriodForRecurringRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditPeriodForRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditPeriodForRecurringRequest(c.Server, workspaceId, assignmentId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditRecurringPeriodWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditRecurringPeriodRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditRecurringPeriod(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditRecurringPeriodRequest(c.Server, workspaceId, assignmentId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserTotalsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserTotals(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserTotalsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAssignmentsForUser(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAssignmentsForUserRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredAssignmentsForUserWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredAssignmentsForUserRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFilteredAssignmentsForUser(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFilteredAssignmentsForUserRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsers3(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsers3Request(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjects1(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjects1Request(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemindToPublish(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemindToPublishRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserTotalsForSingleUser(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserTotalsForSingleUserRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Get3(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGet3Request(c.Server, workspaceId, assignmentId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CopyAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCopyAssignmentRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CopyAssignment(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCopyAssignmentRequest(c.Server, workspaceId, assignmentId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SplitAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSplitAssignmentRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SplitAssignment(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSplitAssignmentRequest(c.Server, workspaceId, assignmentId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ShiftScheduleWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewShiftScheduleRequestWithBody(c.Server, workspaceId, projectId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ShiftSchedule(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewShiftScheduleRequest(c.Server, workspaceId, projectId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HideProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHideProjectRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ShowProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewShowProjectRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) HideUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewHideUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ShowUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewShowUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create10WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate10RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create10(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate10Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete10(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete10Request(c.Server, workspaceId, milestoneId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Get2(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGet2Request(c.Server, workspaceId, milestoneId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Edit1WithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEdit1RequestWithBody(c.Server, workspaceId, milestoneId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Edit1(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEdit1Request(c.Server, workspaceId, milestoneId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditDateWithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditDateRequestWithBody(c.Server, workspaceId, milestoneId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EditDate(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditDateRequest(c.Server, workspaceId, milestoneId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetProjects(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetProjectsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsers2(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsers2Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersAssignedToProjectRequest(c.Server, workspaceId, projectId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSidebarConfig(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSidebarConfigRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSidebarWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSidebarRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateSidebar(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateSidebarRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FilterUsersByStatusWithBody(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFilterUsersByStatusRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FilterUsersByStatus(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFilterUsersByStatusRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete9RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete9(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete9Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) StopWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStopRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Stop(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStopRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) StartWithBody(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStartRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Start(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewStartRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteMany1RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany1(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteMany1Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTags(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTagsRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateManyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateMany(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateManyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate9RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create9(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate9Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ConnectedToApprovedEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnectedToApprovedEntriesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ConnectedToApprovedEntries(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnectedToApprovedEntriesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTagsOfIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTagsOfIdsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTagsOfIds(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTagsOfIdsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTagIdsByNameAndStatus(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTagIdsByNameAndStatusRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete8(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete8Request(c.Server, workspaceId, tagId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update4WithBody(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate4RequestWithBody(c.Server, workspaceId, tagId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update4(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate4Request(c.Server, workspaceId, tagId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTemplates(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTemplatesRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create8WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate8RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create8(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate8Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete7(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete7Request(c.Server, workspaceId, templateId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTemplate(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTemplateRequest(c.Server, workspaceId, templateId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update13WithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate13RequestWithBody(c.Server, workspaceId, templateId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update13(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate13Request(c.Server, workspaceId, templateId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ActivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewActivateRequestWithBody(c.Server, workspaceId, templateId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Activate(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewActivateRequest(c.Server, workspaceId, templateId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeactivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeactivateRequestWithBody(c.Server, workspaceId, templateId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Deactivate(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeactivateRequest(c.Server, workspaceId, templateId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CopyTimeEntriesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCopyTimeEntriesRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CopyTimeEntries(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCopyTimeEntriesRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ContinueTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewContinueTimeEntryRequest(c.Server, workspaceId, timeEntryId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTeamMembersOfAdmin(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamMembersOfAdminRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetBalancesForPolicy(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetBalancesForPolicyRequest(c.Server, workspaceId, policyId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateBalanceWithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateBalanceRequestWithBody(c.Server, workspaceId, policyId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateBalance(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateBalanceRequest(c.Server, workspaceId, policyId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetBalancesForUser(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetBalancesForUserRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTeamMembersOfManager(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamMembersOfManagerRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindPoliciesForWorkspace(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindPoliciesForWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreatePolicyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePolicyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreatePolicy(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreatePolicyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPolicyAssignmentForCurrentUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyAssignmentForCurrentUserRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTeamAssignmentsDistribution(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAssignmentsDistributionRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPolicyAssignmentsForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyAssignmentsForUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) FindPoliciesForUser(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewFindPoliciesForUserRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeletePolicy(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeletePolicyRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdatePolicyWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePolicyRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdatePolicy(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdatePolicyRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Archive(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewArchiveRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Restore(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRestoreRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPolicy(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyRequest(c.Server, workspaceId, policyId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create7WithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate7RequestWithBody(c.Server, workspaceId, policyId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create7(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate7Request(c.Server, workspaceId, policyId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete6(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete6Request(c.Server, workspaceId, policyId, requestId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Approve(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewApproveRequest(c.Server, workspaceId, policyId, requestId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RejectWithBody(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRejectRequestWithBody(c.Server, workspaceId, policyId, requestId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Reject(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRejectRequest(c.Server, workspaceId, policyId, requestId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOther1WithBody(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOther1RequestWithBody(c.Server, workspaceId, policyId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOther1(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOther1Request(c.Server, workspaceId, policyId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Get1WithBody(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGet1RequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Get1(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGet1Request(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeOffRequestById(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeOffRequestByIdRequest(c.Server, workspaceId, requestId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllUsersOfWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupsOfWorkspace(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupsOfWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersOfWorkspaceRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWithBody(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Get(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimelineForReportsWithBody(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimelineForReportsRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimelineForReports(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimelineForReportsRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteManyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteMany(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteManyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntriesBySearchValue(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntriesBySearchValueRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create6WithBody(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate6RequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create6(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate6Request(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchTimeEntriesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchTimeEntries(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchTimeEntriesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EndStartedWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEndStartedRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) EndStarted(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEndStartedRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetMultipleTimeEntriesById(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetMultipleTimeEntriesByIdRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFull1WithBody(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFull1RequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFull1(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFull1Request(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntryInProgress(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntryInProgressRequest(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoicedStatusWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoicedStatusRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateInvoicedStatus(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateInvoicedStatusRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListOfProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOfProjectRequest(c.Server, workspaceId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntriesRecentlyUsed(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntriesRecentlyUsedRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RestoreTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRestoreTimeEntriesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RestoreTimeEntries(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRestoreTimeEntriesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForManyRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForMany(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForManyRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOthersWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOthersRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOthers(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOthersRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ListOfFull(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListOfFullRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntries(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntriesRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AssertTimeEntriesExistInDateRange(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAssertTimeEntriesExistInDateRangeRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFullWithBody(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFullRequestWithBody(c.Server, workspaceId, userId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFull(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFullRequest(c.Server, workspaceId, userId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntriesInRange(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntriesInRangeRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntriesForTimesheet(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntriesForTimesheetRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Patch(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update3WithBody(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate3RequestWithBody(c.Server, workspaceId, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update3(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate3Request(c.Server, workspaceId, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntryAttributes(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntryAttributesRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTimeEntryAttributeRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTimeEntryAttributeRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTimeEntryAttributeRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTimeEntryAttributeRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateBillableWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateBillableRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateBillable(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateBillableRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateDescriptionWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDescriptionRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateDescription(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateDescriptionRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateEndWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateEndRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateEnd(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateEndRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateFullWithBody(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateFullRequestWithBody(c.Server, workspaceId, id, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateFull(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateFullRequest(c.Server, workspaceId, id, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateProjectWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateProject(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveProject(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveProjectRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateProjectAndTaskWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectAndTaskRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateProjectAndTask(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateProjectAndTaskRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAndSplitWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAndSplitRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateAndSplit(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAndSplitRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SplitTimeEntryWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSplitTimeEntryRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SplitTimeEntry(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSplitTimeEntryRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStartWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStartRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateStart(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateStartRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTagsWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTagsRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTags(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTagsRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveTask(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveTaskRequest(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimeIntervalWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimeIntervalRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateTimeInterval(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateTimeIntervalRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateUserWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserRequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateUser(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserRequest(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete5(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete5Request(c.Server, workspaceId, timeEntryId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCustomFieldWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomFieldRequestWithBody(c.Server, workspaceId, timeEntryId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateCustomField(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCustomFieldRequest(c.Server, workspaceId, timeEntryId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PenalizeCurrentTimerAndStartNewTimeEntryWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody(c.Server, workspaceId, timeEntryId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PenalizeCurrentTimerAndStartNewTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPenalizeCurrentTimerAndStartNewTimeEntryRequest(c.Server, workspaceId, timeEntryId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TransferWorkspaceDeprecatedFlowWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTransferWorkspaceDeprecatedFlowRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TransferWorkspaceDeprecatedFlow(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTransferWorkspaceDeprecatedFlowRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TransferWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTransferWorkspaceRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TransferWorkspace(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTransferWorkspaceRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTrialActivationData(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTrialActivationDataRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveMember(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveMemberRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CopyTimeEntryCalendarDragWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCopyTimeEntryCalendarDragRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CopyTimeEntryCalendarDrag(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCopyTimeEntryCalendarDragRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DuplicateTimeEntry(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDuplicateTimeEntryRequest(c.Server, workspaceId, userId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroups1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroups1Request(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create5WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate5RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create5(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate5Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroups2(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroups2Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupNamesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupNamesRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupNames(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupNamesRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForReportFilter1(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForReportFilter1Request(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupForReportFilterPostWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupForReportFilterPostRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupForReportFilterPost(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupForReportFilterPostRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForAttendanceReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForAttendanceReportFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersForAttendanceReportFilter(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersForAttendanceReportFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupIdsByName(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupIdsByNameRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroupsWithBody(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupsRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserGroups(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserGroupsRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveUserWithBody(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUserRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveUser(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveUserRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersToUserGroupsFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersToUserGroupsFilterRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersToUserGroupsFilter(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersToUserGroupsFilterRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete4(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete4Request(c.Server, workspaceId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update2WithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate2RequestWithBody(c.Server, workspaceId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update2(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate2Request(c.Server, workspaceId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsers(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUsers1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsers1Request(c.Server, workspaceId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsersWithBody(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersRequestWithBody(c.Server, workspaceId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) AddUsers(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewAddUsersRequest(c.Server, workspaceId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetExpensesForUsers(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetExpensesForUsersRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetMembershipsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetMembershipsRequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetMemberships(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetMembershipsRequest(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ResendInvite(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewResendInviteRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateDeprecatedRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateDeprecated(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateDeprecatedRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRequestsByUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovedTotalsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovedTotalsRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetApprovedTotals(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetApprovedTotalsRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOtherDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOtherDeprecatedRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOtherDeprecated(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOtherDeprecatedRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPreviewWithBody(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPreviewRequestWithBody(c.Server, workspaceId, userId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPreview(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPreviewRequest(c.Server, workspaceId, userId, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntryStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntryStatusRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetTimeEntryWeekStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTimeEntryWeekStatusRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWeeklyRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWeeklyRequestsByUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WithdrawAllOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWithdrawAllOfUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WithdrawAllOfWorkspaceDeprecated(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWithdrawAllOfWorkspaceDeprecatedRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) WithdrawWeeklyOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWithdrawWeeklyOfUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRateForUser1RequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetCostRateForUser1(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetCostRateForUser1Request(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpsertUserCustomFieldValueWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertUserCustomFieldValueRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpsertUserCustomFieldValue(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpsertUserCustomFieldValueRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetFavoriteEntries(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetFavoriteEntriesRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFavoriteTimeEntryWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFavoriteTimeEntryRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateFavoriteTimeEntry(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateFavoriteTimeEntryRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReorderInvoiceItemWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReorderInvoiceItemRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReorderInvoiceItem(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReorderInvoiceItemRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete3(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete3Request(c.Server, workspaceId, userId, id) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update1WithBody(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate1RequestWithBody(c.Server, workspaceId, userId, id, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update1(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdate1Request(c.Server, workspaceId, userId, id, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetHolidays1(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetHolidays1Request(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRateForUser1RequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) SetHourlyRateForUser1(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSetHourlyRateForUser1Request(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPermissionsToUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPermissionsToUserRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) RemoveFavoriteProject(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewRemoveFavoriteProjectRequest(c.Server, workspaceId, userId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete2(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete2Request(c.Server, workspaceId, userId, projectFavoritesId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create4(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate4Request(c.Server, workspaceId, userId, projectId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete1(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDelete1Request(c.Server, workspaceId, userId, projectId, taskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create3(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate3Request(c.Server, workspaceId, userId, projectId, taskId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReSubmitWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReSubmitRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) ReSubmit(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewReSubmitRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUserRoles(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserRolesRequest(c.Server, workspaceId, userId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateUserRolesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserRolesRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateUserRoles(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserRolesRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create2WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate2RequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create2(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate2Request(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOtherWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOtherRequestWithBody(c.Server, workspaceId, userId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) CreateForOther(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateForOtherRequest(c.Server, workspaceId, userId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWorkCapacity(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkCapacityRequest(c.Server, workspaceId, userId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWebhooks(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWebhooksRequest(c.Server, workspaceId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate1RequestWithBody(c.Server, workspaceId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Create1(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreate1Request(c.Server, workspaceId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Delete(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteRequest(c.Server, workspaceId, webhookId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWebhookRequest(c.Server, workspaceId, webhookId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) UpdateWithBody(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateRequestWithBody(c.Server, workspaceId, webhookId, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) Update(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateRequest(c.Server, workspaceId, webhookId, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLogsForWebhook1(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLogsForWebhook1Request(c.Server, workspaceId, webhookId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLogCount(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLogCountRequest(c.Server, workspaceId, webhookId, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TriggerResendEventForWebhook(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTriggerResendEventForWebhookRequest(c.Server, workspaceId, webhookId, webhookLogId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) TriggerTestEventForWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewTriggerTestEventForWebhookRequest(c.Server, workspaceId, webhookId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GenerateNewToken(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGenerateNewTokenRequest(c.Server, workspaceId, webhookId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// NewGetInitialDataRequest generates requests for GetInitialData +func NewGetInitialDataRequest(server string, reportId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/expense-report/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDownloadReportRequest calls the generic DownloadReport builder with application/json body +func NewDownloadReportRequest(server string, reportId string, body DownloadReportJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDownloadReportRequestWithBody(server, reportId, "application/json", bodyReader) +} + +// NewDownloadReportRequestWithBody generates requests for DownloadReport with any type of body +func NewDownloadReportRequestWithBody(server string, reportId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/expense-report/%s/download", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewResetPinRequest generates requests for ResetPin +func NewResetPinRequest(server string, reportId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/expense-report/%s/reset-pin", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewValidatePinRequest calls the generic ValidatePin builder with application/json body +func NewValidatePinRequest(server string, reportId string, body ValidatePinJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewValidatePinRequestWithBody(server, reportId, "application/json", bodyReader) +} + +// NewValidatePinRequestWithBody generates requests for ValidatePin with any type of body +func NewValidatePinRequestWithBody(server string, reportId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/expense-report/%s/validate-pin", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateSmtpConfigurationRequest calls the generic UpdateSmtpConfiguration builder with application/json body +func NewUpdateSmtpConfigurationRequest(server string, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSmtpConfigurationRequestWithBody(server, systemSettingsId, "application/json", bodyReader) +} + +// NewUpdateSmtpConfigurationRequestWithBody generates requests for UpdateSmtpConfiguration with any type of body +func NewUpdateSmtpConfigurationRequestWithBody(server string, systemSettingsId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "systemSettingsId", runtime.ParamLocationPath, systemSettingsId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/system-settings/%s/smtp-configuration", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDisableAccessToEntitiesInTransferRequest calls the generic DisableAccessToEntitiesInTransfer builder with application/json body +func NewDisableAccessToEntitiesInTransferRequest(server string, body DisableAccessToEntitiesInTransferJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDisableAccessToEntitiesInTransferRequestWithBody(server, "application/json", bodyReader) +} + +// NewDisableAccessToEntitiesInTransferRequestWithBody generates requests for DisableAccessToEntitiesInTransfer with any type of body +func NewDisableAccessToEntitiesInTransferRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/access/disable") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEnableAccessToEntitiesInTransferRequest generates requests for EnableAccessToEntitiesInTransfer +func NewEnableAccessToEntitiesInTransferRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/access/enable/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUsersExistRequest calls the generic UsersExist builder with application/json body +func NewUsersExistRequest(server string, body UsersExistJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUsersExistRequestWithBody(server, "application/json", bodyReader) +} + +// NewUsersExistRequestWithBody generates requests for UsersExist with any type of body +func NewUsersExistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/workspace-info/users-exist") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHandleCleanupOnSourceRegionRequest generates requests for HandleCleanupOnSourceRegion +func NewHandleCleanupOnSourceRegionRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/%s/cleanup", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewHandleTransferCompletedOnSourceRegionRequest generates requests for HandleTransferCompletedOnSourceRegion +func NewHandleTransferCompletedOnSourceRegionRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/%s/completed", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewHandleTransferCompletedFailureRequest calls the generic HandleTransferCompletedFailure builder with application/json body +func NewHandleTransferCompletedFailureRequest(server string, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewHandleTransferCompletedFailureRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewHandleTransferCompletedFailureRequestWithBody generates requests for HandleTransferCompletedFailure with any type of body +func NewHandleTransferCompletedFailureRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/%s/failure", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHandleTransferCompletedSuccessRequest calls the generic HandleTransferCompletedSuccess builder with application/json body +func NewHandleTransferCompletedSuccessRequest(server string, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewHandleTransferCompletedSuccessRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewHandleTransferCompletedSuccessRequestWithBody generates requests for HandleTransferCompletedSuccess with any type of body +func NewHandleTransferCompletedSuccessRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/transfer/%s/success", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllUsersRequest generates requests for GetAllUsers +func NewGetAllUsersRequest(server string, params *GetAllUsersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchEmail != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchEmail", runtime.ParamLocationQuery, *params.SearchEmail); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictEmailSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictEmailSearch", runtime.ParamLocationQuery, *params.StrictEmailSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchName != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchName", runtime.ParamLocationQuery, *params.SearchName); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictNameSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictNameSearch", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserInfoRequest calls the generic GetUserInfo builder with application/json body +func NewGetUserInfoRequest(server string, body GetUserInfoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserInfoRequestWithBody(server, "application/json", bodyReader) +} + +// NewGetUserInfoRequestWithBody generates requests for GetUserInfo with any type of body +func NewGetUserInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/ids") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUserMembershipsAndInvitesRequest calls the generic GetUserMembershipsAndInvites builder with application/json body +func NewGetUserMembershipsAndInvitesRequest(server string, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserMembershipsAndInvitesRequestWithBody(server, params, "application/json", bodyReader) +} + +// NewGetUserMembershipsAndInvitesRequestWithBody generates requests for GetUserMembershipsAndInvites with any type of body +func NewGetUserMembershipsAndInvitesRequestWithBody(server string, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/memberships") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.SubDomainName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName) + if err != nil { + return nil, err + } + + req.Header.Set("Sub-Domain-Name", headerParam0) + } + + } + + return req, nil +} + +// NewCheckForNewsletterSubscriptionRequest generates requests for CheckForNewsletterSubscription +func NewCheckForNewsletterSubscriptionRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/newsletter/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAddNotificationsRequestWithBody generates requests for AddNotifications with any type of body +func NewAddNotificationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/notifications") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetNewsRequest generates requests for GetNews +func NewGetNewsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/notifications/news") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteNewsRequest generates requests for DeleteNews +func NewDeleteNewsRequest(server string, newsId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "newsId", runtime.ParamLocationPath, newsId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/notifications/news/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateNewsRequestWithBody generates requests for UpdateNews with any type of body +func NewUpdateNewsRequestWithBody(server string, newsId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "newsId", runtime.ParamLocationPath, newsId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/notifications/news/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSearchAllUsersRequest generates requests for SearchAllUsers +func NewSearchAllUsersRequest(server string, params *SearchAllUsersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/search") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Email != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictEmailSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictEmailSearch", runtime.ParamLocationQuery, *params.StrictEmailSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictNameSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictNameSearch", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.WorkspaceId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workspaceId", runtime.ParamLocationQuery, *params.WorkspaceId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.AgentTicketLink != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Agent-Ticket-Link", runtime.ParamLocationHeader, *params.AgentTicketLink) + if err != nil { + return nil, err + } + + req.Header.Set("Agent-Ticket-Link", headerParam0) + } + + } + + return req, nil +} + +// NewNumberOfUsersRegisteredRequest generates requests for NumberOfUsersRegistered +func NewNumberOfUsersRegisteredRequest(server string, params *NumberOfUsersRegisteredParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/user-count") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Days != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "days", runtime.ParamLocationQuery, *params.Days); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersOnWorkspaceRequest generates requests for GetUsersOnWorkspace +func NewGetUsersOnWorkspaceRequest(server string, workspaceId string, params *GetUsersOnWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchEmail != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchEmail", runtime.ParamLocationQuery, *params.SearchEmail); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewBulkEditUsersRequest calls the generic BulkEditUsers builder with application/json body +func NewBulkEditUsersRequest(server string, workspaceId string, body BulkEditUsersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewBulkEditUsersRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewBulkEditUsersRequestWithBody generates requests for BulkEditUsers with any type of body +func NewBulkEditUsersRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/bulk", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersOfWorkspace5Request generates requests for GetUsersOfWorkspace5 +func NewGetUsersOfWorkspace5Request(server string, workspaceId string, params *GetUsersOfWorkspace5Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Email != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ProjectId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, *params.ProjectId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Memberships != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInfoRequest calls the generic GetInfo builder with application/json body +func NewGetInfoRequest(server string, workspaceId string, body GetInfoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetInfoRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetInfoRequestWithBody generates requests for GetInfo with any type of body +func NewGetInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetMembersInfoRequest generates requests for GetMembersInfo +func NewGetMembersInfoRequest(server string, workspaceId string, params *GetMembersInfoParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/members", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserNamesRequest calls the generic GetUserNames builder with application/json body +func NewGetUserNamesRequest(server string, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserNamesRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGetUserNamesRequestWithBody generates requests for GetUserNames with any type of body +func NewGetUserNamesRequestWithBody(server string, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/names", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewFindPoliciesToBeApprovedByUserRequest generates requests for FindPoliciesToBeApprovedByUser +func NewFindPoliciesToBeApprovedByUserRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/policies-for-approval", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersAndUsersFromUserGroupsAssignedToProjectRequest generates requests for GetUsersAndUsersFromUserGroupsAssignedToProject +func NewGetUsersAndUsersFromUserGroupsAssignedToProjectRequest(server string, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Memberships != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersForProjectMembersFilterRequest calls the generic GetUsersForProjectMembersFilter builder with application/json body +func NewGetUsersForProjectMembersFilterRequest(server string, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUsersForProjectMembersFilterRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewGetUsersForProjectMembersFilterRequestWithBody generates requests for GetUsersForProjectMembersFilter with any type of body +func NewGetUsersForProjectMembersFilterRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/projects/%s/members-filter", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersForAttendanceReportFilter1Request calls the generic GetUsersForAttendanceReportFilter1 builder with application/json body +func NewGetUsersForAttendanceReportFilter1Request(server string, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUsersForAttendanceReportFilter1RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUsersForAttendanceReportFilter1RequestWithBody generates requests for GetUsersForAttendanceReportFilter1 with any type of body +func NewGetUsersForAttendanceReportFilter1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/attendance-report/team", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersOfWorkspace4Request generates requests for GetUsersOfWorkspace4 +func NewGetUsersOfWorkspace4Request(server string, workspaceId string, params *GetUsersOfWorkspace4Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersForReportFilterOldRequest generates requests for GetUsersForReportFilterOld +func NewGetUsersForReportFilterOldRequest(server string, workspaceId string, params *GetUsersForReportFilterOldParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/team", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SearchValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ForceFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force-filter", runtime.ParamLocationQuery, *params.ForceFilter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IgnoreFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignore-filter", runtime.ParamLocationQuery, *params.IgnoreFilter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludeIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludeIds", runtime.ParamLocationQuery, *params.ExcludeIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserStatuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userStatuses", runtime.ParamLocationQuery, *params.UserStatuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ReportType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reportType", runtime.ParamLocationQuery, *params.ReportType); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersForReportFilterRequest calls the generic GetUsersForReportFilter builder with application/json body +func NewGetUsersForReportFilterRequest(server string, workspaceId string, body GetUsersForReportFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUsersForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUsersForReportFilterRequestWithBody generates requests for GetUsersForReportFilter with any type of body +func NewGetUsersForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/team", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersOfUserGroupRequest generates requests for GetUsersOfUserGroup +func NewGetUsersOfUserGroupRequest(server string, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userGroupId", runtime.ParamLocationPath, userGroupId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/user-groups/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Memberships != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersOfWorkspace3Request generates requests for GetUsersOfWorkspace3 +func NewGetUsersOfWorkspace3Request(server string, workspaceId string, params *GetUsersOfWorkspace3Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/users/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersOfWorkspace2Request generates requests for GetUsersOfWorkspace2 +func NewGetUsersOfWorkspace2Request(server string, workspaceId string, params *GetUsersOfWorkspace2Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/workspaces/%s/with-pending", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Email != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchByNameOnly != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchByNameOnly", runtime.ParamLocationQuery, *params.SearchByNameOnly); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.EmailAsName != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email-as-name", runtime.ParamLocationQuery, *params.EmailAsName); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserStatuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userStatuses", runtime.ParamLocationQuery, *params.UserStatuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserRequest generates requests for GetUser +func NewGetUserRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateTimeTrackingSettings1Request calls the generic UpdateTimeTrackingSettings1 builder with application/json body +func NewUpdateTimeTrackingSettings1Request(server string, userId string, body UpdateTimeTrackingSettings1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTimeTrackingSettings1RequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateTimeTrackingSettings1RequestWithBody generates requests for UpdateTimeTrackingSettings1 with any type of body +func NewUpdateTimeTrackingSettings1RequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/compactView", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateDashboardSelectionRequest calls the generic UpdateDashboardSelection builder with application/json body +func NewUpdateDashboardSelectionRequest(server string, userId string, body UpdateDashboardSelectionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateDashboardSelectionRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateDashboardSelectionRequestWithBody generates requests for UpdateDashboardSelection with any type of body +func NewUpdateDashboardSelectionRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/dashboardMe", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetDefaultWorkspaceRequest generates requests for SetDefaultWorkspace +func NewSetDefaultWorkspaceRequest(server string, userId string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/defaultWorkspace/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteUserRequest calls the generic DeleteUser builder with application/json body +func NewDeleteUserRequest(server string, userId string, body DeleteUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteUserRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewDeleteUserRequestWithBody generates requests for DeleteUser with any type of body +func NewDeleteUserRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/delete", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewChangeEmailRequest calls the generic ChangeEmail builder with application/json body +func NewChangeEmailRequest(server string, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewChangeEmailRequestWithBody(server, userId, params, "application/json", bodyReader) +} + +// NewChangeEmailRequestWithBody generates requests for ChangeEmail with any type of body +func NewChangeEmailRequestWithBody(server string, userId string, params *ChangeEmailParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/email", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.SubDomainName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName) + if err != nil { + return nil, err + } + + req.Header.Set("Sub-Domain-Name", headerParam0) + } + + } + + return req, nil +} + +// NewHasPendingEmailChangeRequest generates requests for HasPendingEmailChange +func NewHasPendingEmailChangeRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/emails/change-verification", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateLangRequest calls the generic UpdateLang builder with application/json body +func NewUpdateLangRequest(server string, userId string, body UpdateLangJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateLangRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateLangRequestWithBody generates requests for UpdateLang with any type of body +func NewUpdateLangRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/lang", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewMarkAsRead1Request calls the generic MarkAsRead1 builder with application/json body +func NewMarkAsRead1Request(server string, userId string, body MarkAsRead1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewMarkAsRead1RequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewMarkAsRead1RequestWithBody generates requests for MarkAsRead1 with any type of body +func NewMarkAsRead1RequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/markAsRead", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewMarkAsReadRequest calls the generic MarkAsRead builder with application/json body +func NewMarkAsReadRequest(server string, userId string, body MarkAsReadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewMarkAsReadRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewMarkAsReadRequestWithBody generates requests for MarkAsRead with any type of body +func NewMarkAsReadRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/markAsRead", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewChangeNameAdminRequest calls the generic ChangeNameAdmin builder with application/json body +func NewChangeNameAdminRequest(server string, userId string, body ChangeNameAdminJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewChangeNameAdminRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewChangeNameAdminRequestWithBody generates requests for ChangeNameAdmin with any type of body +func NewChangeNameAdminRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/name", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetNewsForUserRequest generates requests for GetNewsForUser +func NewGetNewsForUserRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/news", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewReadNewsRequest calls the generic ReadNews builder with application/json body +func NewReadNewsRequest(server string, userId string, body ReadNewsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewReadNewsRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewReadNewsRequestWithBody generates requests for ReadNews with any type of body +func NewReadNewsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/news", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetNotificationsRequest generates requests for GetNotifications +func NewGetNotificationsRequest(server string, userId string, params *GetNotificationsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/notifications", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludeInvitations != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludeInvitations", runtime.ParamLocationQuery, *params.ExcludeInvitations); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdatePictureRequest calls the generic UpdatePicture builder with application/json body +func NewUpdatePictureRequest(server string, userId string, body UpdatePictureJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdatePictureRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdatePictureRequestWithBody generates requests for UpdatePicture with any type of body +func NewUpdatePictureRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/picture", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateNameAndProfilePictureRequest calls the generic UpdateNameAndProfilePicture builder with application/json body +func NewUpdateNameAndProfilePictureRequest(server string, userId string, body UpdateNameAndProfilePictureJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateNameAndProfilePictureRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateNameAndProfilePictureRequestWithBody generates requests for UpdateNameAndProfilePicture with any type of body +func NewUpdateNameAndProfilePictureRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/settings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateSettingsRequest calls the generic UpdateSettings builder with application/json body +func NewUpdateSettingsRequest(server string, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSettingsRequestWithBody(server, userId, params, "application/json", bodyReader) +} + +// NewUpdateSettingsRequestWithBody generates requests for UpdateSettings with any type of body +func NewUpdateSettingsRequestWithBody(server string, userId string, params *UpdateSettingsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/settings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.SubDomainName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName) + if err != nil { + return nil, err + } + + req.Header.Set("Sub-Domain-Name", headerParam0) + } + + } + + return req, nil +} + +// NewUpdateSummaryReportSettingsRequest calls the generic UpdateSummaryReportSettings builder with application/json body +func NewUpdateSummaryReportSettingsRequest(server string, userId string, body UpdateSummaryReportSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSummaryReportSettingsRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateSummaryReportSettingsRequestWithBody generates requests for UpdateSummaryReportSettings with any type of body +func NewUpdateSummaryReportSettingsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/summaryReportSettings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateTimeTrackingSettingsRequest calls the generic UpdateTimeTrackingSettings builder with application/json body +func NewUpdateTimeTrackingSettingsRequest(server string, userId string, body UpdateTimeTrackingSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTimeTrackingSettingsRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateTimeTrackingSettingsRequestWithBody generates requests for UpdateTimeTrackingSettings with any type of body +func NewUpdateTimeTrackingSettingsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/timeTrackingSettings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateTimezoneRequest calls the generic UpdateTimezone builder with application/json body +func NewUpdateTimezoneRequest(server string, userId string, body UpdateTimezoneJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTimezoneRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateTimezoneRequestWithBody generates requests for UpdateTimezone with any type of body +func NewUpdateTimezoneRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/timezone", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetVerificationCampaignNotificationsRequest generates requests for GetVerificationCampaignNotifications +func NewGetVerificationCampaignNotificationsRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/verification-notifications", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewMarkNotificationsAsReadRequest calls the generic MarkNotificationsAsRead builder with application/json body +func NewMarkNotificationsAsReadRequest(server string, userId string, body MarkNotificationsAsReadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewMarkNotificationsAsReadRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewMarkNotificationsAsReadRequestWithBody generates requests for MarkNotificationsAsRead with any type of body +func NewMarkNotificationsAsReadRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/verification-notifications/read", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWorkCapacityForUserRequest generates requests for GetWorkCapacityForUser +func NewGetWorkCapacityForUserRequest(server string, userId string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/workspaces/%s/work-capacity", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersWorkingDaysRequest generates requests for GetUsersWorkingDays +func NewGetUsersWorkingDaysRequest(server string, userId string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s/workspaces/%s/working-days", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUploadImageRequestWithBody generates requests for UploadImage with any type of body +func NewUploadImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/file/image") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllUnfinishedWalkthroughTypesRequest generates requests for GetAllUnfinishedWalkthroughTypes +func NewGetAllUnfinishedWalkthroughTypesRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/walkthrough/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewFinishWalkthroughRequest calls the generic FinishWalkthrough builder with application/json body +func NewFinishWalkthroughRequest(server string, userId string, body FinishWalkthroughJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewFinishWalkthroughRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewFinishWalkthroughRequestWithBody generates requests for FinishWalkthrough with any type of body +func NewFinishWalkthroughRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/walkthrough/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOwnerEmailByWorkspaceIdRequest generates requests for GetOwnerEmailByWorkspaceId +func NewGetOwnerEmailByWorkspaceIdRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspace/%s/owner", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWorkspacesOfUserRequest generates requests for GetWorkspacesOfUser +func NewGetWorkspacesOfUserRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateRequest calls the generic Create builder with application/json body +func NewCreateRequest(server string, body CreateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateRequestWithBody generates requests for Create with any type of body +func NewCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWorkspaceInfoRequest generates requests for GetWorkspaceInfo +func NewGetWorkspaceInfoRequest(server string, params *GetWorkspaceInfoParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/info") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.WorkspaceId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workspaceId", runtime.ParamLocationQuery, *params.WorkspaceId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Email != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewInsertLegacyPlanNotificationsRequest calls the generic InsertLegacyPlanNotifications builder with application/json body +func NewInsertLegacyPlanNotificationsRequest(server string, body InsertLegacyPlanNotificationsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInsertLegacyPlanNotificationsRequestWithBody(server, "application/json", bodyReader) +} + +// NewInsertLegacyPlanNotificationsRequestWithBody generates requests for InsertLegacyPlanNotifications with any type of body +func NewInsertLegacyPlanNotificationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/legacy-plan-insert-notifications") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetPermissionsToUserForWorkspacesRequest calls the generic GetPermissionsToUserForWorkspaces builder with application/json body +func NewGetPermissionsToUserForWorkspacesRequest(server string, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetPermissionsToUserForWorkspacesRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewGetPermissionsToUserForWorkspacesRequestWithBody generates requests for GetPermissionsToUserForWorkspaces with any type of body +func NewGetPermissionsToUserForWorkspacesRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/users/%s/permissions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewLeaveWorkspaceRequest generates requests for LeaveWorkspace +func NewLeaveWorkspaceRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWorkspaceByIdRequest generates requests for GetWorkspaceById +func NewGetWorkspaceByIdRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateWorkspaceRequest calls the generic UpdateWorkspace builder with application/json body +func NewUpdateWorkspaceRequest(server string, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateWorkspaceRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewUpdateWorkspaceRequestWithBody generates requests for UpdateWorkspace with any type of body +func NewUpdateWorkspaceRequestWithBody(server string, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.SubDomainName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName) + if err != nil { + return nil, err + } + + req.Header.Set("Sub-Domain-Name", headerParam0) + } + + } + + return req, nil +} + +// NewGetABTestingRequest generates requests for GetABTesting +func NewGetABTestingRequest(server string, workspaceId string, params *GetABTestingParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/ab-testing", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetActiveMembersRequest generates requests for GetActiveMembers +func NewGetActiveMembersRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/active-members-count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUninstallRequest calls the generic Uninstall builder with application/json body +func NewUninstallRequest(server string, workspaceId string, body UninstallJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUninstallRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUninstallRequestWithBody generates requests for Uninstall with any type of body +func NewUninstallRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInstalledAddonsRequest generates requests for GetInstalledAddons +func NewGetInstalledAddonsRequest(server string, workspaceId string, params *GetInstalledAddonsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchTerm != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search-term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewInstallRequest calls the generic Install builder with application/json body +func NewInstallRequest(server string, workspaceId string, body InstallJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInstallRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewInstallRequestWithBody generates requests for Install with any type of body +func NewInstallRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInstalledAddonsIdNamePairRequest generates requests for GetInstalledAddonsIdNamePair +func NewGetInstalledAddonsIdNamePairRequest(server string, workspaceId string, params *GetInstalledAddonsIdNamePairParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/id-name-pair", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchTerm != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search-term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInstalledAddonsByKeysRequest calls the generic GetInstalledAddonsByKeys builder with application/json body +func NewGetInstalledAddonsByKeysRequest(server string, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetInstalledAddonsByKeysRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetInstalledAddonsByKeysRequestWithBody generates requests for GetInstalledAddonsByKeys with any type of body +func NewGetInstalledAddonsByKeysRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/keys", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUninstall1Request generates requests for Uninstall1 +func NewUninstall1Request(server string, workspaceId string, addonId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAddonByIdRequest generates requests for GetAddonById +func NewGetAddonByIdRequest(server string, workspaceId string, addonId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateSettings1Request calls the generic UpdateSettings1 builder with application/json body +func NewUpdateSettings1Request(server string, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSettings1RequestWithBody(server, workspaceId, addonId, "application/json", bodyReader) +} + +// NewUpdateSettings1RequestWithBody generates requests for UpdateSettings1 with any type of body +func NewUpdateSettings1RequestWithBody(server string, workspaceId string, addonId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/settings", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateStatus3Request calls the generic UpdateStatus3 builder with application/json body +func NewUpdateStatus3Request(server string, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateStatus3RequestWithBody(server, workspaceId, addonId, "application/json", bodyReader) +} + +// NewUpdateStatus3RequestWithBody generates requests for UpdateStatus3 with any type of body +func NewUpdateStatus3RequestWithBody(server string, workspaceId string, addonId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAddonUserJWTRequest generates requests for GetAddonUserJWT +func NewGetAddonUserJWTRequest(server string, workspaceId string, addonId string, params *GetAddonUserJWTParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/token", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAddonWebhooksRequest generates requests for GetAddonWebhooks +func NewGetAddonWebhooksRequest(server string, workspaceId string, addonId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/webhooks", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemoveUninstalledAddonRequest generates requests for RemoveUninstalledAddon +func NewRemoveUninstalledAddonRequest(server string, workspaceId string, addonKey string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonKey", runtime.ParamLocationPath, addonKey) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/remove-uninstalled", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListOfWorkspace1Request generates requests for ListOfWorkspace1 +func NewListOfWorkspace1Request(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/alerts", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate20Request calls the generic Create20 builder with application/json body +func NewCreate20Request(server string, workspaceId string, body Create20JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate20RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate20RequestWithBody generates requests for Create20 with any type of body +func NewCreate20RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/alerts", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete18Request generates requests for Delete18 +func NewDelete18Request(server string, workspaceId string, alertId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "alertId", runtime.ParamLocationPath, alertId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/alerts/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate11Request calls the generic Update11 builder with application/json body +func NewUpdate11Request(server string, workspaceId string, alertId string, body Update11JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate11RequestWithBody(server, workspaceId, alertId, "application/json", bodyReader) +} + +// NewUpdate11RequestWithBody generates requests for Update11 with any type of body +func NewUpdate11RequestWithBody(server string, workspaceId string, alertId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "alertId", runtime.ParamLocationPath, alertId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/alerts/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllowedUpdatesRequest generates requests for GetAllowedUpdates +func NewGetAllowedUpdatesRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/allowed-updates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewApproveRequestsRequest calls the generic ApproveRequests builder with application/json body +func NewApproveRequestsRequest(server string, workspaceId string, body ApproveRequestsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewApproveRequestsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewApproveRequestsRequestWithBody generates requests for ApproveRequests with any type of body +func NewApproveRequestsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCountRequest calls the generic Count builder with application/json body +func NewCountRequest(server string, workspaceId string, body CountJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCountRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCountRequestWithBody generates requests for Count with any type of body +func NewCountRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHasPendingRequest generates requests for HasPending +func NewHasPendingRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/has-pending", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemindManagersToApproveRequest calls the generic RemindManagersToApprove builder with application/json body +func NewRemindManagersToApproveRequest(server string, workspaceId string, body RemindManagersToApproveJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRemindManagersToApproveRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewRemindManagersToApproveRequestWithBody generates requests for RemindManagersToApprove with any type of body +func NewRemindManagersToApproveRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/remind/approve", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemindUsersToSubmitRequest calls the generic RemindUsersToSubmit builder with application/json body +func NewRemindUsersToSubmitRequest(server string, workspaceId string, body RemindUsersToSubmitJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRemindUsersToSubmitRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewRemindUsersToSubmitRequestWithBody generates requests for RemindUsersToSubmit with any type of body +func NewRemindUsersToSubmitRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/remind/submit", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetApprovalGroupsRequest calls the generic GetApprovalGroups builder with application/json body +func NewGetApprovalGroupsRequest(server string, workspaceId string, body GetApprovalGroupsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetApprovalGroupsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetApprovalGroupsRequestWithBody generates requests for GetApprovalGroups with any type of body +func NewGetApprovalGroupsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/stats", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUnsubmittedSummariesRequest calls the generic GetUnsubmittedSummaries builder with application/json body +func NewGetUnsubmittedSummariesRequest(server string, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUnsubmittedSummariesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUnsubmittedSummariesRequestWithBody generates requests for GetUnsubmittedSummaries with any type of body +func NewGetUnsubmittedSummariesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/stats/unsubmitted", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewWithdrawAllOfWorkspaceRequest generates requests for WithdrawAllOfWorkspace +func NewWithdrawAllOfWorkspaceRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/withdraw-on-workspace", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetRequestsByWorkspaceRequest generates requests for GetRequestsByWorkspace +func NewGetRequestsByWorkspaceRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/workspace-pending", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetApprovalRequestRequest generates requests for GetApprovalRequest +func NewGetApprovalRequestRequest(server string, workspaceId string, approvalRequestId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateStatus2Request calls the generic UpdateStatus2 builder with application/json body +func NewUpdateStatus2Request(server string, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateStatus2RequestWithBody(server, workspaceId, approvalRequestId, "application/json", bodyReader) +} + +// NewUpdateStatus2RequestWithBody generates requests for UpdateStatus2 with any type of body +func NewUpdateStatus2RequestWithBody(server string, workspaceId string, approvalRequestId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetApprovalDashboardRequest generates requests for GetApprovalDashboard +func NewGetApprovalDashboardRequest(server string, workspaceId string, approvalRequestId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s/dashboard", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetApprovalDetailsRequest generates requests for GetApprovalDetails +func NewGetApprovalDetailsRequest(server string, workspaceId string, approvalRequestId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s/details", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewFetchCustomAttributesRequest calls the generic FetchCustomAttributes builder with application/json body +func NewFetchCustomAttributesRequest(server string, workspaceId string, body FetchCustomAttributesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewFetchCustomAttributesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewFetchCustomAttributesRequestWithBody generates requests for FetchCustomAttributes with any type of body +func NewFetchCustomAttributesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/attributes/fetch", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCheckWorkspaceTransferPossibilityRequest generates requests for CheckWorkspaceTransferPossibility +func NewCheckWorkspaceTransferPossibilityRequest(server string, workspaceId string, params *CheckWorkspaceTransferPossibilityParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/check-transfer-possibility", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, params.Region); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteMany3Request calls the generic DeleteMany3 builder with application/json body +func NewDeleteMany3Request(server string, workspaceId string, body DeleteMany3JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteMany3RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDeleteMany3RequestWithBody generates requests for DeleteMany3 with any type of body +func NewDeleteMany3RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetClients1Request generates requests for GetClients1 +func NewGetClients1Request(server string, workspaceId string, params *GetClients1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateMany2Request calls the generic UpdateMany2 builder with application/json body +func NewUpdateMany2Request(server string, workspaceId string, body UpdateMany2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateMany2RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateMany2RequestWithBody generates requests for UpdateMany2 with any type of body +func NewUpdateMany2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreate19Request calls the generic Create19 builder with application/json body +func NewCreate19Request(server string, workspaceId string, body Create19JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate19RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate19RequestWithBody generates requests for Create19 with any type of body +func NewCreate19RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetArchivePermissionsRequest calls the generic GetArchivePermissions builder with application/json body +func NewGetArchivePermissionsRequest(server string, workspaceId string, body GetArchivePermissionsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetArchivePermissionsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetArchivePermissionsRequestWithBody generates requests for GetArchivePermissions with any type of body +func NewGetArchivePermissionsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/archive-permissions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHaveRelatedTasksRequest calls the generic HaveRelatedTasks builder with application/json body +func NewHaveRelatedTasksRequest(server string, workspaceId string, body HaveRelatedTasksJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewHaveRelatedTasksRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewHaveRelatedTasksRequestWithBody generates requests for HaveRelatedTasks with any type of body +func NewHaveRelatedTasksRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/have-related-tasks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetClientsOfIdsRequest calls the generic GetClientsOfIds builder with application/json body +func NewGetClientsOfIdsRequest(server string, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetClientsOfIdsRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGetClientsOfIdsRequestWithBody generates requests for GetClientsOfIds with any type of body +func NewGetClientsOfIdsRequestWithBody(server string, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SearchValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetClientsForInvoiceFilter1Request generates requests for GetClientsForInvoiceFilter1 +func NewGetClientsForInvoiceFilter1Request(server string, workspaceId string, params *GetClientsForInvoiceFilter1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/invoices-filter", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetClients2Request generates requests for GetClients2 +func NewGetClients2Request(server string, workspaceId string, params *GetClients2Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/projects-filter", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetClientsForReportFilterRequest generates requests for GetClientsForReportFilter +func NewGetClientsForReportFilterRequest(server string, workspaceId string, params *GetClientsForReportFilterParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/report-filters", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetClientIdsForReportFilterRequest generates requests for GetClientIdsForReportFilter +func NewGetClientIdsForReportFilterRequest(server string, workspaceId string, params *GetClientIdsForReportFilterParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/report-filters/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTimeOffPoliciesAndHolidaysForClientRequest calls the generic GetTimeOffPoliciesAndHolidaysForClient builder with application/json body +func NewGetTimeOffPoliciesAndHolidaysForClientRequest(server string, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody generates requests for GetTimeOffPoliciesAndHolidaysForClient with any type of body +func NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/time-off-policies-holidays", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete17Request generates requests for Delete17 +func NewDelete17Request(server string, workspaceId string, clientId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clientId", runtime.ParamLocationPath, clientId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetClientRequest generates requests for GetClient +func NewGetClientRequest(server string, workspaceId string, clientId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clientId", runtime.ParamLocationPath, clientId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjectsArchivePermissionsRequest generates requests for GetProjectsArchivePermissions +func NewGetProjectsArchivePermissionsRequest(server string, workspaceId string, clientId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clientId", runtime.ParamLocationPath, clientId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/%s/can-archive-projects", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate10Request calls the generic Update10 builder with application/json body +func NewUpdate10Request(server string, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate10RequestWithBody(server, workspaceId, id, params, "application/json", bodyReader) +} + +// NewUpdate10RequestWithBody generates requests for Update10 with any type of body +func NewUpdate10RequestWithBody(server string, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/clients/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.ArchiveProjects != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archive-projects", runtime.ParamLocationQuery, *params.ArchiveProjects); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.MarkTasksAsDone != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mark-tasks-as-done", runtime.ParamLocationQuery, *params.MarkTasksAsDone); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetCostRate2Request calls the generic SetCostRate2 builder with application/json body +func NewSetCostRate2Request(server string, workspaceId string, body SetCostRate2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetCostRate2RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewSetCostRate2RequestWithBody generates requests for SetCostRate2 with any type of body +func NewSetCostRate2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/cost-rate", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetCouponRequest generates requests for GetCoupon +func NewGetCouponRequest(server string, workspaceId string, params *GetCouponParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/coupons", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWorkspaceCurrenciesRequest generates requests for GetWorkspaceCurrencies +func NewGetWorkspaceCurrenciesRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/currencies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateCurrencyRequest calls the generic CreateCurrency builder with application/json body +func NewCreateCurrencyRequest(server string, workspaceId string, body CreateCurrencyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateCurrencyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateCurrencyRequestWithBody generates requests for CreateCurrency with any type of body +func NewCreateCurrencyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/currencies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveCurrencyRequest generates requests for RemoveCurrency +func NewRemoveCurrencyRequest(server string, workspaceId string, currencyId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "currencyId", runtime.ParamLocationPath, currencyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/currencies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetCurrencyRequest generates requests for GetCurrency +func NewGetCurrencyRequest(server string, workspaceId string, currencyId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "currencyId", runtime.ParamLocationPath, currencyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/currencies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateCurrencyCodeRequest calls the generic UpdateCurrencyCode builder with application/json body +func NewUpdateCurrencyCodeRequest(server string, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCurrencyCodeRequestWithBody(server, workspaceId, currencyId, "application/json", bodyReader) +} + +// NewUpdateCurrencyCodeRequestWithBody generates requests for UpdateCurrencyCode with any type of body +func NewUpdateCurrencyCodeRequestWithBody(server string, workspaceId string, currencyId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "currencyId", runtime.ParamLocationPath, currencyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/currencies/%s/code", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetCurrencyRequest calls the generic SetCurrency builder with application/json body +func NewSetCurrencyRequest(server string, workspaceId string, body SetCurrencyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetCurrencyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewSetCurrencyRequestWithBody generates requests for SetCurrency with any type of body +func NewSetCurrencyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/currency", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewOfWorkspaceRequest generates requests for OfWorkspace +func NewOfWorkspaceRequest(server string, workspaceId string, params *OfWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.EntityType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entityType", runtime.ParamLocationQuery, *params.EntityType); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate18Request calls the generic Create18 builder with application/json body +func NewCreate18Request(server string, workspaceId string, body Create18JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate18RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate18RequestWithBody generates requests for Create18 with any type of body +func NewCreate18RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewOfWorkspaceWithRequiredAvailabilityRequest generates requests for OfWorkspaceWithRequiredAvailability +func NewOfWorkspaceWithRequiredAvailabilityRequest(server string, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field/required-availability", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.EntityType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entityType", runtime.ParamLocationQuery, *params.EntityType); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDelete16Request generates requests for Delete16 +func NewDelete16Request(server string, workspaceId string, customFieldId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewEditRequest calls the generic Edit builder with application/json body +func NewEditRequest(server string, workspaceId string, customFieldId string, body EditJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditRequestWithBody(server, workspaceId, customFieldId, "application/json", bodyReader) +} + +// NewEditRequestWithBody generates requests for Edit with any type of body +func NewEditRequestWithBody(server string, workspaceId string, customFieldId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveDefaultValueOfProjectRequest generates requests for RemoveDefaultValueOfProject +func NewRemoveDefaultValueOfProjectRequest(server string, workspaceId string, customFieldId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s/default/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewEditDefaultValuesRequest calls the generic EditDefaultValues builder with application/json body +func NewEditDefaultValuesRequest(server string, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditDefaultValuesRequestWithBody(server, workspaceId, customFieldId, projectId, "application/json", bodyReader) +} + +// NewEditDefaultValuesRequestWithBody generates requests for EditDefaultValues with any type of body +func NewEditDefaultValuesRequestWithBody(server string, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s/default/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOfProjectRequest generates requests for GetOfProject +func NewGetOfProjectRequest(server string, workspaceId string, projectId string, params *GetOfProjectParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.EntityType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entityType", runtime.ParamLocationQuery, *params.EntityType); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateCustomLabelsRequest calls the generic UpdateCustomLabels builder with application/json body +func NewUpdateCustomLabelsRequest(server string, workspaceId string, body UpdateCustomLabelsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCustomLabelsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateCustomLabelsRequestWithBody generates requests for UpdateCustomLabels with any type of body +func NewUpdateCustomLabelsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/custom-labels", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAddEmailRequest calls the generic AddEmail builder with application/json body +func NewAddEmailRequest(server string, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddEmailRequestWithBody(server, workspaceId, userId, params, "application/json", bodyReader) +} + +// NewAddEmailRequestWithBody generates requests for AddEmail with any type of body +func NewAddEmailRequestWithBody(server string, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/email/%s/add", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SendEmail != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sendEmail", runtime.ParamLocationQuery, *params.SendEmail); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteManyExpensesRequest calls the generic DeleteManyExpenses builder with application/json body +func NewDeleteManyExpensesRequest(server string, workspaceId string, body DeleteManyExpensesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteManyExpensesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDeleteManyExpensesRequestWithBody generates requests for DeleteManyExpenses with any type of body +func NewDeleteManyExpensesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetExpensesRequest generates requests for GetExpenses +func NewGetExpensesRequest(server string, workspaceId string, params *GetExpensesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateExpenseRequestWithBody generates requests for CreateExpense with any type of body +func NewCreateExpenseRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetCategoriesRequest generates requests for GetCategories +func NewGetCategoriesRequest(server string, workspaceId string, params *GetCategoriesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate17Request calls the generic Create17 builder with application/json body +func NewCreate17Request(server string, workspaceId string, body Create17JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate17RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate17RequestWithBody generates requests for Create17 with any type of body +func NewCreate17RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetCategoriesByIdsRequest generates requests for GetCategoriesByIds +func NewGetCategoriesByIdsRequest(server string, workspaceId string, params *GetCategoriesByIdsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/filter-ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Ids != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ids", runtime.ParamLocationQuery, *params.Ids); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteCategoryRequest generates requests for DeleteCategory +func NewDeleteCategoryRequest(server string, workspaceId string, categoryId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "categoryId", runtime.ParamLocationPath, categoryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateCategoryRequest calls the generic UpdateCategory builder with application/json body +func NewUpdateCategoryRequest(server string, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCategoryRequestWithBody(server, workspaceId, categoryId, "application/json", bodyReader) +} + +// NewUpdateCategoryRequestWithBody generates requests for UpdateCategory with any type of body +func NewUpdateCategoryRequestWithBody(server string, workspaceId string, categoryId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "categoryId", runtime.ParamLocationPath, categoryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateStatus1Request calls the generic UpdateStatus1 builder with application/json body +func NewUpdateStatus1Request(server string, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateStatus1RequestWithBody(server, workspaceId, categoryId, "application/json", bodyReader) +} + +// NewUpdateStatus1RequestWithBody generates requests for UpdateStatus1 with any type of body +func NewUpdateStatus1RequestWithBody(server string, workspaceId string, categoryId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "categoryId", runtime.ParamLocationPath, categoryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/%s/archived", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetExpensesInDateRangeRequest generates requests for GetExpensesInDateRange +func NewGetExpensesInDateRangeRequest(server string, workspaceId string, params *GetExpensesInDateRangeParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/filter", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateInvoicedStatus1Request calls the generic UpdateInvoicedStatus1 builder with application/json body +func NewUpdateInvoicedStatus1Request(server string, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateInvoicedStatus1RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateInvoicedStatus1RequestWithBody generates requests for UpdateInvoicedStatus1 with any type of body +func NewUpdateInvoicedStatus1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/invoiced", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRestoreManyExpensesRequest calls the generic RestoreManyExpenses builder with application/json body +func NewRestoreManyExpensesRequest(server string, workspaceId string, body RestoreManyExpensesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRestoreManyExpensesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewRestoreManyExpensesRequestWithBody generates requests for RestoreManyExpenses with any type of body +func NewRestoreManyExpensesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/restore", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteExpenseRequest generates requests for DeleteExpense +func NewDeleteExpenseRequest(server string, workspaceId string, expenseId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetExpenseRequest generates requests for GetExpense +func NewGetExpenseRequest(server string, workspaceId string, expenseId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateExpenseRequestWithBody generates requests for UpdateExpense with any type of body +func NewUpdateExpenseRequestWithBody(server string, workspaceId string, expenseId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDownloadFileRequest generates requests for DownloadFile +func NewDownloadFileRequest(server string, workspaceId string, expenseId string, fileId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "fileId", runtime.ParamLocationPath, fileId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s/files/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewImportFileDataRequest calls the generic ImportFileData builder with application/json body +func NewImportFileDataRequest(server string, workspaceId string, body ImportFileDataJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewImportFileDataRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewImportFileDataRequestWithBody generates requests for ImportFileData with any type of body +func NewImportFileDataRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/file-import", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCheckUsersForImportRequest generates requests for CheckUsersForImport +func NewCheckUsersForImportRequest(server string, workspaceId string, fileImportId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "fileImportId", runtime.ParamLocationPath, fileImportId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/file-import/%s/check-users", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetHolidaysRequest generates requests for GetHolidays +func NewGetHolidaysRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/holidays", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate16Request calls the generic Create16 builder with application/json body +func NewCreate16Request(server string, workspaceId string, body Create16JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate16RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate16RequestWithBody generates requests for Create16 with any type of body +func NewCreate16RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/holidays", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete15Request generates requests for Delete15 +func NewDelete15Request(server string, workspaceId string, holidayId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "holidayId", runtime.ParamLocationPath, holidayId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/holidays/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate9Request calls the generic Update9 builder with application/json body +func NewUpdate9Request(server string, workspaceId string, holidayId string, body Update9JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate9RequestWithBody(server, workspaceId, holidayId, "application/json", bodyReader) +} + +// NewUpdate9RequestWithBody generates requests for Update9 with any type of body +func NewUpdate9RequestWithBody(server string, workspaceId string, holidayId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "holidayId", runtime.ParamLocationPath, holidayId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/holidays/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetHourlyRate2Request calls the generic SetHourlyRate2 builder with application/json body +func NewSetHourlyRate2Request(server string, workspaceId string, body SetHourlyRate2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetHourlyRate2RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewSetHourlyRate2RequestWithBody generates requests for SetHourlyRate2 with any type of body +func NewSetHourlyRate2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/hourly-rate", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInvitedEmailsInfoRequest calls the generic GetInvitedEmailsInfo builder with application/json body +func NewGetInvitedEmailsInfoRequest(server string, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetInvitedEmailsInfoRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetInvitedEmailsInfoRequestWithBody generates requests for GetInvitedEmailsInfo with any type of body +func NewGetInvitedEmailsInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invited-emails-info", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInvoiceEmailTemplatesRequest generates requests for GetInvoiceEmailTemplates +func NewGetInvoiceEmailTemplatesRequest(server string, workspaceId string, params *GetInvoiceEmailTemplatesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoice-email-templates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.InvoiceEmailTemplateType != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "invoiceEmailTemplateType", runtime.ParamLocationQuery, *params.InvoiceEmailTemplateType); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpsertInvoiceEmailTemplateRequest calls the generic UpsertInvoiceEmailTemplate builder with application/json body +func NewUpsertInvoiceEmailTemplateRequest(server string, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpsertInvoiceEmailTemplateRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpsertInvoiceEmailTemplateRequestWithBody generates requests for UpsertInvoiceEmailTemplate with any type of body +func NewUpsertInvoiceEmailTemplateRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoice-email-templates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInvoiceEmailDataRequest generates requests for GetInvoiceEmailData +func NewGetInvoiceEmailDataRequest(server string, workspaceId string, invoiceId string, invoiceEmailTemplateType string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "invoiceEmailTemplateType", runtime.ParamLocationPath, invoiceEmailTemplateType) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoice/%s/email-type/%s/email-data", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewSendInvoiceEmailRequest calls the generic SendInvoiceEmail builder with application/json body +func NewSendInvoiceEmailRequest(server string, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSendInvoiceEmailRequestWithBody(server, workspaceId, invoiceId, invoiceEmailTemplateType, "application/json", bodyReader) +} + +// NewSendInvoiceEmailRequestWithBody generates requests for SendInvoiceEmail with any type of body +func NewSendInvoiceEmailRequestWithBody(server string, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "invoiceEmailTemplateType", runtime.ParamLocationPath, invoiceEmailTemplateType) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoice/%s/email-type/%s/send-email", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateInvoiceRequest calls the generic CreateInvoice builder with application/json body +func NewCreateInvoiceRequest(server string, workspaceId string, body CreateInvoiceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateInvoiceRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateInvoiceRequestWithBody generates requests for CreateInvoice with any type of body +func NewCreateInvoiceRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllCompaniesRequest generates requests for GetAllCompanies +func NewGetAllCompaniesRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateCompanyRequest calls the generic CreateCompany builder with application/json body +func NewCreateCompanyRequest(server string, workspaceId string, body CreateCompanyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateCompanyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateCompanyRequestWithBody generates requests for CreateCompany with any type of body +func NewCreateCompanyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateCompaniesInWorkspaceRequest calls the generic UpdateCompaniesInWorkspace builder with application/json body +func NewUpdateCompaniesInWorkspaceRequest(server string, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCompaniesInWorkspaceRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateCompaniesInWorkspaceRequestWithBody generates requests for UpdateCompaniesInWorkspace with any type of body +func NewUpdateCompaniesInWorkspaceRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/bulk", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCountAllCompaniesRequest generates requests for CountAllCompanies +func NewCountAllCompaniesRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetClientsForInvoiceFilterRequest generates requests for GetClientsForInvoiceFilter +func NewGetClientsForInvoiceFilterRequest(server string, workspaceId string, params *GetClientsForInvoiceFilterParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/invoices-filter", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteCompanyRequest generates requests for DeleteCompany +func NewDeleteCompanyRequest(server string, workspaceId string, companyId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "companyId", runtime.ParamLocationPath, companyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetCompanyByIdRequest generates requests for GetCompanyById +func NewGetCompanyByIdRequest(server string, workspaceId string, companyId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "companyId", runtime.ParamLocationPath, companyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateCompanyRequest calls the generic UpdateCompany builder with application/json body +func NewUpdateCompanyRequest(server string, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCompanyRequestWithBody(server, workspaceId, companyId, "application/json", bodyReader) +} + +// NewUpdateCompanyRequestWithBody generates requests for UpdateCompany with any type of body +func NewUpdateCompanyRequestWithBody(server string, workspaceId string, companyId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "companyId", runtime.ParamLocationPath, companyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInvoicesInfoRequest calls the generic GetInvoicesInfo builder with application/json body +func NewGetInvoicesInfoRequest(server string, workspaceId string, body GetInvoicesInfoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetInvoicesInfoRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetInvoicesInfoRequestWithBody generates requests for GetInvoicesInfo with any type of body +func NewGetInvoicesInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/info", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInvoiceItemTypesRequest generates requests for GetInvoiceItemTypes +func NewGetInvoiceItemTypesRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateInvoiceItemTypeRequest calls the generic CreateInvoiceItemType builder with application/json body +func NewCreateInvoiceItemTypeRequest(server string, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateInvoiceItemTypeRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateInvoiceItemTypeRequestWithBody generates requests for CreateInvoiceItemType with any type of body +func NewCreateInvoiceItemTypeRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteInvoiceItemTypeRequest generates requests for DeleteInvoiceItemType +func NewDeleteInvoiceItemTypeRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateInvoiceItemTypeRequest calls the generic UpdateInvoiceItemType builder with application/json body +func NewUpdateInvoiceItemTypeRequest(server string, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateInvoiceItemTypeRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateInvoiceItemTypeRequestWithBody generates requests for UpdateInvoiceItemType with any type of body +func NewUpdateInvoiceItemTypeRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetNextInvoiceNumberRequest generates requests for GetNextInvoiceNumber +func NewGetNextInvoiceNumberRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/next-number", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInvoicePermissionsRequest generates requests for GetInvoicePermissions +func NewGetInvoicePermissionsRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/permissions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateInvoicePermissionsRequest calls the generic UpdateInvoicePermissions builder with application/json body +func NewUpdateInvoicePermissionsRequest(server string, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateInvoicePermissionsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateInvoicePermissionsRequestWithBody generates requests for UpdateInvoicePermissions with any type of body +func NewUpdateInvoicePermissionsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/permissions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCanUserManageInvoicesRequest generates requests for CanUserManageInvoices +func NewCanUserManageInvoicesRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/permissions/current", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInvoiceSettingsRequest generates requests for GetInvoiceSettings +func NewGetInvoiceSettingsRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/settings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateInvoiceSettingsRequest calls the generic UpdateInvoiceSettings builder with application/json body +func NewUpdateInvoiceSettingsRequest(server string, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateInvoiceSettingsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateInvoiceSettingsRequestWithBody generates requests for UpdateInvoiceSettings with any type of body +func NewUpdateInvoiceSettingsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/settings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteInvoiceRequest generates requests for DeleteInvoice +func NewDeleteInvoiceRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInvoiceRequest generates requests for GetInvoice +func NewGetInvoiceRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateInvoiceRequest calls the generic UpdateInvoice builder with application/json body +func NewUpdateInvoiceRequest(server string, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateInvoiceRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader) +} + +// NewUpdateInvoiceRequestWithBody generates requests for UpdateInvoice with any type of body +func NewUpdateInvoiceRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDuplicateInvoiceRequest generates requests for DuplicateInvoice +func NewDuplicateInvoiceRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/duplicate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewExportInvoiceRequest generates requests for ExportInvoice +func NewExportInvoiceRequest(server string, workspaceId string, invoiceId string, params *ExportInvoiceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/export", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userLocale", runtime.ParamLocationQuery, params.UserLocale); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewImportTimeAndExpensesRequest calls the generic ImportTimeAndExpenses builder with application/json body +func NewImportTimeAndExpensesRequest(server string, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewImportTimeAndExpensesRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader) +} + +// NewImportTimeAndExpensesRequestWithBody generates requests for ImportTimeAndExpenses with any type of body +func NewImportTimeAndExpensesRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/import", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAddInvoiceItemRequest generates requests for AddInvoiceItem +func NewAddInvoiceItemRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItem", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewReorderInvoiceItem1Request calls the generic ReorderInvoiceItem1 builder with application/json body +func NewReorderInvoiceItem1Request(server string, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewReorderInvoiceItem1RequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader) +} + +// NewReorderInvoiceItem1RequestWithBody generates requests for ReorderInvoiceItem1 with any type of body +func NewReorderInvoiceItem1RequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItem/order", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditInvoiceItemRequest calls the generic EditInvoiceItem builder with application/json body +func NewEditInvoiceItemRequest(server string, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditInvoiceItemRequestWithBody(server, workspaceId, invoiceId, invoiceItemOrder, "application/json", bodyReader) +} + +// NewEditInvoiceItemRequestWithBody generates requests for EditInvoiceItem with any type of body +func NewEditInvoiceItemRequestWithBody(server string, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "invoiceItemOrder", runtime.ParamLocationPath, invoiceItemOrder) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItem/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteInvoiceItemsRequest generates requests for DeleteInvoiceItems +func NewDeleteInvoiceItemsRequest(server string, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItems", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "invoiceItemsOrder", runtime.ParamLocationQuery, params.InvoiceItemsOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetPaymentsForInvoiceRequest generates requests for GetPaymentsForInvoice +func NewGetPaymentsForInvoiceRequest(server string, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/payments", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateInvoicePaymentRequest calls the generic CreateInvoicePayment builder with application/json body +func NewCreateInvoicePaymentRequest(server string, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateInvoicePaymentRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader) +} + +// NewCreateInvoicePaymentRequestWithBody generates requests for CreateInvoicePayment with any type of body +func NewCreateInvoicePaymentRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/payments", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeletePaymentByIdRequest generates requests for DeletePaymentById +func NewDeletePaymentByIdRequest(server string, workspaceId string, invoiceId string, paymentId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "paymentId", runtime.ParamLocationPath, paymentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/payments/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewChangeInvoiceStatusRequest calls the generic ChangeInvoiceStatus builder with application/json body +func NewChangeInvoiceStatusRequest(server string, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewChangeInvoiceStatusRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader) +} + +// NewChangeInvoiceStatusRequestWithBody generates requests for ChangeInvoiceStatus with any type of body +func NewChangeInvoiceStatusRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAuthorizationCheckRequest generates requests for AuthorizationCheck +func NewAuthorizationCheckRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/is-admin", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewIsAvailableRequest generates requests for IsAvailable +func NewIsAvailableRequest(server string, workspaceId string, params *IsAvailableParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/available", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pinContext", runtime.ParamLocationQuery, params.PinContext); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pinCode", runtime.ParamLocationQuery, params.PinCode); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewIsAvailable1Request generates requests for IsAvailable1 +func NewIsAvailable1Request(server string, workspaceId string, userId string, params *IsAvailable1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/available/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pinCode", runtime.ParamLocationQuery, params.PinCode); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGeneratePinCodeRequest generates requests for GeneratePinCode +func NewGeneratePinCodeRequest(server string, workspaceId string, params *GeneratePinCodeParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/generate", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "context", runtime.ParamLocationQuery, params.Context); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGeneratePinCodeForUserRequest generates requests for GeneratePinCodeForUser +func NewGeneratePinCodeForUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/generate/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserPinCodeRequest generates requests for GetUserPinCode +func NewGetUserPinCodeRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdatePinCodeRequest calls the generic UpdatePinCode builder with application/json body +func NewUpdatePinCodeRequest(server string, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdatePinCodeRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdatePinCodeRequestWithBody generates requests for UpdatePinCode with any type of body +func NewUpdatePinCodeRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetKiosksOfWorkspaceRequest generates requests for GetKiosksOfWorkspace +func NewGetKiosksOfWorkspaceRequest(server string, workspaceId string, params *GetKiosksOfWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate15Request calls the generic Create15 builder with application/json body +func NewCreate15Request(server string, workspaceId string, body Create15JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate15RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate15RequestWithBody generates requests for Create15 with any type of body +func NewCreate15RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateBreakDefaultsRequest calls the generic UpdateBreakDefaults builder with application/json body +func NewUpdateBreakDefaultsRequest(server string, workspaceId string, body UpdateBreakDefaultsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateBreakDefaultsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateBreakDefaultsRequestWithBody generates requests for UpdateBreakDefaults with any type of body +func NewUpdateBreakDefaultsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/break-defaults", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTotalCountOfKiosksOnWorkspaceRequest generates requests for GetTotalCountOfKiosksOnWorkspace +func NewGetTotalCountOfKiosksOnWorkspaceRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateDefaultsRequest calls the generic UpdateDefaults builder with application/json body +func NewUpdateDefaultsRequest(server string, workspaceId string, body UpdateDefaultsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateDefaultsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateDefaultsRequestWithBody generates requests for UpdateDefaults with any type of body +func NewUpdateDefaultsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/defaults", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHasActiveKiosksRequest generates requests for HasActiveKiosks +func NewHasActiveKiosksRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/has-active", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWithProjectRequest calls the generic GetWithProject builder with application/json body +func NewGetWithProjectRequest(server string, workspaceId string, body GetWithProjectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetWithProjectRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetWithProjectRequestWithBody generates requests for GetWithProject with any type of body +func NewGetWithProjectRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/project", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWithTaskRequest calls the generic GetWithTask builder with application/json body +func NewGetWithTaskRequest(server string, workspaceId string, projectId string, body GetWithTaskJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetWithTaskRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewGetWithTaskRequestWithBody generates requests for GetWithTask with any type of body +func NewGetWithTaskRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/project/%s/task", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetForReportFilterRequest generates requests for GetForReportFilter +func NewGetForReportFilterRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/report-filter", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWithoutDefaultsRequest generates requests for GetWithoutDefaults +func NewGetWithoutDefaultsRequest(server string, workspaceId string, params *GetWithoutDefaultsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/without-defaults", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IsBreak != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "isBreak", runtime.ParamLocationQuery, *params.IsBreak); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteKioskRequest generates requests for DeleteKiosk +func NewDeleteKioskRequest(server string, workspaceId string, kioskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetKioskByIdRequest generates requests for GetKioskById +func NewGetKioskByIdRequest(server string, workspaceId string, kioskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate8Request calls the generic Update8 builder with application/json body +func NewUpdate8Request(server string, workspaceId string, kioskId string, body Update8JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate8RequestWithBody(server, workspaceId, kioskId, "application/json", bodyReader) +} + +// NewUpdate8RequestWithBody generates requests for Update8 with any type of body +func NewUpdate8RequestWithBody(server string, workspaceId string, kioskId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewExportAssigneesRequest generates requests for ExportAssignees +func NewExportAssigneesRequest(server string, workspaceId string, kioskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s/assignees/export", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewHasEntryInProgressRequest generates requests for HasEntryInProgress +func NewHasEntryInProgressRequest(server string, workspaceId string, kioskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s/has-entry-in-progress", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateStatusRequest calls the generic UpdateStatus builder with application/json body +func NewUpdateStatusRequest(server string, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateStatusRequestWithBody(server, workspaceId, kioskId, "application/json", bodyReader) +} + +// NewUpdateStatusRequestWithBody generates requests for UpdateStatus with any type of body +func NewUpdateStatusRequestWithBody(server string, workspaceId string, kioskId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s/status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAcknowledgeLegacyPlanNotificationsRequest generates requests for AcknowledgeLegacyPlanNotifications +func NewAcknowledgeLegacyPlanNotificationsRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/legacy-plan-acknowledge", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetLegacyPlanUpgradeDataRequest generates requests for GetLegacyPlanUpgradeData +func NewGetLegacyPlanUpgradeDataRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/legacy-plan-upgrade-data", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAddLimitedUsersRequest calls the generic AddLimitedUsers builder with application/json body +func NewAddLimitedUsersRequest(server string, workspaceId string, body AddLimitedUsersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddLimitedUsersRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewAddLimitedUsersRequestWithBody generates requests for AddLimitedUsers with any type of body +func NewAddLimitedUsersRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/limited-users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetLimitedUsersCountRequest generates requests for GetLimitedUsersCount +func NewGetLimitedUsersCountRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/limited-users/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetMemberProfileRequest generates requests for GetMemberProfile +func NewGetMemberProfileRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateMemberProfileRequest calls the generic UpdateMemberProfile builder with application/json body +func NewUpdateMemberProfileRequest(server string, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateMemberProfileRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdateMemberProfileRequestWithBody generates requests for UpdateMemberProfile with any type of body +func NewUpdateMemberProfileRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateMemberProfileWithAdditionalDataRequest calls the generic UpdateMemberProfileWithAdditionalData builder with application/json body +func NewUpdateMemberProfileWithAdditionalDataRequest(server string, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateMemberProfileWithAdditionalDataRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdateMemberProfileWithAdditionalDataRequestWithBody generates requests for UpdateMemberProfileWithAdditionalData with any type of body +func NewUpdateMemberProfileWithAdditionalDataRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/full", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateMemberSettingsRequest calls the generic UpdateMemberSettings builder with application/json body +func NewUpdateMemberSettingsRequest(server string, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateMemberSettingsRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdateMemberSettingsRequestWithBody generates requests for UpdateMemberSettings with any type of body +func NewUpdateMemberSettingsRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/settings", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWeekStartRequest generates requests for GetWeekStart +func NewGetWeekStartRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/week-start", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateMemberWorkingDaysAndCapacityRequest calls the generic UpdateMemberWorkingDaysAndCapacity builder with application/json body +func NewUpdateMemberWorkingDaysAndCapacityRequest(server string, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateMemberWorkingDaysAndCapacityRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdateMemberWorkingDaysAndCapacityRequestWithBody generates requests for UpdateMemberWorkingDaysAndCapacity with any type of body +func NewUpdateMemberWorkingDaysAndCapacityRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/working-days-capacity", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetMembersCountRequest generates requests for GetMembersCount +func NewGetMembersCountRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/members-count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewFindNotInvitedEmailsInRequest calls the generic FindNotInvitedEmailsIn builder with application/json body +func NewFindNotInvitedEmailsInRequest(server string, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewFindNotInvitedEmailsInRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewFindNotInvitedEmailsInRequestWithBody generates requests for FindNotInvitedEmailsIn with any type of body +func NewFindNotInvitedEmailsInRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/not-invited-users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationRequest generates requests for GetOrganization +func NewGetOrganizationRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate14Request calls the generic Create14 builder with application/json body +func NewCreate14Request(server string, workspaceId string, body Create14JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate14RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate14RequestWithBody generates requests for Create14 with any type of body +func NewCreate14RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetOrganizationNameRequest generates requests for GetOrganizationName +func NewGetOrganizationNameRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/name", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCheckAvailabilityOfDomainNameRequest generates requests for CheckAvailabilityOfDomainName +func NewCheckAvailabilityOfDomainNameRequest(server string, workspaceId string, params *CheckAvailabilityOfDomainNameParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/subdomain-name", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain-name", runtime.ParamLocationQuery, params.DomainName); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteOrganizationRequest generates requests for DeleteOrganization +func NewDeleteOrganizationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body +func NewUpdateOrganizationRequest(server string, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateOrganizationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader) +} + +// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body +func NewUpdateOrganizationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetLoginSettingsRequest generates requests for GetLoginSettings +func NewGetLoginSettingsRequest(server string, workspaceId string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/login-settings", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteOAuth2ConfigurationRequest generates requests for DeleteOAuth2Configuration +func NewDeleteOAuth2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/o-auth2-configuration", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetOrganizationOAuth2ConfigurationRequest generates requests for GetOrganizationOAuth2Configuration +func NewGetOrganizationOAuth2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/o-auth2-configuration", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateOAuth2Configuration1Request calls the generic UpdateOAuth2Configuration1 builder with application/json body +func NewUpdateOAuth2Configuration1Request(server string, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateOAuth2Configuration1RequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader) +} + +// NewUpdateOAuth2Configuration1RequestWithBody generates requests for UpdateOAuth2Configuration1 with any type of body +func NewUpdateOAuth2Configuration1RequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/o-auth2-configuration", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewTestOAuth2ConfigurationRequest calls the generic TestOAuth2Configuration builder with application/json body +func NewTestOAuth2ConfigurationRequest(server string, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewTestOAuth2ConfigurationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader) +} + +// NewTestOAuth2ConfigurationRequestWithBody generates requests for TestOAuth2Configuration with any type of body +func NewTestOAuth2ConfigurationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/oauth-configuration-test", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteSAML2ConfigurationRequest generates requests for DeleteSAML2Configuration +func NewDeleteSAML2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetOrganizationSAML2ConfigurationRequest generates requests for GetOrganizationSAML2Configuration +func NewGetOrganizationSAML2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateSAML2ConfigurationRequest calls the generic UpdateSAML2Configuration builder with application/json body +func NewUpdateSAML2ConfigurationRequest(server string, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSAML2ConfigurationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader) +} + +// NewUpdateSAML2ConfigurationRequestWithBody generates requests for UpdateSAML2Configuration with any type of body +func NewUpdateSAML2ConfigurationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewTestSAML2ConfigurationRequest calls the generic TestSAML2Configuration builder with application/json body +func NewTestSAML2ConfigurationRequest(server string, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewTestSAML2ConfigurationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader) +} + +// NewTestSAML2ConfigurationRequestWithBody generates requests for TestSAML2Configuration with any type of body +func NewTestSAML2ConfigurationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration-test", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllOrganizationsOfUserRequest generates requests for GetAllOrganizationsOfUser +func NewGetAllOrganizationsOfUserRequest(server string, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/subdomain-names", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.MembershipStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "membership-status", runtime.ParamLocationQuery, *params.MembershipStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWorkspaceOwnerRequest generates requests for GetWorkspaceOwner +func NewGetWorkspaceOwnerRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/owner", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewTransferOwnershipRequest calls the generic TransferOwnership builder with application/json body +func NewTransferOwnershipRequest(server string, workspaceId string, body TransferOwnershipJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewTransferOwnershipRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewTransferOwnershipRequestWithBody generates requests for TransferOwnership with any type of body +func NewTransferOwnershipRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/owner", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWorkspaceOwnerTimeZoneRequest generates requests for GetWorkspaceOwnerTimeZone +func NewGetWorkspaceOwnerTimeZoneRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/owner/timeZone", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCancelSubscriptionRequest calls the generic CancelSubscription builder with application/json body +func NewCancelSubscriptionRequest(server string, workspaceId string, body CancelSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCancelSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCancelSubscriptionRequestWithBody generates requests for CancelSubscription with any type of body +func NewCancelSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/cancel-subscription", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewConfirmPaymentRequest generates requests for ConfirmPayment +func NewConfirmPaymentRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/confirm-payment", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetCustomerInfoRequest generates requests for GetCustomerInfo +func NewGetCustomerInfoRequest(server string, workspaceId string, params *GetCustomerInfoParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/customer-information", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.CountryCode != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "countryCode", runtime.ParamLocationQuery, *params.CountryCode); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateCustomerRequest calls the generic CreateCustomer builder with application/json body +func NewCreateCustomerRequest(server string, workspaceId string, body CreateCustomerJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateCustomerRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateCustomerRequestWithBody generates requests for CreateCustomer with any type of body +func NewCreateCustomerRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/customer/create", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body +func NewUpdateCustomerRequest(server string, workspaceId string, body UpdateCustomerJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCustomerRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body +func NewUpdateCustomerRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/customer/update", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditInvoiceInformationRequest calls the generic EditInvoiceInformation builder with application/json body +func NewEditInvoiceInformationRequest(server string, workspaceId string, body EditInvoiceInformationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditInvoiceInformationRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewEditInvoiceInformationRequestWithBody generates requests for EditInvoiceInformation with any type of body +func NewEditInvoiceInformationRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/edit-invoice", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditPaymentInformationRequest calls the generic EditPaymentInformation builder with application/json body +func NewEditPaymentInformationRequest(server string, workspaceId string, body EditPaymentInformationJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditPaymentInformationRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewEditPaymentInformationRequestWithBody generates requests for EditPaymentInformation with any type of body +func NewEditPaymentInformationRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/edit-payment", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewExtendTrialRequest generates requests for ExtendTrial +func NewExtendTrialRequest(server string, workspaceId string, params *ExtendTrialParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/extend-trial", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Days != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "days", runtime.ParamLocationQuery, *params.Days); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetFeatureSubscriptionsRequest generates requests for GetFeatureSubscriptions +func NewGetFeatureSubscriptionsRequest(server string, workspaceId string, params *GetFeatureSubscriptionsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/feature-subscriptions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewInitialUpgradeRequest calls the generic InitialUpgrade builder with application/json body +func NewInitialUpgradeRequest(server string, workspaceId string, body InitialUpgradeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewInitialUpgradeRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewInitialUpgradeRequestWithBody generates requests for InitialUpgrade with any type of body +func NewInitialUpgradeRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/initial-price", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetInvoiceInfoRequest generates requests for GetInvoiceInfo +func NewGetInvoiceInfoRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/invoice-information", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInvoicesRequest generates requests for GetInvoices +func NewGetInvoicesRequest(server string, workspaceId string, params *GetInvoicesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/invoices", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StartingAfter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startingAfter", runtime.ParamLocationQuery, *params.StartingAfter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInvoicesCountRequest generates requests for GetInvoicesCount +func NewGetInvoicesCountRequest(server string, workspaceId string, params *GetInvoicesCountParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/invoices-count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetLastOpenInvoiceRequest generates requests for GetLastOpenInvoice +func NewGetLastOpenInvoiceRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/last-open-invoice", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetInvoicesListRequest generates requests for GetInvoicesList +func NewGetInvoicesListRequest(server string, workspaceId string, params *GetInvoicesListParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/list-invoices", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.NextPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nextPage", runtime.ParamLocationQuery, *params.NextPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetPaymentDateRequest generates requests for GetPaymentDate +func NewGetPaymentDateRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/payment-date", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetPaymentInfoRequest generates requests for GetPaymentInfo +func NewGetPaymentInfoRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/payment-information", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateSetupIntentForPaymentMethodRequest calls the generic CreateSetupIntentForPaymentMethod builder with application/json body +func NewCreateSetupIntentForPaymentMethodRequest(server string, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSetupIntentForPaymentMethodRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateSetupIntentForPaymentMethodRequestWithBody generates requests for CreateSetupIntentForPaymentMethod with any type of body +func NewCreateSetupIntentForPaymentMethodRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/payment-method/setup-intent", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPreviewUpgradeRequest generates requests for PreviewUpgrade +func NewPreviewUpgradeRequest(server string, workspaceId string, params *PreviewUpgradeParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/preview-price", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Quantity != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "quantity", runtime.ParamLocationQuery, *params.Quantity); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.LimitedQuantity != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limitedQuantity", runtime.ParamLocationQuery, *params.LimitedQuantity); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewReactivateSubscriptionRequest generates requests for ReactivateSubscription +func NewReactivateSubscriptionRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/reactivate-subscription", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetScheduledInvoiceInfoRequest generates requests for GetScheduledInvoiceInfo +func NewGetScheduledInvoiceInfoRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/scheduled-invoice-information", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateUserSeatsRequest calls the generic UpdateUserSeats builder with application/json body +func NewUpdateUserSeatsRequest(server string, workspaceId string, body UpdateUserSeatsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserSeatsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateUserSeatsRequestWithBody generates requests for UpdateUserSeats with any type of body +func NewUpdateUserSeatsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/seats", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateSetupIntentForInitialSubscriptionRequest calls the generic CreateSetupIntentForInitialSubscription builder with application/json body +func NewCreateSetupIntentForInitialSubscriptionRequest(server string, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSetupIntentForInitialSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateSetupIntentForInitialSubscriptionRequestWithBody generates requests for CreateSetupIntentForInitialSubscription with any type of body +func NewCreateSetupIntentForInitialSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/setup-intent", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body +func NewCreateSubscriptionRequest(server string, workspaceId string, body CreateSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body +func NewCreateSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/subscription/create", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body +func NewUpdateSubscriptionRequest(server string, workspaceId string, body UpdateSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateSubscriptionRequestWithBody generates requests for UpdateSubscription with any type of body +func NewUpdateSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/subscription/update", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpgradePreCheckRequest generates requests for UpgradePreCheck +func NewUpgradePreCheckRequest(server string, workspaceId string, params *UpgradePreCheckParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/subscription/upgrade-pre-check", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeleteSubscriptionRequest calls the generic DeleteSubscription builder with application/json body +func NewDeleteSubscriptionRequest(server string, workspaceId string, body DeleteSubscriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDeleteSubscriptionRequestWithBody generates requests for DeleteSubscription with any type of body +func NewDeleteSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/terminate-subscription", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewTerminateTrialRequest generates requests for TerminateTrial +func NewTerminateTrialRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/terminate-trial", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewStartTrialRequest generates requests for StartTrial +func NewStartTrialRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/trial", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWasRegionalEverAllowedRequest generates requests for WasRegionalEverAllowed +func NewWasRegionalEverAllowedRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/payments/was-regional-ever-allowed", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewFindForUserAndPolicyRequest generates requests for FindForUserAndPolicy +func NewFindForUserAndPolicyRequest(server string, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/policies/%s/users/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetClientsRequest generates requests for GetClients +func NewGetClientsRequest(server string, workspaceId string, params *GetClientsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/project-picker/clients", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedProjects != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedProjects", runtime.ParamLocationQuery, *params.ExcludedProjects); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedTasks != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pickerOptions", runtime.ParamLocationQuery, params.PickerOptions); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjects3Request generates requests for GetProjects3 +func NewGetProjects3Request(server string, workspaceId string, params *GetProjects3Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/project-picker/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.ClientId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clientId", runtime.ParamLocationQuery, *params.ClientId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedTasks != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedProjects != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedProjects", runtime.ParamLocationQuery, *params.ExcludedProjects); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Favorites != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "favorites", runtime.ParamLocationQuery, *params.Favorites); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjectFavoritesRequest generates requests for GetProjectFavorites +func NewGetProjectFavoritesRequest(server string, workspaceId string, params *GetProjectFavoritesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/project-picker/projects/favorites", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedTasks != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTasks21Request generates requests for GetTasks21 +func NewGetTasks21Request(server string, workspaceId string, projectId string, params *GetTasks21Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/project-picker/projects/%s/tasks", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedTasks != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.TaskFilterEnabled != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskFilterEnabled", runtime.ParamLocationQuery, *params.TaskFilterEnabled); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRecalculateProjectStatus1Request generates requests for RecalculateProjectStatus1 +func NewRecalculateProjectStatus1Request(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/project-status", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjectAndTaskRequest calls the generic GetProjectAndTask builder with application/json body +func NewGetProjectAndTaskRequest(server string, workspaceId string, body GetProjectAndTaskJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetProjectAndTaskRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetProjectAndTaskRequestWithBody generates requests for GetProjectAndTask with any type of body +func NewGetProjectAndTaskRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/project-task", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteMany2Request calls the generic DeleteMany2 builder with application/json body +func NewDeleteMany2Request(server string, workspaceId string, body DeleteMany2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteMany2RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDeleteMany2RequestWithBody generates requests for DeleteMany2 with any type of body +func NewDeleteMany2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetProjects2Request generates requests for GetProjects2 +func NewGetProjects2Request(server string, workspaceId string, params *GetProjects2Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictNameSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strict-name-search", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Billable != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, *params.Billable); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Clients != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clients", runtime.ParamLocationQuery, *params.Clients); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ContainsClient != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-client", runtime.ParamLocationQuery, *params.ContainsClient); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ClientStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client-status", runtime.ParamLocationQuery, *params.ClientStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Users != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "users", runtime.ParamLocationQuery, *params.Users); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ContainsUser != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-user", runtime.ParamLocationQuery, *params.ContainsUser); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user-status", runtime.ParamLocationQuery, *params.UserStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IsTemplate != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is-template", runtime.ParamLocationQuery, *params.IsTemplate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateMany1Request calls the generic UpdateMany1 builder with application/json body +func NewUpdateMany1Request(server string, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateMany1RequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewUpdateMany1RequestWithBody generates requests for UpdateMany1 with any type of body +func NewUpdateMany1RequestWithBody(server string, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TasksStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tasks-status", runtime.ParamLocationQuery, *params.TasksStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreate12Request calls the generic Create12 builder with application/json body +func NewCreate12Request(server string, workspaceId string, body Create12JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate12RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate12RequestWithBody generates requests for Create12 with any type of body +func NewCreate12RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetFilteredProjectsCountRequest generates requests for GetFilteredProjectsCount +func NewGetFilteredProjectsCountRequest(server string, workspaceId string, params *GetFilteredProjectsCountParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Billable != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, *params.Billable); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Clients != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clients", runtime.ParamLocationQuery, *params.Clients); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ContainsClient != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-client", runtime.ParamLocationQuery, *params.ContainsClient); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ClientStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client-status", runtime.ParamLocationQuery, *params.ClientStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Users != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "users", runtime.ParamLocationQuery, *params.Users); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ContainsUser != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-user", runtime.ParamLocationQuery, *params.ContainsUser); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user-status", runtime.ParamLocationQuery, *params.UserStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetFilteredProjectsRequest calls the generic GetFilteredProjects builder with application/json body +func NewGetFilteredProjectsRequest(server string, workspaceId string, body GetFilteredProjectsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetFilteredProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetFilteredProjectsRequestWithBody generates requests for GetFilteredProjects with any type of body +func NewGetFilteredProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/filter", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateFromTemplateRequest calls the generic CreateFromTemplate builder with application/json body +func NewCreateFromTemplateRequest(server string, workspaceId string, body CreateFromTemplateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateFromTemplateRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateFromTemplateRequestWithBody generates requests for CreateFromTemplate with any type of body +func NewCreateFromTemplateRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/from-template", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetProjectRequest calls the generic GetProject builder with application/json body +func NewGetProjectRequest(server string, workspaceId string, body GetProjectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetProjectRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetProjectRequestWithBody generates requests for GetProject with any type of body +func NewGetProjectRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetLastUsedProjectRequest generates requests for GetLastUsedProject +func NewGetLastUsedProjectRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/last-used", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewLastUsedProject1Request generates requests for LastUsedProject1 +func NewLastUsedProject1Request(server string, workspaceId string, params *LastUsedProject1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/lastUsed", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjectsListRequest generates requests for GetProjectsList +func NewGetProjectsListRequest(server string, workspaceId string, params *GetProjectsListParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/list", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictNameSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strict-name-search", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Billable != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, *params.Billable); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Clients != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clients", runtime.ParamLocationQuery, *params.Clients); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ContainsClient != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-client", runtime.ParamLocationQuery, *params.ContainsClient); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ClientStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client-status", runtime.ParamLocationQuery, *params.ClientStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Users != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "users", runtime.ParamLocationQuery, *params.Users); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ContainsUser != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-user", runtime.ParamLocationQuery, *params.ContainsUser); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user-status", runtime.ParamLocationQuery, *params.UserStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IsTemplate != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is-template", runtime.ParamLocationQuery, *params.IsTemplate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewHasManagerRole1Request generates requests for HasManagerRole1 +func NewHasManagerRole1Request(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/manager", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjectsForReportFilterRequest calls the generic GetProjectsForReportFilter builder with application/json body +func NewGetProjectsForReportFilterRequest(server string, workspaceId string, body GetProjectsForReportFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetProjectsForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetProjectsForReportFilterRequestWithBody generates requests for GetProjectsForReportFilter with any type of body +func NewGetProjectsForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/report-filters", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetProjectIdsForReportFilterRequest calls the generic GetProjectIdsForReportFilter builder with application/json body +func NewGetProjectIdsForReportFilterRequest(server string, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetProjectIdsForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetProjectIdsForReportFilterRequestWithBody generates requests for GetProjectIdsForReportFilter with any type of body +func NewGetProjectIdsForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/report-filters/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTasksByIdsRequest calls the generic GetTasksByIds builder with application/json body +func NewGetTasksByIdsRequest(server string, workspaceId string, body GetTasksByIdsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTasksByIdsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetTasksByIdsRequestWithBody generates requests for GetTasksByIds with any type of body +func NewGetTasksByIdsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/taskIds", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllTasksRequest calls the generic GetAllTasks builder with application/json body +func NewGetAllTasksRequest(server string, workspaceId string, body GetAllTasksJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetAllTasksRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetAllTasksRequestWithBody generates requests for GetAllTasks with any type of body +func NewGetAllTasksRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTasksRequest calls the generic GetTasks builder with application/json body +func NewGetTasksRequest(server string, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTasksRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGetTasksRequestWithBody generates requests for GetTasks with any type of body +func NewGetTasksRequestWithBody(server string, workspaceId string, params *GetTasksParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks-pagination", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTasksForReportFilterRequest calls the generic GetTasksForReportFilter builder with application/json body +func NewGetTasksForReportFilterRequest(server string, workspaceId string, body GetTasksForReportFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTasksForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetTasksForReportFilterRequestWithBody generates requests for GetTasksForReportFilter with any type of body +func NewGetTasksForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks/report-filters", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTaskIdsForReportFilterRequest calls the generic GetTaskIdsForReportFilter builder with application/json body +func NewGetTaskIdsForReportFilterRequest(server string, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTaskIdsForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetTaskIdsForReportFilterRequestWithBody generates requests for GetTaskIdsForReportFilter with any type of body +func NewGetTaskIdsForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks/report-filters/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTimeOffPoliciesAndHolidaysWithProjectsRequest calls the generic GetTimeOffPoliciesAndHolidaysWithProjects builder with application/json body +func NewGetTimeOffPoliciesAndHolidaysWithProjectsRequest(server string, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody generates requests for GetTimeOffPoliciesAndHolidaysWithProjects with any type of body +func NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/time-off-policies-holidays", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetLastUsedOfUserRequest generates requests for GetLastUsedOfUser +func NewGetLastUsedOfUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/users/%s/last-used", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetPermissionsToUserForProjectsRequest calls the generic GetPermissionsToUserForProjects builder with application/json body +func NewGetPermissionsToUserForProjectsRequest(server string, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetPermissionsToUserForProjectsRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewGetPermissionsToUserForProjectsRequestWithBody generates requests for GetPermissionsToUserForProjects with any type of body +func NewGetPermissionsToUserForProjectsRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/users/%s/permissions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete13Request generates requests for Delete13 +func NewDelete13Request(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProject1Request generates requests for GetProject1 +func NewGetProject1Request(server string, workspaceId string, projectId string, params *GetProject1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate14Request calls the generic Update14 builder with application/json body +func NewUpdate14Request(server string, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate14RequestWithBody(server, workspaceId, projectId, params, "application/json", bodyReader) +} + +// NewUpdate14RequestWithBody generates requests for Update14 with any type of body +func NewUpdate14RequestWithBody(server string, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TasksStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tasks-status", runtime.ParamLocationQuery, *params.TasksStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdate6Request calls the generic Update6 builder with application/json body +func NewUpdate6Request(server string, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate6RequestWithBody(server, workspaceId, projectId, params, "application/json", bodyReader) +} + +// NewUpdate6RequestWithBody generates requests for Update6 with any type of body +func NewUpdate6RequestWithBody(server string, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TasksStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tasks-status", runtime.ParamLocationQuery, *params.TasksStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetCostRate1Request calls the generic SetCostRate1 builder with application/json body +func NewSetCostRate1Request(server string, workspaceId string, projectId string, body SetCostRate1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetCostRate1RequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewSetCostRate1RequestWithBody generates requests for SetCostRate1 with any type of body +func NewSetCostRate1RequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/cost-rate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateEstimateRequest calls the generic UpdateEstimate builder with application/json body +func NewUpdateEstimateRequest(server string, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateEstimateRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewUpdateEstimateRequestWithBody generates requests for UpdateEstimate with any type of body +func NewUpdateEstimateRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/estimate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetHourlyRate1Request calls the generic SetHourlyRate1 builder with application/json body +func NewSetHourlyRate1Request(server string, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetHourlyRate1RequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewSetHourlyRate1RequestWithBody generates requests for SetHourlyRate1 with any type of body +func NewSetHourlyRate1RequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/hourly-rate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHasManagerRoleRequest generates requests for HasManagerRole +func NewHasManagerRoleRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/manager", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAuthsForProjectRequest generates requests for GetAuthsForProject +func NewGetAuthsForProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/permissions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRecalculateProjectStatusRequest generates requests for RecalculateProjectStatus +func NewRecalculateProjectStatusRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/project-status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTasks1Request generates requests for GetTasks1 +func NewGetTasks1Request(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate13Request calls the generic Create13 builder with application/json body +func NewCreate13Request(server string, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate13RequestWithBody(server, workspaceId, projectId, params, "application/json", bodyReader) +} + +// NewCreate13RequestWithBody generates requests for Create13 with any type of body +func NewCreate13RequestWithBody(server string, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.ContainsAssignee != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-assignee", runtime.ParamLocationQuery, *params.ContainsAssignee); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTasksAssignedToUserRequest generates requests for GetTasksAssignedToUser +func NewGetTasksAssignedToUserRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/assigned", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTimeOffPoliciesAndHolidaysWithTasksRequest calls the generic GetTimeOffPoliciesAndHolidaysWithTasks builder with application/json body +func NewGetTimeOffPoliciesAndHolidaysWithTasksRequest(server string, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody generates requests for GetTimeOffPoliciesAndHolidaysWithTasks with any type of body +func NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/time-off-policies-holidays", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdate7Request calls the generic Update7 builder with application/json body +func NewUpdate7Request(server string, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate7RequestWithBody(server, workspaceId, projectId, id, params, "application/json", bodyReader) +} + +// NewUpdate7RequestWithBody generates requests for Update7 with any type of body +func NewUpdate7RequestWithBody(server string, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.ContainsAssignee != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-assignee", runtime.ParamLocationQuery, *params.ContainsAssignee); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.MembershipStatus != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "membership-status", runtime.ParamLocationQuery, *params.MembershipStatus); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetCostRateRequest calls the generic SetCostRate builder with application/json body +func NewSetCostRateRequest(server string, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetCostRateRequestWithBody(server, workspaceId, projectId, id, "application/json", bodyReader) +} + +// NewSetCostRateRequestWithBody generates requests for SetCostRate with any type of body +func NewSetCostRateRequestWithBody(server string, workspaceId string, projectId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s/cost-rate", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSetHourlyRateRequest calls the generic SetHourlyRate builder with application/json body +func NewSetHourlyRateRequest(server string, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetHourlyRateRequestWithBody(server, workspaceId, projectId, id, "application/json", bodyReader) +} + +// NewSetHourlyRateRequestWithBody generates requests for SetHourlyRate with any type of body +func NewSetHourlyRateRequestWithBody(server string, workspaceId string, projectId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s/hourly-rate", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete14Request generates requests for Delete14 +func NewDelete14Request(server string, workspaceId string, projectId string, taskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTaskAssignedToUserRequest generates requests for GetTaskAssignedToUser +func NewGetTaskAssignedToUserRequest(server string, workspaceId string, projectId string, taskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s/assigned", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAddUsers1Request calls the generic AddUsers1 builder with application/json body +func NewAddUsers1Request(server string, workspaceId string, projectId string, body AddUsers1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddUsers1RequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewAddUsers1RequestWithBody generates requests for AddUsers1 with any type of body +func NewAddUsers1RequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/team", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetStatusRequest generates requests for GetStatus +func NewGetStatusRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tracked", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemoveUserGroupMembershipRequest generates requests for RemoveUserGroupMembership +func NewRemoveUserGroupMembershipRequest(server string, workspaceId string, projectId string, usergroupId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "usergroupId", runtime.ParamLocationPath, usergroupId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/userGroups/%s/membership", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsers4Request generates requests for GetUsers4 +func NewGetUsers4Request(server string, workspaceId string, projectId string, params *GetUsers4Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Memberships != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAddUsersCostRate1Request calls the generic AddUsersCostRate1 builder with application/json body +func NewAddUsersCostRate1Request(server string, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddUsersCostRate1RequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader) +} + +// NewAddUsersCostRate1RequestWithBody generates requests for AddUsersCostRate1 with any type of body +func NewAddUsersCostRate1RequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/cost-rate", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAddUsersHourlyRate1Request calls the generic AddUsersHourlyRate1 builder with application/json body +func NewAddUsersHourlyRate1Request(server string, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddUsersHourlyRate1RequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader) +} + +// NewAddUsersHourlyRate1RequestWithBody generates requests for AddUsersHourlyRate1 with any type of body +func NewAddUsersHourlyRate1RequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/hourly-rate", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveUserMembershipRequest generates requests for RemoveUserMembership +func NewRemoveUserMembershipRequest(server string, workspaceId string, projectId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/membership", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemovePermissionsToUserRequest calls the generic RemovePermissionsToUser builder with application/json body +func NewRemovePermissionsToUserRequest(server string, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRemovePermissionsToUserRequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader) +} + +// NewRemovePermissionsToUserRequestWithBody generates requests for RemovePermissionsToUser with any type of body +func NewRemovePermissionsToUserRequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/permissions", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetPermissionsToUser1Request generates requests for GetPermissionsToUser1 +func NewGetPermissionsToUser1Request(server string, workspaceId string, projectId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/permissions", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAddPermissionsToUserRequest calls the generic AddPermissionsToUser builder with application/json body +func NewAddPermissionsToUserRequest(server string, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddPermissionsToUserRequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader) +} + +// NewAddPermissionsToUserRequestWithBody generates requests for AddPermissionsToUser with any type of body +func NewAddPermissionsToUserRequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/permissions", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDisconnectRequest generates requests for Disconnect +func NewDisconnectRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/pumble-integration", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewConnectRequest calls the generic Connect builder with application/json body +func NewConnectRequest(server string, workspaceId string, body ConnectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewConnectRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewConnectRequestWithBody generates requests for Connect with any type of body +func NewConnectRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/pumble-integration", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewConnect1Request generates requests for Connect1 +func NewConnect1Request(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/pumble-integration/connected", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewSyncClientsRequest calls the generic SyncClients builder with application/json body +func NewSyncClientsRequest(server string, workspaceId string, body SyncClientsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSyncClientsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewSyncClientsRequestWithBody generates requests for SyncClients with any type of body +func NewSyncClientsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/quickbooks-sync/clients", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSyncProjectsRequest calls the generic SyncProjects builder with application/json body +func NewSyncProjectsRequest(server string, workspaceId string, body SyncProjectsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSyncProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewSyncProjectsRequestWithBody generates requests for SyncProjects with any type of body +func NewSyncProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/quickbooks-sync/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateProjectsRequest calls the generic UpdateProjects builder with application/json body +func NewUpdateProjectsRequest(server string, workspaceId string, body UpdateProjectsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateProjectsRequestWithBody generates requests for UpdateProjects with any type of body +func NewUpdateProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/quickbooks-sync/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllRegionsForUserAccountRequest generates requests for GetAllRegionsForUserAccount +func NewGetAllRegionsForUserAccountRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/regions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewListOfWorkspaceRequest generates requests for ListOfWorkspace +func NewListOfWorkspaceRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reminders", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate11Request calls the generic Create11 builder with application/json body +func NewCreate11Request(server string, workspaceId string, body Create11JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate11RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate11RequestWithBody generates requests for Create11 with any type of body +func NewCreate11RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reminders", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewOfWorkspaceIdAndUserIdRequest generates requests for OfWorkspaceIdAndUserId +func NewOfWorkspaceIdAndUserIdRequest(server string, workspaceId string, params *OfWorkspaceIdAndUserIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reminders/targets", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDelete12Request generates requests for Delete12 +func NewDelete12Request(server string, workspaceId string, reminderId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reminderId", runtime.ParamLocationPath, reminderId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reminders/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate5Request calls the generic Update5 builder with application/json body +func NewUpdate5Request(server string, workspaceId string, reminderId string, body Update5JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate5RequestWithBody(server, workspaceId, reminderId, "application/json", bodyReader) +} + +// NewUpdate5RequestWithBody generates requests for Update5 with any type of body +func NewUpdate5RequestWithBody(server string, workspaceId string, reminderId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reminderId", runtime.ParamLocationPath, reminderId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reminders/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetDashboardInfoRequest calls the generic GetDashboardInfo builder with application/json body +func NewGetDashboardInfoRequest(server string, workspaceId string, body GetDashboardInfoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetDashboardInfoRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetDashboardInfoRequestWithBody generates requests for GetDashboardInfo with any type of body +func NewGetDashboardInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reports/dashboard-info", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetMyMostTrackedRequest generates requests for GetMyMostTracked +func NewGetMyMostTrackedRequest(server string, workspaceId string, params *GetMyMostTrackedParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reports/mostTracked", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Count != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "count", runtime.ParamLocationQuery, *params.Count); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTeamActivitiesRequest generates requests for GetTeamActivities +func NewGetTeamActivitiesRequest(server string, workspaceId string, params *GetTeamActivitiesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/reports/team-activities", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAmountPreviewRequest generates requests for GetAmountPreview +func NewGetAmountPreviewRequest(server string, workspaceId string, params *GetAmountPreviewParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/amount-preview", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, params.ProjectId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskId", runtime.ParamLocationQuery, params.TaskId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "totalHours", runtime.ParamLocationQuery, params.TotalHours); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, params.Billable); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetDraftAssignmentsCountRequest calls the generic GetDraftAssignmentsCount builder with application/json body +func NewGetDraftAssignmentsCountRequest(server string, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetDraftAssignmentsCountRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetDraftAssignmentsCountRequestWithBody generates requests for GetDraftAssignmentsCount with any type of body +func NewGetDraftAssignmentsCountRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/draft-filter/count", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetProjectTotalsRequest generates requests for GetProjectTotals +func NewGetProjectTotalsRequest(server string, workspaceId string, params *GetProjectTotalsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/totals", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetFilteredProjectTotalsRequest calls the generic GetFilteredProjectTotals builder with application/json body +func NewGetFilteredProjectTotalsRequest(server string, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetFilteredProjectTotalsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetFilteredProjectTotalsRequestWithBody generates requests for GetFilteredProjectTotals with any type of body +func NewGetFilteredProjectTotalsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/totals", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetProjectTotalsForSingleProjectRequest generates requests for GetProjectTotalsForSingleProject +func NewGetProjectTotalsForSingleProjectRequest(server string, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/totals/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjectsForUserRequest generates requests for GetProjectsForUser +func NewGetProjectsForUserRequest(server string, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/%s/users/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPublishAssignmentsRequest calls the generic PublishAssignments builder with application/json body +func NewPublishAssignmentsRequest(server string, workspaceId string, body PublishAssignmentsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPublishAssignmentsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewPublishAssignmentsRequestWithBody generates requests for PublishAssignments with any type of body +func NewPublishAssignmentsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/publish", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateRecurringRequest calls the generic CreateRecurring builder with application/json body +func NewCreateRecurringRequest(server string, workspaceId string, body CreateRecurringJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateRecurringRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateRecurringRequestWithBody generates requests for CreateRecurring with any type of body +func NewCreateRecurringRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete11Request generates requests for Delete11 +func NewDelete11Request(server string, workspaceId string, assignmentId string, params *Delete11Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SeriesUpdateOption != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seriesUpdateOption", runtime.ParamLocationQuery, *params.SeriesUpdateOption); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewEditRecurringRequest calls the generic EditRecurring builder with application/json body +func NewEditRecurringRequest(server string, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditRecurringRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader) +} + +// NewEditRecurringRequestWithBody generates requests for EditRecurring with any type of body +func NewEditRecurringRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditPeriodForRecurringRequest calls the generic EditPeriodForRecurring builder with application/json body +func NewEditPeriodForRecurringRequest(server string, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditPeriodForRecurringRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader) +} + +// NewEditPeriodForRecurringRequestWithBody generates requests for EditPeriodForRecurring with any type of body +func NewEditPeriodForRecurringRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring/%s/period", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditRecurringPeriodRequest calls the generic EditRecurringPeriod builder with application/json body +func NewEditRecurringPeriodRequest(server string, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditRecurringPeriodRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader) +} + +// NewEditRecurringPeriodRequestWithBody generates requests for EditRecurringPeriod with any type of body +func NewEditRecurringPeriodRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/series/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUserTotalsRequest calls the generic GetUserTotals builder with application/json body +func NewGetUserTotalsRequest(server string, workspaceId string, body GetUserTotalsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserTotalsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUserTotalsRequestWithBody generates requests for GetUserTotals with any type of body +func NewGetUserTotalsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/user-filter/totals", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAssignmentsForUserRequest generates requests for GetAssignmentsForUser +func NewGetAssignmentsForUserRequest(server string, workspaceId string, userId string, params *GetAssignmentsForUserParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/user/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "published", runtime.ParamLocationQuery, params.Published); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetFilteredAssignmentsForUserRequest calls the generic GetFilteredAssignmentsForUser builder with application/json body +func NewGetFilteredAssignmentsForUserRequest(server string, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetFilteredAssignmentsForUserRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewGetFilteredAssignmentsForUserRequestWithBody generates requests for GetFilteredAssignmentsForUser with any type of body +func NewGetFilteredAssignmentsForUserRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/user/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsers3Request generates requests for GetUsers3 +func NewGetUsers3Request(server string, workspaceId string, projectId string, params *GetUsers3Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Exclude != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude", runtime.ParamLocationQuery, *params.Exclude); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StatusFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statusFilter", runtime.ParamLocationQuery, *params.StatusFilter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetProjects1Request generates requests for GetProjects1 +func NewGetProjects1Request(server string, workspaceId string, userId string, params *GetProjects1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s/projects", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Exclude != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude", runtime.ParamLocationQuery, *params.Exclude); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StatusFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statusFilter", runtime.ParamLocationQuery, *params.StatusFilter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemindToPublishRequest generates requests for RemindToPublish +func NewRemindToPublishRequest(server string, workspaceId string, userId string, params *RemindToPublishParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s/remind-to-publish", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startDate", runtime.ParamLocationQuery, params.StartDate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endDate", runtime.ParamLocationQuery, params.EndDate); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserTotalsForSingleUserRequest generates requests for GetUserTotalsForSingleUser +func NewGetUserTotalsForSingleUserRequest(server string, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s/totals", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGet3Request generates requests for Get3 +func NewGet3Request(server string, workspaceId string, assignmentId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCopyAssignmentRequest calls the generic CopyAssignment builder with application/json body +func NewCopyAssignmentRequest(server string, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCopyAssignmentRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader) +} + +// NewCopyAssignmentRequestWithBody generates requests for CopyAssignment with any type of body +func NewCopyAssignmentRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s/copy", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSplitAssignmentRequest calls the generic SplitAssignment builder with application/json body +func NewSplitAssignmentRequest(server string, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSplitAssignmentRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader) +} + +// NewSplitAssignmentRequestWithBody generates requests for SplitAssignment with any type of body +func NewSplitAssignmentRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s/split", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewShiftScheduleRequest calls the generic ShiftSchedule builder with application/json body +func NewShiftScheduleRequest(server string, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewShiftScheduleRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader) +} + +// NewShiftScheduleRequestWithBody generates requests for ShiftSchedule with any type of body +func NewShiftScheduleRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s/shift", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewHideProjectRequest generates requests for HideProject +func NewHideProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewShowProjectRequest generates requests for ShowProject +func NewShowProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/projects/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewHideUserRequest generates requests for HideUser +func NewHideUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewShowUserRequest generates requests for ShowUser +func NewShowUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate10Request calls the generic Create10 builder with application/json body +func NewCreate10Request(server string, workspaceId string, body Create10JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate10RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate10RequestWithBody generates requests for Create10 with any type of body +func NewCreate10RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete10Request generates requests for Delete10 +func NewDelete10Request(server string, workspaceId string, milestoneId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGet2Request generates requests for Get2 +func NewGet2Request(server string, workspaceId string, milestoneId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewEdit1Request calls the generic Edit1 builder with application/json body +func NewEdit1Request(server string, workspaceId string, milestoneId string, body Edit1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEdit1RequestWithBody(server, workspaceId, milestoneId, "application/json", bodyReader) +} + +// NewEdit1RequestWithBody generates requests for Edit1 with any type of body +func NewEdit1RequestWithBody(server string, workspaceId string, milestoneId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditDateRequest calls the generic EditDate builder with application/json body +func NewEditDateRequest(server string, workspaceId string, milestoneId string, body EditDateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditDateRequestWithBody(server, workspaceId, milestoneId, "application/json", bodyReader) +} + +// NewEditDateRequestWithBody generates requests for EditDate with any type of body +func NewEditDateRequestWithBody(server string, workspaceId string, milestoneId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s/date", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetProjectsRequest generates requests for GetProjects +func NewGetProjectsRequest(server string, workspaceId string, params *GetProjectsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/projects", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IncludeHidden != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHidden", runtime.ParamLocationQuery, *params.IncludeHidden); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsers2Request generates requests for GetUsers2 +func NewGetUsers2Request(server string, workspaceId string, params *GetUsers2Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, params.ProjectId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.TaskId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskId", runtime.ParamLocationQuery, *params.TaskId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IncludeHidden != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHidden", runtime.ParamLocationQuery, *params.IncludeHidden); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersAssignedToProjectRequest generates requests for GetUsersAssignedToProject +func NewGetUsersAssignedToProjectRequest(server string, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/scheduling/users/project/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskId", runtime.ParamLocationQuery, params.TaskId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IncludeHidden != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHidden", runtime.ParamLocationQuery, *params.IncludeHidden); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if params.Statuses != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Memberships != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetSidebarConfigRequest generates requests for GetSidebarConfig +func NewGetSidebarConfigRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/sidebar/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateSidebarRequest calls the generic UpdateSidebar builder with application/json body +func NewUpdateSidebarRequest(server string, workspaceId string, userId string, body UpdateSidebarJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateSidebarRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdateSidebarRequestWithBody generates requests for UpdateSidebar with any type of body +func NewUpdateSidebarRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/sidebar/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewFilterUsersByStatusRequest calls the generic FilterUsersByStatus builder with application/json body +func NewFilterUsersByStatusRequest(server string, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewFilterUsersByStatusRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewFilterUsersByStatusRequestWithBody generates requests for FilterUsersByStatus with any type of body +func NewFilterUsersByStatusRequestWithBody(server string, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/specific-member/users/status", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete9Request calls the generic Delete9 builder with application/json body +func NewDelete9Request(server string, workspaceId string, body Delete9JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDelete9RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDelete9RequestWithBody generates requests for Delete9 with any type of body +func NewDelete9RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/stopwatch", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewStopRequest calls the generic Stop builder with application/json body +func NewStopRequest(server string, workspaceId string, body StopJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewStopRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewStopRequestWithBody generates requests for Stop with any type of body +func NewStopRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/stopwatch", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewStartRequest calls the generic Start builder with application/json body +func NewStartRequest(server string, workspaceId string, params *StartParams, body StartJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewStartRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewStartRequestWithBody generates requests for Start with any type of body +func NewStartRequestWithBody(server string, workspaceId string, params *StartParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/stopwatch", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TimeEntryId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "timeEntryId", runtime.ParamLocationQuery, *params.TimeEntryId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.AssignmentId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assignmentId", runtime.ParamLocationQuery, *params.AssignmentId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.AppName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName) + if err != nil { + return nil, err + } + + req.Header.Set("App-Name", headerParam0) + } + + if params.RequestId != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId) + if err != nil { + return nil, err + } + + req.Header.Set("Request-Id", headerParam1) + } + + if params.Signature != nil { + var headerParam2 string + + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature) + if err != nil { + return nil, err + } + + req.Header.Set("Signature", headerParam2) + } + + } + + return req, nil +} + +// NewDeleteMany1Request calls the generic DeleteMany1 builder with application/json body +func NewDeleteMany1Request(server string, workspaceId string, body DeleteMany1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteMany1RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDeleteMany1RequestWithBody generates requests for DeleteMany1 with any type of body +func NewDeleteMany1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTagsRequest generates requests for GetTags +func NewGetTagsRequest(server string, workspaceId string, params *GetTagsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.StrictNameSearch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strict-name-search", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Archived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateManyRequest calls the generic UpdateMany builder with application/json body +func NewUpdateManyRequest(server string, workspaceId string, body UpdateManyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateManyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateManyRequestWithBody generates requests for UpdateMany with any type of body +func NewUpdateManyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreate9Request calls the generic Create9 builder with application/json body +func NewCreate9Request(server string, workspaceId string, body Create9JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate9RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate9RequestWithBody generates requests for Create9 with any type of body +func NewCreate9RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewConnectedToApprovedEntriesRequest calls the generic ConnectedToApprovedEntries builder with application/json body +func NewConnectedToApprovedEntriesRequest(server string, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewConnectedToApprovedEntriesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewConnectedToApprovedEntriesRequestWithBody generates requests for ConnectedToApprovedEntries with any type of body +func NewConnectedToApprovedEntriesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags/connected-to-approved-entries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTagsOfIdsRequest calls the generic GetTagsOfIds builder with application/json body +func NewGetTagsOfIdsRequest(server string, workspaceId string, body GetTagsOfIdsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTagsOfIdsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetTagsOfIdsRequestWithBody generates requests for GetTagsOfIds with any type of body +func NewGetTagsOfIdsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTagIdsByNameAndStatusRequest generates requests for GetTagIdsByNameAndStatus +func NewGetTagIdsByNameAndStatusRequest(server string, workspaceId string, params *GetTagIdsByNameAndStatusParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags/report-filters/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDelete8Request generates requests for Delete8 +func NewDelete8Request(server string, workspaceId string, tagId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate4Request calls the generic Update4 builder with application/json body +func NewUpdate4Request(server string, workspaceId string, tagId string, body Update4JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate4RequestWithBody(server, workspaceId, tagId, "application/json", bodyReader) +} + +// NewUpdate4RequestWithBody generates requests for Update4 with any type of body +func NewUpdate4RequestWithBody(server string, workspaceId string, tagId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/tags/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTemplatesRequest generates requests for GetTemplates +func NewGetTemplatesRequest(server string, workspaceId string, params *GetTemplatesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.RemoveInactivePairs != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remove-inactive-pairs", runtime.ParamLocationQuery, *params.RemoveInactivePairs); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.WeekStart != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "week-start", runtime.ParamLocationQuery, *params.WeekStart); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate8Request calls the generic Create8 builder with application/json body +func NewCreate8Request(server string, workspaceId string, body Create8JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate8RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate8RequestWithBody generates requests for Create8 with any type of body +func NewCreate8RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete7Request generates requests for Delete7 +func NewDelete7Request(server string, workspaceId string, templateId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTemplateRequest generates requests for GetTemplate +func NewGetTemplateRequest(server string, workspaceId string, templateId string, params *GetTemplateParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.RemoveInactivePairs != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remove-inactive-pairs", runtime.ParamLocationQuery, *params.RemoveInactivePairs); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate13Request calls the generic Update13 builder with application/json body +func NewUpdate13Request(server string, workspaceId string, templateId string, body Update13JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate13RequestWithBody(server, workspaceId, templateId, "application/json", bodyReader) +} + +// NewUpdate13RequestWithBody generates requests for Update13 with any type of body +func NewUpdate13RequestWithBody(server string, workspaceId string, templateId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewActivateRequest calls the generic Activate builder with application/json body +func NewActivateRequest(server string, workspaceId string, templateId string, body ActivateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewActivateRequestWithBody(server, workspaceId, templateId, "application/json", bodyReader) +} + +// NewActivateRequestWithBody generates requests for Activate with any type of body +func NewActivateRequestWithBody(server string, workspaceId string, templateId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates/%s/activate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeactivateRequest calls the generic Deactivate builder with application/json body +func NewDeactivateRequest(server string, workspaceId string, templateId string, body DeactivateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeactivateRequestWithBody(server, workspaceId, templateId, "application/json", bodyReader) +} + +// NewDeactivateRequestWithBody generates requests for Deactivate with any type of body +func NewDeactivateRequestWithBody(server string, workspaceId string, templateId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/templates/%s/deactivate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCopyTimeEntriesRequest calls the generic CopyTimeEntries builder with application/json body +func NewCopyTimeEntriesRequest(server string, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCopyTimeEntriesRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCopyTimeEntriesRequestWithBody generates requests for CopyTimeEntries with any type of body +func NewCopyTimeEntriesRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-entries/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewContinueTimeEntryRequest generates requests for ContinueTimeEntry +func NewContinueTimeEntryRequest(server string, workspaceId string, timeEntryId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-entries/%s/continue", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTeamMembersOfAdminRequest generates requests for GetTeamMembersOfAdmin +func NewGetTeamMembersOfAdminRequest(server string, workspaceId string, params *GetTeamMembersOfAdminParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/admin/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetBalancesForPolicyRequest generates requests for GetBalancesForPolicy +func NewGetBalancesForPolicyRequest(server string, workspaceId string, policyId string, params *GetBalancesForPolicyParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/balance/policy/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateBalanceRequest calls the generic UpdateBalance builder with application/json body +func NewUpdateBalanceRequest(server string, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateBalanceRequestWithBody(server, workspaceId, policyId, "application/json", bodyReader) +} + +// NewUpdateBalanceRequestWithBody generates requests for UpdateBalance with any type of body +func NewUpdateBalanceRequestWithBody(server string, workspaceId string, policyId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/balance/policy/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetBalancesForUserRequest generates requests for GetBalancesForUser +func NewGetBalancesForUserRequest(server string, workspaceId string, userId string, params *GetBalancesForUserParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/balance/user/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Sort != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.WithArchived != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with-archived", runtime.ParamLocationQuery, *params.WithArchived); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTeamMembersOfManagerRequest generates requests for GetTeamMembersOfManager +func NewGetTeamMembersOfManagerRequest(server string, workspaceId string, params *GetTeamMembersOfManagerParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/manager/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewFindPoliciesForWorkspaceRequest generates requests for FindPoliciesForWorkspace +func NewFindPoliciesForWorkspaceRequest(server string, workspaceId string, params *FindPoliciesForWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreatePolicyRequest calls the generic CreatePolicy builder with application/json body +func NewCreatePolicyRequest(server string, workspaceId string, body CreatePolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreatePolicyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreatePolicyRequestWithBody generates requests for CreatePolicy with any type of body +func NewCreatePolicyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetPolicyAssignmentForCurrentUserRequest generates requests for GetPolicyAssignmentForCurrentUser +func NewGetPolicyAssignmentForCurrentUserRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/assignments", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTeamAssignmentsDistributionRequest generates requests for GetTeamAssignmentsDistribution +func NewGetTeamAssignmentsDistributionRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/assignments/team", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetPolicyAssignmentsForUserRequest generates requests for GetPolicyAssignmentsForUser +func NewGetPolicyAssignmentsForUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/assignments/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewFindPoliciesForUserRequest generates requests for FindPoliciesForUser +func NewFindPoliciesForUserRequest(server string, workspaceId string, userId string, params *FindPoliciesForUserParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDeletePolicyRequest generates requests for DeletePolicy +func NewDeletePolicyRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdatePolicyRequest calls the generic UpdatePolicy builder with application/json body +func NewUpdatePolicyRequest(server string, workspaceId string, id string, body UpdatePolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdatePolicyRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdatePolicyRequestWithBody generates requests for UpdatePolicy with any type of body +func NewUpdatePolicyRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewArchiveRequest generates requests for Archive +func NewArchiveRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/archive", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRestoreRequest generates requests for Restore +func NewRestoreRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/restore", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetPolicyRequest generates requests for GetPolicy +func NewGetPolicyRequest(server string, workspaceId string, policyId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate7Request calls the generic Create7 builder with application/json body +func NewCreate7Request(server string, workspaceId string, policyId string, body Create7JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate7RequestWithBody(server, workspaceId, policyId, "application/json", bodyReader) +} + +// NewCreate7RequestWithBody generates requests for Create7 with any type of body +func NewCreate7RequestWithBody(server string, workspaceId string, policyId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete6Request generates requests for Delete6 +func NewDelete6Request(server string, workspaceId string, policyId string, requestId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewApproveRequest generates requests for Approve +func NewApproveRequest(server string, workspaceId string, policyId string, requestId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests/%s/approve", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRejectRequest calls the generic Reject builder with application/json body +func NewRejectRequest(server string, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRejectRequestWithBody(server, workspaceId, policyId, requestId, "application/json", bodyReader) +} + +// NewRejectRequestWithBody generates requests for Reject with any type of body +func NewRejectRequestWithBody(server string, workspaceId string, policyId string, requestId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests/%s/reject", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateForOther1Request calls the generic CreateForOther1 builder with application/json body +func NewCreateForOther1Request(server string, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateForOther1RequestWithBody(server, workspaceId, policyId, userId, "application/json", bodyReader) +} + +// NewCreateForOther1RequestWithBody generates requests for CreateForOther1 with any type of body +func NewCreateForOther1RequestWithBody(server string, workspaceId string, policyId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/users/%s/requests", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGet1Request calls the generic Get1 builder with application/json body +func NewGet1Request(server string, workspaceId string, params *Get1Params, body Get1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGet1RequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGet1RequestWithBody generates requests for Get1 with any type of body +func NewGet1RequestWithBody(server string, workspaceId string, params *Get1Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/requests", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.FetchScope != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fetch-scope", runtime.ParamLocationQuery, *params.FetchScope); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTimeOffRequestByIdRequest generates requests for GetTimeOffRequestById +func NewGetTimeOffRequestByIdRequest(server string, workspaceId string, requestId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/requests/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetAllUsersOfWorkspaceRequest generates requests for GetAllUsersOfWorkspace +func NewGetAllUsersOfWorkspaceRequest(server string, workspaceId string, params *GetAllUsersOfWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/specific-member/all-users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserGroupsOfWorkspaceRequest generates requests for GetUserGroupsOfWorkspace +func NewGetUserGroupsOfWorkspaceRequest(server string, workspaceId string, params *GetUserGroupsOfWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/specific-member/user-groups", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.FilterTeam != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter-team", runtime.ParamLocationQuery, *params.FilterTeam); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUsersOfWorkspaceRequest generates requests for GetUsersOfWorkspace +func NewGetUsersOfWorkspaceRequest(server string, workspaceId string, params *GetUsersOfWorkspaceParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/specific-member/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Search != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.FilterTeam != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter-team", runtime.ParamLocationQuery, *params.FilterTeam); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetRequest calls the generic Get builder with application/json body +func NewGetRequest(server string, workspaceId string, params *GetParams, body GetJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGetRequestWithBody generates requests for Get with any type of body +func NewGetRequestWithBody(server string, workspaceId string, params *GetParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/timeline", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.FetchScope != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fetch-scope", runtime.ParamLocationQuery, *params.FetchScope); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTimelineForReportsRequest calls the generic GetTimelineForReports builder with application/json body +func NewGetTimelineForReportsRequest(server string, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetTimelineForReportsRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGetTimelineForReportsRequestWithBody generates requests for GetTimelineForReports with any type of body +func NewGetTimelineForReportsRequestWithBody(server string, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/time-off/timeline-for-reports", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.FetchScope != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fetch-scope", runtime.ParamLocationQuery, *params.FetchScope); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteManyRequest calls the generic DeleteMany builder with application/json body +func NewDeleteManyRequest(server string, workspaceId string, body DeleteManyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteManyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewDeleteManyRequestWithBody generates requests for DeleteMany with any type of body +func NewDeleteManyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTimeEntriesBySearchValueRequest generates requests for GetTimeEntriesBySearchValue +func NewGetTimeEntriesBySearchValueRequest(server string, workspaceId string, params *GetTimeEntriesBySearchValueParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, params.SearchValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate6Request calls the generic Create6 builder with application/json body +func NewCreate6Request(server string, workspaceId string, params *Create6Params, body Create6JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate6RequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewCreate6RequestWithBody generates requests for Create6 with any type of body +func NewCreate6RequestWithBody(server string, workspaceId string, params *Create6Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.FromEntry != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from-entry", runtime.ParamLocationQuery, *params.FromEntry); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.AppName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName) + if err != nil { + return nil, err + } + + req.Header.Set("App-Name", headerParam0) + } + + if params.RequestId != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId) + if err != nil { + return nil, err + } + + req.Header.Set("Request-Id", headerParam1) + } + + if params.Signature != nil { + var headerParam2 string + + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature) + if err != nil { + return nil, err + } + + req.Header.Set("Signature", headerParam2) + } + + } + + return req, nil +} + +// NewPatchTimeEntriesRequest calls the generic PatchTimeEntries builder with application/json body +func NewPatchTimeEntriesRequest(server string, workspaceId string, body PatchTimeEntriesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchTimeEntriesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewPatchTimeEntriesRequestWithBody generates requests for PatchTimeEntries with any type of body +func NewPatchTimeEntriesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/bulk", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEndStartedRequest calls the generic EndStarted builder with application/json body +func NewEndStartedRequest(server string, workspaceId string, body EndStartedJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEndStartedRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewEndStartedRequestWithBody generates requests for EndStarted with any type of body +func NewEndStartedRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/endStarted", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetMultipleTimeEntriesByIdRequest generates requests for GetMultipleTimeEntriesById +func NewGetMultipleTimeEntriesByIdRequest(server string, workspaceId string, params *GetMultipleTimeEntriesByIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/fetch", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, params.Id); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateFull1Request calls the generic CreateFull1 builder with application/json body +func NewCreateFull1Request(server string, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateFull1RequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewCreateFull1RequestWithBody generates requests for CreateFull1 with any type of body +func NewCreateFull1RequestWithBody(server string, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/full", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.AppName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName) + if err != nil { + return nil, err + } + + req.Header.Set("App-Name", headerParam0) + } + + if params.RequestId != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId) + if err != nil { + return nil, err + } + + req.Header.Set("Request-Id", headerParam1) + } + + if params.Signature != nil { + var headerParam2 string + + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature) + if err != nil { + return nil, err + } + + req.Header.Set("Signature", headerParam2) + } + + } + + return req, nil +} + +// NewGetTimeEntryInProgressRequest generates requests for GetTimeEntryInProgress +func NewGetTimeEntryInProgressRequest(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/inProgress", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateInvoicedStatusRequest calls the generic UpdateInvoicedStatus builder with application/json body +func NewUpdateInvoicedStatusRequest(server string, workspaceId string, body UpdateInvoicedStatusJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateInvoicedStatusRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewUpdateInvoicedStatusRequestWithBody generates requests for UpdateInvoicedStatus with any type of body +func NewUpdateInvoicedStatusRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/invoiced", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListOfProjectRequest generates requests for ListOfProject +func NewListOfProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/project/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTimeEntriesRecentlyUsedRequest generates requests for GetTimeEntriesRecentlyUsed +func NewGetTimeEntriesRecentlyUsedRequest(server string, workspaceId string, params *GetTimeEntriesRecentlyUsedParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/recent", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRestoreTimeEntriesRequest calls the generic RestoreTimeEntries builder with application/json body +func NewRestoreTimeEntriesRequest(server string, workspaceId string, body RestoreTimeEntriesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRestoreTimeEntriesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewRestoreTimeEntriesRequestWithBody generates requests for RestoreTimeEntries with any type of body +func NewRestoreTimeEntriesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/restore", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateForManyRequest calls the generic CreateForMany builder with application/json body +func NewCreateForManyRequest(server string, workspaceId string, body CreateForManyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateForManyRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreateForManyRequestWithBody generates requests for CreateForMany with any type of body +func NewCreateForManyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/time-entries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateForOthersRequest calls the generic CreateForOthers builder with application/json body +func NewCreateForOthersRequest(server string, workspaceId string, userId string, body CreateForOthersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateForOthersRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCreateForOthersRequestWithBody generates requests for CreateForOthers with any type of body +func NewCreateForOthersRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/user/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewListOfFullRequest generates requests for ListOfFull +func NewListOfFullRequest(server string, workspaceId string, userId string, params *ListOfFullParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/user/%s/full", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Limit != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTimeEntriesRequest generates requests for GetTimeEntries +func NewGetTimeEntriesRequest(server string, workspaceId string, userId string, params *GetTimeEntriesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Description != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Project != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Task != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task", runtime.ParamLocationQuery, *params.Task); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Tags != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ProjectRequired != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project-required", runtime.ParamLocationQuery, *params.ProjectRequired); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.TaskRequired != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task-required", runtime.ParamLocationQuery, *params.TaskRequired); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Hydrated != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.InProgress != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "in-progress", runtime.ParamLocationQuery, *params.InProgress); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.GetWeekBefore != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "get-week-before", runtime.ParamLocationQuery, *params.GetWeekBefore); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAssertTimeEntriesExistInDateRangeRequest generates requests for AssertTimeEntriesExistInDateRange +func NewAssertTimeEntriesExistInDateRangeRequest(server string, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("HEAD", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateFullRequest calls the generic CreateFull builder with application/json body +func NewCreateFullRequest(server string, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateFullRequestWithBody(server, workspaceId, userId, params, "application/json", bodyReader) +} + +// NewCreateFullRequestWithBody generates requests for CreateFull with any type of body +func NewCreateFullRequestWithBody(server string, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s/full", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.AppName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName) + if err != nil { + return nil, err + } + + req.Header.Set("App-Name", headerParam0) + } + + if params.RequestId != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId) + if err != nil { + return nil, err + } + + req.Header.Set("Request-Id", headerParam1) + } + + if params.Signature != nil { + var headerParam2 string + + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature) + if err != nil { + return nil, err + } + + req.Header.Set("Signature", headerParam2) + } + + } + + return req, nil +} + +// NewGetTimeEntriesInRangeRequest generates requests for GetTimeEntriesInRange +func NewGetTimeEntriesInRangeRequest(server string, workspaceId string, userId string, params *GetTimeEntriesInRangeParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s/in-range", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTimeEntriesForTimesheetRequest generates requests for GetTimeEntriesForTimesheet +func NewGetTimeEntriesForTimesheetRequest(server string, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s/timesheet", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.InProgress != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "in-progress", runtime.ParamLocationQuery, *params.InProgress); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPatchRequest calls the generic Patch builder with application/json body +func NewPatchRequest(server string, workspaceId string, id string, body PatchJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewPatchRequestWithBody generates requests for Patch with any type of body +func NewPatchRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdate3Request calls the generic Update3 builder with application/json body +func NewUpdate3Request(server string, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate3RequestWithBody(server, workspaceId, id, params, "application/json", bodyReader) +} + +// NewUpdate3RequestWithBody generates requests for Update3 with any type of body +func NewUpdate3RequestWithBody(server string, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + if params.AppName != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName) + if err != nil { + return nil, err + } + + req.Header.Set("App-Name", headerParam0) + } + + if params.RequestId != nil { + var headerParam1 string + + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId) + if err != nil { + return nil, err + } + + req.Header.Set("Request-Id", headerParam1) + } + + if params.Signature != nil { + var headerParam2 string + + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature) + if err != nil { + return nil, err + } + + req.Header.Set("Signature", headerParam2) + } + + } + + return req, nil +} + +// NewGetTimeEntryAttributesRequest generates requests for GetTimeEntryAttributes +func NewGetTimeEntryAttributesRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/attributes", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateTimeEntryAttributeRequest calls the generic CreateTimeEntryAttribute builder with application/json body +func NewCreateTimeEntryAttributeRequest(server string, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateTimeEntryAttributeRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewCreateTimeEntryAttributeRequestWithBody generates requests for CreateTimeEntryAttribute with any type of body +func NewCreateTimeEntryAttributeRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/attributes", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteTimeEntryAttributeRequest calls the generic DeleteTimeEntryAttribute builder with application/json body +func NewDeleteTimeEntryAttributeRequest(server string, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewDeleteTimeEntryAttributeRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewDeleteTimeEntryAttributeRequestWithBody generates requests for DeleteTimeEntryAttribute with any type of body +func NewDeleteTimeEntryAttributeRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/attributes/delete", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateBillableRequest calls the generic UpdateBillable builder with application/json body +func NewUpdateBillableRequest(server string, workspaceId string, id string, body UpdateBillableJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateBillableRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateBillableRequestWithBody generates requests for UpdateBillable with any type of body +func NewUpdateBillableRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/billable", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateDescriptionRequest calls the generic UpdateDescription builder with application/json body +func NewUpdateDescriptionRequest(server string, workspaceId string, id string, body UpdateDescriptionJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateDescriptionRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateDescriptionRequestWithBody generates requests for UpdateDescription with any type of body +func NewUpdateDescriptionRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/description", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateEndRequest calls the generic UpdateEnd builder with application/json body +func NewUpdateEndRequest(server string, workspaceId string, id string, body UpdateEndJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateEndRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateEndRequestWithBody generates requests for UpdateEnd with any type of body +func NewUpdateEndRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/end", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateFullRequest calls the generic UpdateFull builder with application/json body +func NewUpdateFullRequest(server string, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateFullRequestWithBody(server, workspaceId, id, params, "application/json", bodyReader) +} + +// NewUpdateFullRequestWithBody generates requests for UpdateFull with any type of body +func NewUpdateFullRequestWithBody(server string, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/full", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.StopTimer != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stop-timer", runtime.ParamLocationQuery, *params.StopTimer); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body +func NewUpdateProjectRequest(server string, workspaceId string, id string, body UpdateProjectJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateProjectRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body +func NewUpdateProjectRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/project", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveProjectRequest generates requests for RemoveProject +func NewRemoveProjectRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/project/remove", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateProjectAndTaskRequest calls the generic UpdateProjectAndTask builder with application/json body +func NewUpdateProjectAndTaskRequest(server string, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateProjectAndTaskRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateProjectAndTaskRequestWithBody generates requests for UpdateProjectAndTask with any type of body +func NewUpdateProjectAndTaskRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/projectAndTask", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateAndSplitRequest calls the generic UpdateAndSplit builder with application/json body +func NewUpdateAndSplitRequest(server string, workspaceId string, id string, body UpdateAndSplitJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateAndSplitRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateAndSplitRequestWithBody generates requests for UpdateAndSplit with any type of body +func NewUpdateAndSplitRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/split", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewSplitTimeEntryRequest calls the generic SplitTimeEntry builder with application/json body +func NewSplitTimeEntryRequest(server string, workspaceId string, id string, body SplitTimeEntryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSplitTimeEntryRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewSplitTimeEntryRequestWithBody generates requests for SplitTimeEntry with any type of body +func NewSplitTimeEntryRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/split", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateStartRequest calls the generic UpdateStart builder with application/json body +func NewUpdateStartRequest(server string, workspaceId string, id string, body UpdateStartJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateStartRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateStartRequestWithBody generates requests for UpdateStart with any type of body +func NewUpdateStartRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/start", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateTagsRequest calls the generic UpdateTags builder with application/json body +func NewUpdateTagsRequest(server string, workspaceId string, id string, body UpdateTagsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTagsRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateTagsRequestWithBody generates requests for UpdateTags with any type of body +func NewUpdateTagsRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/tags", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveTaskRequest generates requests for RemoveTask +func NewRemoveTaskRequest(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/task/remove", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateTimeIntervalRequest calls the generic UpdateTimeInterval builder with application/json body +func NewUpdateTimeIntervalRequest(server string, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateTimeIntervalRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateTimeIntervalRequestWithBody generates requests for UpdateTimeInterval with any type of body +func NewUpdateTimeIntervalRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/timeInterval", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpdateUserRequest calls the generic UpdateUser builder with application/json body +func NewUpdateUserRequest(server string, workspaceId string, id string, body UpdateUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserRequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body +func NewUpdateUserRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/user", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete5Request generates requests for Delete5 +func NewDelete5Request(server string, workspaceId string, timeEntryId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateCustomFieldRequest calls the generic UpdateCustomField builder with application/json body +func NewUpdateCustomFieldRequest(server string, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateCustomFieldRequestWithBody(server, workspaceId, timeEntryId, "application/json", bodyReader) +} + +// NewUpdateCustomFieldRequestWithBody generates requests for UpdateCustomField with any type of body +func NewUpdateCustomFieldRequestWithBody(server string, workspaceId string, timeEntryId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/custom-field", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewPenalizeCurrentTimerAndStartNewTimeEntryRequest calls the generic PenalizeCurrentTimerAndStartNewTimeEntry builder with application/json body +func NewPenalizeCurrentTimerAndStartNewTimeEntryRequest(server string, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody(server, workspaceId, timeEntryId, "application/json", bodyReader) +} + +// NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody generates requests for PenalizeCurrentTimerAndStartNewTimeEntry with any type of body +func NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody(server string, workspaceId string, timeEntryId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/penalty", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewTransferWorkspaceDeprecatedFlowRequest calls the generic TransferWorkspaceDeprecatedFlow builder with application/json body +func NewTransferWorkspaceDeprecatedFlowRequest(server string, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewTransferWorkspaceDeprecatedFlowRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewTransferWorkspaceDeprecatedFlowRequestWithBody generates requests for TransferWorkspaceDeprecatedFlow with any type of body +func NewTransferWorkspaceDeprecatedFlowRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/transfer", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewTransferWorkspaceRequest calls the generic TransferWorkspace builder with application/json body +func NewTransferWorkspaceRequest(server string, workspaceId string, body TransferWorkspaceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewTransferWorkspaceRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewTransferWorkspaceRequestWithBody generates requests for TransferWorkspace with any type of body +func NewTransferWorkspaceRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/transfers", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTrialActivationDataRequest generates requests for GetTrialActivationData +func NewGetTrialActivationDataRequest(server string, workspaceId string, params *GetTrialActivationDataParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/trial-activation-data", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TestReverseFreeTrialPhase != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "testReverseFreeTrialPhase", runtime.ParamLocationQuery, *params.TestReverseFreeTrialPhase); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.TestActivateTrial != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "testActivateTrial", runtime.ParamLocationQuery, *params.TestActivateTrial); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemoveMemberRequest generates requests for RemoveMember +func NewRemoveMemberRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/user/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCopyTimeEntryCalendarDragRequest calls the generic CopyTimeEntryCalendarDrag builder with application/json body +func NewCopyTimeEntryCalendarDragRequest(server string, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCopyTimeEntryCalendarDragRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCopyTimeEntryCalendarDragRequestWithBody generates requests for CopyTimeEntryCalendarDrag with any type of body +func NewCopyTimeEntryCalendarDragRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/user/%s/time-entries/calendar-drag", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDuplicateTimeEntryRequest generates requests for DuplicateTimeEntry +func NewDuplicateTimeEntryRequest(server string, workspaceId string, userId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/user/%s/time-entries/%s/duplicate", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserGroups1Request generates requests for GetUserGroups1 +func NewGetUserGroups1Request(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate5Request calls the generic Create5 builder with application/json body +func NewCreate5Request(server string, workspaceId string, body Create5JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate5RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate5RequestWithBody generates requests for Create5 with any type of body +func NewCreate5RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUserGroups2Request generates requests for GetUserGroups2 +func NewGetUserGroups2Request(server string, workspaceId string, params *GetUserGroups2Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/full", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.ProjectId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, *params.ProjectId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortColumn != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortOrder != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SearchGroups != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search-groups", runtime.ParamLocationQuery, *params.SearchGroups); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserGroupNamesRequest calls the generic GetUserGroupNames builder with application/json body +func NewGetUserGroupNamesRequest(server string, workspaceId string, body GetUserGroupNamesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserGroupNamesRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUserGroupNamesRequestWithBody generates requests for GetUserGroupNames with any type of body +func NewGetUserGroupNamesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/names", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersForReportFilter1Request generates requests for GetUsersForReportFilter1 +func NewGetUsersForReportFilter1Request(server string, workspaceId string, params *GetUsersForReportFilter1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SearchValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ForceFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force-filter", runtime.ParamLocationQuery, *params.ForceFilter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.IgnoreFilter != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignore-filter", runtime.ParamLocationQuery, *params.IgnoreFilter); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ExcludedIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.ForApproval != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "forApproval", runtime.ParamLocationQuery, *params.ForApproval); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserGroupForReportFilterPostRequest calls the generic GetUserGroupForReportFilterPost builder with application/json body +func NewGetUserGroupForReportFilterPostRequest(server string, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserGroupForReportFilterPostRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUserGroupForReportFilterPostRequestWithBody generates requests for GetUserGroupForReportFilterPost with any type of body +func NewGetUserGroupForReportFilterPostRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersForAttendanceReportFilterRequest calls the generic GetUsersForAttendanceReportFilter builder with application/json body +func NewGetUsersForAttendanceReportFilterRequest(server string, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUsersForAttendanceReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUsersForAttendanceReportFilterRequestWithBody generates requests for GetUsersForAttendanceReportFilter with any type of body +func NewGetUsersForAttendanceReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters/attendance-report", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUserGroupIdsByNameRequest generates requests for GetUserGroupIdsByName +func NewGetUserGroupIdsByNameRequest(server string, workspaceId string, params *GetUserGroupIdsByNameParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters/ids", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Name != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserGroupsRequest calls the generic GetUserGroups builder with application/json body +func NewGetUserGroupsRequest(server string, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUserGroupsRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewGetUserGroupsRequestWithBody generates requests for GetUserGroups with any type of body +func NewGetUserGroupsRequestWithBody(server string, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/userGroupIds", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SearchValue != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewRemoveUserRequest calls the generic RemoveUser builder with application/json body +func NewRemoveUserRequest(server string, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewRemoveUserRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewRemoveUserRequestWithBody generates requests for RemoveUser with any type of body +func NewRemoveUserRequestWithBody(server string, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.UserGroupIds != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userGroupIds", runtime.ParamLocationQuery, *params.UserGroupIds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.UserId != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("DELETE", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewAddUsersToUserGroupsFilterRequest calls the generic AddUsersToUserGroupsFilter builder with application/json body +func NewAddUsersToUserGroupsFilterRequest(server string, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddUsersToUserGroupsFilterRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewAddUsersToUserGroupsFilterRequestWithBody generates requests for AddUsersToUserGroupsFilter with any type of body +func NewAddUsersToUserGroupsFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete4Request generates requests for Delete4 +func NewDelete4Request(server string, workspaceId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate2Request calls the generic Update2 builder with application/json body +func NewUpdate2Request(server string, workspaceId string, id string, body Update2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate2RequestWithBody(server, workspaceId, id, "application/json", bodyReader) +} + +// NewUpdate2RequestWithBody generates requests for Update2 with any type of body +func NewUpdate2RequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userGroups/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsersRequest calls the generic GetUsers builder with application/json body +func NewGetUsersRequest(server string, workspaceId string, body GetUsersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetUsersRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewGetUsersRequestWithBody generates requests for GetUsers with any type of body +func NewGetUsersRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/userIds", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUsers1Request generates requests for GetUsers1 +func NewGetUsers1Request(server string, workspaceId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewAddUsersRequest calls the generic AddUsers builder with application/json body +func NewAddUsersRequest(server string, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewAddUsersRequestWithBody(server, workspaceId, params, "application/json", bodyReader) +} + +// NewAddUsersRequestWithBody generates requests for AddUsers with any type of body +func NewAddUsersRequestWithBody(server string, workspaceId string, params *AddUsersParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.SendEmail != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sendEmail", runtime.ParamLocationQuery, *params.SendEmail); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetExpensesForUsersRequest generates requests for GetExpensesForUsers +func NewGetExpensesForUsersRequest(server string, workspaceId string, params *GetExpensesForUsersParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/expenses", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewSetMembershipsRequest calls the generic SetMemberships builder with application/json body +func NewSetMembershipsRequest(server string, workspaceId string, body SetMembershipsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetMembershipsRequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewSetMembershipsRequestWithBody generates requests for SetMemberships with any type of body +func NewSetMembershipsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/memberships", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewResendInviteRequest generates requests for ResendInvite +func NewResendInviteRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateDeprecatedRequest calls the generic CreateDeprecated builder with application/json body +func NewCreateDeprecatedRequest(server string, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateDeprecatedRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCreateDeprecatedRequestWithBody generates requests for CreateDeprecated with any type of body +func NewCreateDeprecatedRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetRequestsByUserRequest generates requests for GetRequestsByUser +func NewGetRequestsByUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/all-pending", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetApprovedTotalsRequest calls the generic GetApprovedTotals builder with application/json body +func NewGetApprovedTotalsRequest(server string, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetApprovedTotalsRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewGetApprovedTotalsRequestWithBody generates requests for GetApprovedTotals with any type of body +func NewGetApprovedTotalsRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/approved-totals", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateForOtherDeprecatedRequest calls the generic CreateForOtherDeprecated builder with application/json body +func NewCreateForOtherDeprecatedRequest(server string, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateForOtherDeprecatedRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCreateForOtherDeprecatedRequestWithBody generates requests for CreateForOtherDeprecated with any type of body +func NewCreateForOtherDeprecatedRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/for-other", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetPreviewRequest calls the generic GetPreview builder with application/json body +func NewGetPreviewRequest(server string, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewGetPreviewRequestWithBody(server, workspaceId, userId, params, "application/json", bodyReader) +} + +// NewGetPreviewRequestWithBody generates requests for GetPreview with any type of body +func NewGetPreviewRequestWithBody(server string, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/preview", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Unsubmitted != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unsubmitted", runtime.ParamLocationQuery, *params.Unsubmitted); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTimeEntryStatusRequest generates requests for GetTimeEntryStatus +func NewGetTimeEntryStatusRequest(server string, workspaceId string, userId string, params *GetTimeEntryStatusParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetTimeEntryWeekStatusRequest generates requests for GetTimeEntryWeekStatus +func NewGetTimeEntryWeekStatusRequest(server string, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/week-status", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Start != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWeeklyRequestsByUserRequest generates requests for GetWeeklyRequestsByUser +func NewGetWeeklyRequestsByUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/weekly-pending", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWithdrawAllOfUserRequest generates requests for WithdrawAllOfUser +func NewWithdrawAllOfUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/withdraw-all", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWithdrawAllOfWorkspaceDeprecatedRequest generates requests for WithdrawAllOfWorkspaceDeprecated +func NewWithdrawAllOfWorkspaceDeprecatedRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/withdraw-on-workspace", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewWithdrawWeeklyOfUserRequest generates requests for WithdrawWeeklyOfUser +func NewWithdrawWeeklyOfUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/withdraw-weekly", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewSetCostRateForUser1Request calls the generic SetCostRateForUser1 builder with application/json body +func NewSetCostRateForUser1Request(server string, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetCostRateForUser1RequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewSetCostRateForUser1RequestWithBody generates requests for SetCostRateForUser1 with any type of body +func NewSetCostRateForUser1RequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/cost-rate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewUpsertUserCustomFieldValueRequest calls the generic UpsertUserCustomFieldValue builder with application/json body +func NewUpsertUserCustomFieldValueRequest(server string, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpsertUserCustomFieldValueRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpsertUserCustomFieldValueRequestWithBody generates requests for UpsertUserCustomFieldValue with any type of body +func NewUpsertUserCustomFieldValueRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/custom-field-values", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetFavoriteEntriesRequest generates requests for GetFavoriteEntries +func NewGetFavoriteEntriesRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreateFavoriteTimeEntryRequest calls the generic CreateFavoriteTimeEntry builder with application/json body +func NewCreateFavoriteTimeEntryRequest(server string, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateFavoriteTimeEntryRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCreateFavoriteTimeEntryRequestWithBody generates requests for CreateFavoriteTimeEntry with any type of body +func NewCreateFavoriteTimeEntryRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewReorderInvoiceItemRequest calls the generic ReorderInvoiceItem builder with application/json body +func NewReorderInvoiceItemRequest(server string, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewReorderInvoiceItemRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewReorderInvoiceItemRequestWithBody generates requests for ReorderInvoiceItem with any type of body +func NewReorderInvoiceItemRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries/reorder", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDelete3Request generates requests for Delete3 +func NewDelete3Request(server string, workspaceId string, userId string, id string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdate1Request calls the generic Update1 builder with application/json body +func NewUpdate1Request(server string, workspaceId string, userId string, id string, body Update1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdate1RequestWithBody(server, workspaceId, userId, id, "application/json", bodyReader) +} + +// NewUpdate1RequestWithBody generates requests for Update1 with any type of body +func NewUpdate1RequestWithBody(server string, workspaceId string, userId string, id string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetHolidays1Request generates requests for GetHolidays1 +func NewGetHolidays1Request(server string, workspaceId string, userId string, params *GetHolidays1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/holidays", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewSetHourlyRateForUser1Request calls the generic SetHourlyRateForUser1 builder with application/json body +func NewSetHourlyRateForUser1Request(server string, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewSetHourlyRateForUser1RequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewSetHourlyRateForUser1RequestWithBody generates requests for SetHourlyRateForUser1 with any type of body +func NewSetHourlyRateForUser1RequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/hourly-rate", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetPermissionsToUserRequest generates requests for GetPermissionsToUser +func NewGetPermissionsToUserRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/permissions", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewRemoveFavoriteProjectRequest generates requests for RemoveFavoriteProject +func NewRemoveFavoriteProjectRequest(server string, workspaceId string, userId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/favorites/projects/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDelete2Request generates requests for Delete2 +func NewDelete2Request(server string, workspaceId string, userId string, projectFavoritesId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectFavoritesId", runtime.ParamLocationPath, projectFavoritesId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/favorites/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate4Request generates requests for Create4 +func NewCreate4Request(server string, workspaceId string, userId string, projectId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/favorites/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewDelete1Request generates requests for Delete1 +func NewDelete1Request(server string, workspaceId string, userId string, projectId string, taskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/%s/tasks/%s/favorites", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate3Request generates requests for Create3 +func NewCreate3Request(server string, workspaceId string, userId string, projectId string, taskId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId) + if err != nil { + return nil, err + } + + var pathParam3 string + + pathParam3, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/%s/tasks/%s/favorites", pathParam0, pathParam1, pathParam2, pathParam3) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewReSubmitRequest calls the generic ReSubmit builder with application/json body +func NewReSubmitRequest(server string, workspaceId string, userId string, body ReSubmitJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewReSubmitRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewReSubmitRequestWithBody generates requests for ReSubmit with any type of body +func NewReSubmitRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/resubmit-entries-for-approval", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetUserRolesRequest generates requests for GetUserRoles +func NewGetUserRolesRequest(server string, workspaceId string, userId string, params *GetUserRolesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/roles", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PageSize != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateUserRolesRequest calls the generic UpdateUserRoles builder with application/json body +func NewUpdateUserRolesRequest(server string, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserRolesRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewUpdateUserRolesRequestWithBody generates requests for UpdateUserRoles with any type of body +func NewUpdateUserRolesRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/roles", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreate2Request calls the generic Create2 builder with application/json body +func NewCreate2Request(server string, workspaceId string, userId string, body Create2JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate2RequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCreate2RequestWithBody generates requests for Create2 with any type of body +func NewCreate2RequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/submit-approval-request", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewCreateForOtherRequest calls the generic CreateForOther builder with application/json body +func NewCreateForOtherRequest(server string, workspaceId string, userId string, body CreateForOtherJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateForOtherRequestWithBody(server, workspaceId, userId, "application/json", bodyReader) +} + +// NewCreateForOtherRequestWithBody generates requests for CreateForOther with any type of body +func NewCreateForOtherRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/submit-approval-request/for-other", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWorkCapacityRequest generates requests for GetWorkCapacity +func NewGetWorkCapacityRequest(server string, workspaceId string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/users/%s/work-capacity", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWebhooksRequest generates requests for GetWebhooks +func NewGetWebhooksRequest(server string, workspaceId string, params *GetWebhooksParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Type != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewCreate1Request calls the generic Create1 builder with application/json body +func NewCreate1Request(server string, workspaceId string, body Create1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreate1RequestWithBody(server, workspaceId, "application/json", bodyReader) +} + +// NewCreate1RequestWithBody generates requests for Create1 with any type of body +func NewCreate1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteRequest generates requests for Delete +func NewDeleteRequest(server string, workspaceId string, webhookId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetWebhookRequest generates requests for GetWebhook +func NewGetWebhookRequest(server string, workspaceId string, webhookId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewUpdateRequest calls the generic Update builder with application/json body +func NewUpdateRequest(server string, workspaceId string, webhookId string, body UpdateJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateRequestWithBody(server, workspaceId, webhookId, "application/json", bodyReader) +} + +// NewUpdateRequestWithBody generates requests for Update with any type of body +func NewUpdateRequestWithBody(server string, workspaceId string, webhookId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetLogsForWebhook1Request generates requests for GetLogsForWebhook1 +func NewGetLogsForWebhook1Request(server string, workspaceId string, webhookId string, params *GetLogsForWebhook1Params) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/logs", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Size != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size", runtime.ParamLocationQuery, *params.Size); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.SortByNewest != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortByNewest", runtime.ParamLocationQuery, *params.SortByNewest); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.From != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from", runtime.ParamLocationQuery, *params.From); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.To != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetLogCountRequest generates requests for GetLogCount +func NewGetLogCountRequest(server string, workspaceId string, webhookId string, params *GetLogCountParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/logs/count", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Status != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewTriggerResendEventForWebhookRequest generates requests for TriggerResendEventForWebhook +func NewTriggerResendEventForWebhookRequest(server string, workspaceId string, webhookId string, webhookLogId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "webhookLogId", runtime.ParamLocationPath, webhookLogId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/resend/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewTriggerTestEventForWebhookRequest generates requests for TriggerTestEventForWebhook +func NewTriggerTestEventForWebhookRequest(server string, workspaceId string, webhookId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/test", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGenerateNewTokenRequest generates requests for GenerateNewToken +func NewGenerateNewTokenRequest(server string, workspaceId string, webhookId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/token", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err + } + } + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } + } + return nil +} + +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface +} + +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) + if err != nil { + return nil, err + } + return &ClientWithResponses{client}, nil +} + +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil + } +} + +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // GetInitialDataWithResponse request + GetInitialDataWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*GetInitialDataResponse, error) + + // DownloadReportWithBodyWithResponse request with any body + DownloadReportWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error) + + DownloadReportWithResponse(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error) + + // ResetPinWithResponse request + ResetPinWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*ResetPinResponse, error) + + // ValidatePinWithBodyWithResponse request with any body + ValidatePinWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error) + + ValidatePinWithResponse(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error) + + // UpdateSmtpConfigurationWithBodyWithResponse request with any body + UpdateSmtpConfigurationWithBodyWithResponse(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error) + + UpdateSmtpConfigurationWithResponse(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error) + + // DisableAccessToEntitiesInTransferWithBodyWithResponse request with any body + DisableAccessToEntitiesInTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error) + + DisableAccessToEntitiesInTransferWithResponse(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error) + + // EnableAccessToEntitiesInTransferWithResponse request + EnableAccessToEntitiesInTransferWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*EnableAccessToEntitiesInTransferResponse, error) + + // UsersExistWithBodyWithResponse request with any body + UsersExistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersExistResponse, error) + + UsersExistWithResponse(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersExistResponse, error) + + // HandleCleanupOnSourceRegionWithResponse request + HandleCleanupOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleCleanupOnSourceRegionResponse, error) + + // HandleTransferCompletedOnSourceRegionWithResponse request + HandleTransferCompletedOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleTransferCompletedOnSourceRegionResponse, error) + + // HandleTransferCompletedFailureWithBodyWithResponse request with any body + HandleTransferCompletedFailureWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error) + + HandleTransferCompletedFailureWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error) + + // HandleTransferCompletedSuccessWithBodyWithResponse request with any body + HandleTransferCompletedSuccessWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error) + + HandleTransferCompletedSuccessWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error) + + // GetAllUsersWithResponse request + GetAllUsersWithResponse(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*GetAllUsersResponse, error) + + // GetUserInfoWithBodyWithResponse request with any body + GetUserInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error) + + GetUserInfoWithResponse(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error) + + // GetUserMembershipsAndInvitesWithBodyWithResponse request with any body + GetUserMembershipsAndInvitesWithBodyWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error) + + GetUserMembershipsAndInvitesWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error) + + // CheckForNewsletterSubscriptionWithResponse request + CheckForNewsletterSubscriptionWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*CheckForNewsletterSubscriptionResponse, error) + + // AddNotificationsWithBodyWithResponse request with any body + AddNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNotificationsResponse, error) + + // GetNewsWithResponse request + GetNewsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNewsResponse, error) + + // DeleteNewsWithResponse request + DeleteNewsWithResponse(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*DeleteNewsResponse, error) + + // UpdateNewsWithBodyWithResponse request with any body + UpdateNewsWithBodyWithResponse(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNewsResponse, error) + + // SearchAllUsersWithResponse request + SearchAllUsersWithResponse(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*SearchAllUsersResponse, error) + + // NumberOfUsersRegisteredWithResponse request + NumberOfUsersRegisteredWithResponse(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*NumberOfUsersRegisteredResponse, error) + + // GetUsersOnWorkspaceWithResponse request + GetUsersOnWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOnWorkspaceResponse, error) + + // BulkEditUsersWithBodyWithResponse request with any body + BulkEditUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error) + + BulkEditUsersWithResponse(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error) + + // GetUsersOfWorkspace5WithResponse request + GetUsersOfWorkspace5WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace5Response, error) + + // GetInfoWithBodyWithResponse request with any body + GetInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) + + GetInfoWithResponse(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) + + // GetMembersInfoWithResponse request + GetMembersInfoWithResponse(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*GetMembersInfoResponse, error) + + // GetUserNamesWithBodyWithResponse request with any body + GetUserNamesWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error) + + GetUserNamesWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error) + + // FindPoliciesToBeApprovedByUserWithResponse request + FindPoliciesToBeApprovedByUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*FindPoliciesToBeApprovedByUserResponse, error) + + // GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse request + GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAndUsersFromUserGroupsAssignedToProjectResponse, error) + + // GetUsersForProjectMembersFilterWithBodyWithResponse request with any body + GetUsersForProjectMembersFilterWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error) + + GetUsersForProjectMembersFilterWithResponse(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error) + + // GetUsersForAttendanceReportFilter1WithBodyWithResponse request with any body + GetUsersForAttendanceReportFilter1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error) + + GetUsersForAttendanceReportFilter1WithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error) + + // GetUsersOfWorkspace4WithResponse request + GetUsersOfWorkspace4WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace4Response, error) + + // GetUsersForReportFilterOldWithResponse request + GetUsersForReportFilterOldWithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterOldResponse, error) + + // GetUsersForReportFilterWithBodyWithResponse request with any body + GetUsersForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error) + + GetUsersForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error) + + // GetUsersOfUserGroupWithResponse request + GetUsersOfUserGroupWithResponse(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*GetUsersOfUserGroupResponse, error) + + // GetUsersOfWorkspace3WithResponse request + GetUsersOfWorkspace3WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace3Response, error) + + // GetUsersOfWorkspace2WithResponse request + GetUsersOfWorkspace2WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace2Response, error) + + // GetUserWithResponse request + GetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) + + // UpdateTimeTrackingSettings1WithBodyWithResponse request with any body + UpdateTimeTrackingSettings1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error) + + UpdateTimeTrackingSettings1WithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error) + + // UpdateDashboardSelectionWithBodyWithResponse request with any body + UpdateDashboardSelectionWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error) + + UpdateDashboardSelectionWithResponse(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error) + + // SetDefaultWorkspaceWithResponse request + SetDefaultWorkspaceWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*SetDefaultWorkspaceResponse, error) + + // DeleteUserWithBodyWithResponse request with any body + DeleteUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) + + DeleteUserWithResponse(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) + + // ChangeEmailWithBodyWithResponse request with any body + ChangeEmailWithBodyWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error) + + ChangeEmailWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error) + + // HasPendingEmailChangeWithResponse request + HasPendingEmailChangeWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*HasPendingEmailChangeResponse, error) + + // UpdateLangWithBodyWithResponse request with any body + UpdateLangWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error) + + UpdateLangWithResponse(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error) + + // MarkAsRead1WithBodyWithResponse request with any body + MarkAsRead1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error) + + MarkAsRead1WithResponse(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error) + + // MarkAsReadWithBodyWithResponse request with any body + MarkAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error) + + MarkAsReadWithResponse(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error) + + // ChangeNameAdminWithBodyWithResponse request with any body + ChangeNameAdminWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error) + + ChangeNameAdminWithResponse(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error) + + // GetNewsForUserWithResponse request + GetNewsForUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetNewsForUserResponse, error) + + // ReadNewsWithBodyWithResponse request with any body + ReadNewsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error) + + ReadNewsWithResponse(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error) + + // GetNotificationsWithResponse request + GetNotificationsWithResponse(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*GetNotificationsResponse, error) + + // UpdatePictureWithBodyWithResponse request with any body + UpdatePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error) + + UpdatePictureWithResponse(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error) + + // UpdateNameAndProfilePictureWithBodyWithResponse request with any body + UpdateNameAndProfilePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error) + + UpdateNameAndProfilePictureWithResponse(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error) + + // UpdateSettingsWithBodyWithResponse request with any body + UpdateSettingsWithBodyWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) + + UpdateSettingsWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) + + // UpdateSummaryReportSettingsWithBodyWithResponse request with any body + UpdateSummaryReportSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error) + + UpdateSummaryReportSettingsWithResponse(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error) + + // UpdateTimeTrackingSettingsWithBodyWithResponse request with any body + UpdateTimeTrackingSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error) + + UpdateTimeTrackingSettingsWithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error) + + // UpdateTimezoneWithBodyWithResponse request with any body + UpdateTimezoneWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error) + + UpdateTimezoneWithResponse(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error) + + // GetVerificationCampaignNotificationsWithResponse request + GetVerificationCampaignNotificationsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetVerificationCampaignNotificationsResponse, error) + + // MarkNotificationsAsReadWithBodyWithResponse request with any body + MarkNotificationsAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error) + + MarkNotificationsAsReadWithResponse(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error) + + // GetWorkCapacityForUserWithResponse request + GetWorkCapacityForUserWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityForUserResponse, error) + + // GetUsersWorkingDaysWithResponse request + GetUsersWorkingDaysWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsersWorkingDaysResponse, error) + + // UploadImageWithBodyWithResponse request with any body + UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) + + // GetAllUnfinishedWalkthroughTypesWithResponse request + GetAllUnfinishedWalkthroughTypesWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetAllUnfinishedWalkthroughTypesResponse, error) + + // FinishWalkthroughWithBodyWithResponse request with any body + FinishWalkthroughWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error) + + FinishWalkthroughWithResponse(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error) + + // GetOwnerEmailByWorkspaceIdWithResponse request + GetOwnerEmailByWorkspaceIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOwnerEmailByWorkspaceIdResponse, error) + + // GetWorkspacesOfUserWithResponse request + GetWorkspacesOfUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspacesOfUserResponse, error) + + // CreateWithBodyWithResponse request with any body + CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error) + + CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error) + + // GetWorkspaceInfoWithResponse request + GetWorkspaceInfoWithResponse(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*GetWorkspaceInfoResponse, error) + + // InsertLegacyPlanNotificationsWithBodyWithResponse request with any body + InsertLegacyPlanNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error) + + InsertLegacyPlanNotificationsWithResponse(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error) + + // GetPermissionsToUserForWorkspacesWithBodyWithResponse request with any body + GetPermissionsToUserForWorkspacesWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error) + + GetPermissionsToUserForWorkspacesWithResponse(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error) + + // LeaveWorkspaceWithResponse request + LeaveWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*LeaveWorkspaceResponse, error) + + // GetWorkspaceByIdWithResponse request + GetWorkspaceByIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceByIdResponse, error) + + // UpdateWorkspaceWithBodyWithResponse request with any body + UpdateWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error) + + UpdateWorkspaceWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error) + + // GetABTestingWithResponse request + GetABTestingWithResponse(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*GetABTestingResponse, error) + + // GetActiveMembersWithResponse request + GetActiveMembersWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetActiveMembersResponse, error) + + // UninstallWithBodyWithResponse request with any body + UninstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UninstallResponse, error) + + UninstallWithResponse(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*UninstallResponse, error) + + // GetInstalledAddonsWithResponse request + GetInstalledAddonsWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsResponse, error) + + // InstallWithBodyWithResponse request with any body + InstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallResponse, error) + + InstallWithResponse(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallResponse, error) + + // GetInstalledAddonsIdNamePairWithResponse request + GetInstalledAddonsIdNamePairWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsIdNamePairResponse, error) + + // GetInstalledAddonsByKeysWithBodyWithResponse request with any body + GetInstalledAddonsByKeysWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error) + + GetInstalledAddonsByKeysWithResponse(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error) + + // Uninstall1WithResponse request + Uninstall1WithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*Uninstall1Response, error) + + // GetAddonByIdWithResponse request + GetAddonByIdWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonByIdResponse, error) + + // UpdateSettings1WithBodyWithResponse request with any body + UpdateSettings1WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error) + + UpdateSettings1WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error) + + // UpdateStatus3WithBodyWithResponse request with any body + UpdateStatus3WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error) + + UpdateStatus3WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error) + + // GetAddonUserJWTWithResponse request + GetAddonUserJWTWithResponse(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*GetAddonUserJWTResponse, error) + + // GetAddonWebhooksWithResponse request + GetAddonWebhooksWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonWebhooksResponse, error) + + // RemoveUninstalledAddonWithResponse request + RemoveUninstalledAddonWithResponse(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*RemoveUninstalledAddonResponse, error) + + // ListOfWorkspace1WithResponse request + ListOfWorkspace1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspace1Response, error) + + // Create20WithBodyWithResponse request with any body + Create20WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create20Response, error) + + Create20WithResponse(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*Create20Response, error) + + // Delete18WithResponse request + Delete18WithResponse(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*Delete18Response, error) + + // Update11WithBodyWithResponse request with any body + Update11WithBodyWithResponse(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update11Response, error) + + Update11WithResponse(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*Update11Response, error) + + // GetAllowedUpdatesWithResponse request + GetAllowedUpdatesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllowedUpdatesResponse, error) + + // ApproveRequestsWithBodyWithResponse request with any body + ApproveRequestsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error) + + ApproveRequestsWithResponse(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error) + + // CountWithBodyWithResponse request with any body + CountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CountResponse, error) + + CountWithResponse(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*CountResponse, error) + + // HasPendingWithResponse request + HasPendingWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasPendingResponse, error) + + // RemindManagersToApproveWithBodyWithResponse request with any body + RemindManagersToApproveWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error) + + RemindManagersToApproveWithResponse(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error) + + // RemindUsersToSubmitWithBodyWithResponse request with any body + RemindUsersToSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error) + + RemindUsersToSubmitWithResponse(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error) + + // GetApprovalGroupsWithBodyWithResponse request with any body + GetApprovalGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error) + + GetApprovalGroupsWithResponse(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error) + + // GetUnsubmittedSummariesWithBodyWithResponse request with any body + GetUnsubmittedSummariesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error) + + GetUnsubmittedSummariesWithResponse(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error) + + // WithdrawAllOfWorkspaceWithResponse request + WithdrawAllOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceResponse, error) + + // GetRequestsByWorkspaceWithResponse request + GetRequestsByWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetRequestsByWorkspaceResponse, error) + + // GetApprovalRequestWithResponse request + GetApprovalRequestWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalRequestResponse, error) + + // UpdateStatus2WithBodyWithResponse request with any body + UpdateStatus2WithBodyWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error) + + UpdateStatus2WithResponse(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error) + + // GetApprovalDashboardWithResponse request + GetApprovalDashboardWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDashboardResponse, error) + + // GetApprovalDetailsWithResponse request + GetApprovalDetailsWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDetailsResponse, error) + + // FetchCustomAttributesWithBodyWithResponse request with any body + FetchCustomAttributesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error) + + FetchCustomAttributesWithResponse(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error) + + // CheckWorkspaceTransferPossibilityWithResponse request + CheckWorkspaceTransferPossibilityWithResponse(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*CheckWorkspaceTransferPossibilityResponse, error) + + // DeleteMany3WithBodyWithResponse request with any body + DeleteMany3WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error) + + DeleteMany3WithResponse(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error) + + // GetClients1WithResponse request + GetClients1WithResponse(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*GetClients1Response, error) + + // UpdateMany2WithBodyWithResponse request with any body + UpdateMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error) + + UpdateMany2WithResponse(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error) + + // Create19WithBodyWithResponse request with any body + Create19WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create19Response, error) + + Create19WithResponse(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*Create19Response, error) + + // GetArchivePermissionsWithBodyWithResponse request with any body + GetArchivePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error) + + GetArchivePermissionsWithResponse(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error) + + // HaveRelatedTasksWithBodyWithResponse request with any body + HaveRelatedTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error) + + HaveRelatedTasksWithResponse(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error) + + // GetClientsOfIdsWithBodyWithResponse request with any body + GetClientsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error) + + GetClientsOfIdsWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error) + + // GetClientsForInvoiceFilter1WithResponse request + GetClientsForInvoiceFilter1WithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilter1Response, error) + + // GetClients2WithResponse request + GetClients2WithResponse(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*GetClients2Response, error) + + // GetClientsForReportFilterWithResponse request + GetClientsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForReportFilterResponse, error) + + // GetClientIdsForReportFilterWithResponse request + GetClientIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientIdsForReportFilterResponse, error) + + // GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse request with any body + GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) + + GetTimeOffPoliciesAndHolidaysForClientWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) + + // Delete17WithResponse request + Delete17WithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*Delete17Response, error) + + // GetClientWithResponse request + GetClientWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetClientResponse, error) + + // GetProjectsArchivePermissionsWithResponse request + GetProjectsArchivePermissionsWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetProjectsArchivePermissionsResponse, error) + + // Update10WithBodyWithResponse request with any body + Update10WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update10Response, error) + + Update10WithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*Update10Response, error) + + // SetCostRate2WithBodyWithResponse request with any body + SetCostRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error) + + SetCostRate2WithResponse(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error) + + // GetCouponWithResponse request + GetCouponWithResponse(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*GetCouponResponse, error) + + // GetWorkspaceCurrenciesWithResponse request + GetWorkspaceCurrenciesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceCurrenciesResponse, error) + + // CreateCurrencyWithBodyWithResponse request with any body + CreateCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error) + + CreateCurrencyWithResponse(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error) + + // RemoveCurrencyWithResponse request + RemoveCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*RemoveCurrencyResponse, error) + + // GetCurrencyWithResponse request + GetCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*GetCurrencyResponse, error) + + // UpdateCurrencyCodeWithBodyWithResponse request with any body + UpdateCurrencyCodeWithBodyWithResponse(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error) + + UpdateCurrencyCodeWithResponse(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error) + + // SetCurrencyWithBodyWithResponse request with any body + SetCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error) + + SetCurrencyWithResponse(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error) + + // OfWorkspaceWithResponse request + OfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*OfWorkspaceResponse, error) + + // Create18WithBodyWithResponse request with any body + Create18WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create18Response, error) + + Create18WithResponse(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*Create18Response, error) + + // OfWorkspaceWithRequiredAvailabilityWithResponse request + OfWorkspaceWithRequiredAvailabilityWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*OfWorkspaceWithRequiredAvailabilityResponse, error) + + // Delete16WithResponse request + Delete16WithResponse(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*Delete16Response, error) + + // EditWithBodyWithResponse request with any body + EditWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditResponse, error) + + EditWithResponse(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*EditResponse, error) + + // RemoveDefaultValueOfProjectWithResponse request + RemoveDefaultValueOfProjectWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveDefaultValueOfProjectResponse, error) + + // EditDefaultValuesWithBodyWithResponse request with any body + EditDefaultValuesWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error) + + EditDefaultValuesWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error) + + // GetOfProjectWithResponse request + GetOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*GetOfProjectResponse, error) + + // UpdateCustomLabelsWithBodyWithResponse request with any body + UpdateCustomLabelsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error) + + UpdateCustomLabelsWithResponse(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error) + + // AddEmailWithBodyWithResponse request with any body + AddEmailWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEmailResponse, error) + + AddEmailWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEmailResponse, error) + + // DeleteManyExpensesWithBodyWithResponse request with any body + DeleteManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error) + + DeleteManyExpensesWithResponse(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error) + + // GetExpensesWithResponse request + GetExpensesWithResponse(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*GetExpensesResponse, error) + + // CreateExpenseWithBodyWithResponse request with any body + CreateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExpenseResponse, error) + + // GetCategoriesWithResponse request + GetCategoriesWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*GetCategoriesResponse, error) + + // Create17WithBodyWithResponse request with any body + Create17WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create17Response, error) + + Create17WithResponse(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*Create17Response, error) + + // GetCategoriesByIdsWithResponse request + GetCategoriesByIdsWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*GetCategoriesByIdsResponse, error) + + // DeleteCategoryWithResponse request + DeleteCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*DeleteCategoryResponse, error) + + // UpdateCategoryWithBodyWithResponse request with any body + UpdateCategoryWithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error) + + UpdateCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error) + + // UpdateStatus1WithBodyWithResponse request with any body + UpdateStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error) + + UpdateStatus1WithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error) + + // GetExpensesInDateRangeWithResponse request + GetExpensesInDateRangeWithResponse(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*GetExpensesInDateRangeResponse, error) + + // UpdateInvoicedStatus1WithBodyWithResponse request with any body + UpdateInvoicedStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error) + + UpdateInvoicedStatus1WithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error) + + // RestoreManyExpensesWithBodyWithResponse request with any body + RestoreManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error) + + RestoreManyExpensesWithResponse(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error) + + // DeleteExpenseWithResponse request + DeleteExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*DeleteExpenseResponse, error) + + // GetExpenseWithResponse request + GetExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*GetExpenseResponse, error) + + // UpdateExpenseWithBodyWithResponse request with any body + UpdateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExpenseResponse, error) + + // DownloadFileWithResponse request + DownloadFileWithResponse(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*DownloadFileResponse, error) + + // ImportFileDataWithBodyWithResponse request with any body + ImportFileDataWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error) + + ImportFileDataWithResponse(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error) + + // CheckUsersForImportWithResponse request + CheckUsersForImportWithResponse(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*CheckUsersForImportResponse, error) + + // GetHolidaysWithResponse request + GetHolidaysWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetHolidaysResponse, error) + + // Create16WithBodyWithResponse request with any body + Create16WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create16Response, error) + + Create16WithResponse(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*Create16Response, error) + + // Delete15WithResponse request + Delete15WithResponse(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*Delete15Response, error) + + // Update9WithBodyWithResponse request with any body + Update9WithBodyWithResponse(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update9Response, error) + + Update9WithResponse(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*Update9Response, error) + + // SetHourlyRate2WithBodyWithResponse request with any body + SetHourlyRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error) + + SetHourlyRate2WithResponse(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error) + + // GetInvitedEmailsInfoWithBodyWithResponse request with any body + GetInvitedEmailsInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error) + + GetInvitedEmailsInfoWithResponse(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error) + + // GetInvoiceEmailTemplatesWithResponse request + GetInvoiceEmailTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*GetInvoiceEmailTemplatesResponse, error) + + // UpsertInvoiceEmailTemplateWithBodyWithResponse request with any body + UpsertInvoiceEmailTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error) + + UpsertInvoiceEmailTemplateWithResponse(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error) + + // GetInvoiceEmailDataWithResponse request + GetInvoiceEmailDataWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*GetInvoiceEmailDataResponse, error) + + // SendInvoiceEmailWithBodyWithResponse request with any body + SendInvoiceEmailWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error) + + SendInvoiceEmailWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error) + + // CreateInvoiceWithBodyWithResponse request with any body + CreateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error) + + CreateInvoiceWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error) + + // GetAllCompaniesWithResponse request + GetAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllCompaniesResponse, error) + + // CreateCompanyWithBodyWithResponse request with any body + CreateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error) + + CreateCompanyWithResponse(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error) + + // UpdateCompaniesInWorkspaceWithBodyWithResponse request with any body + UpdateCompaniesInWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error) + + UpdateCompaniesInWorkspaceWithResponse(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error) + + // CountAllCompaniesWithResponse request + CountAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CountAllCompaniesResponse, error) + + // GetClientsForInvoiceFilterWithResponse request + GetClientsForInvoiceFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilterResponse, error) + + // DeleteCompanyWithResponse request + DeleteCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*DeleteCompanyResponse, error) + + // GetCompanyByIdWithResponse request + GetCompanyByIdWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*GetCompanyByIdResponse, error) + + // UpdateCompanyWithBodyWithResponse request with any body + UpdateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error) + + UpdateCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error) + + // GetInvoicesInfoWithBodyWithResponse request with any body + GetInvoicesInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error) + + GetInvoicesInfoWithResponse(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error) + + // GetInvoiceItemTypesWithResponse request + GetInvoiceItemTypesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceItemTypesResponse, error) + + // CreateInvoiceItemTypeWithBodyWithResponse request with any body + CreateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error) + + CreateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error) + + // DeleteInvoiceItemTypeWithResponse request + DeleteInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemTypeResponse, error) + + // UpdateInvoiceItemTypeWithBodyWithResponse request with any body + UpdateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error) + + UpdateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error) + + // GetNextInvoiceNumberWithResponse request + GetNextInvoiceNumberWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetNextInvoiceNumberResponse, error) + + // GetInvoicePermissionsWithResponse request + GetInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoicePermissionsResponse, error) + + // UpdateInvoicePermissionsWithBodyWithResponse request with any body + UpdateInvoicePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error) + + UpdateInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error) + + // CanUserManageInvoicesWithResponse request + CanUserManageInvoicesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CanUserManageInvoicesResponse, error) + + // GetInvoiceSettingsWithResponse request + GetInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceSettingsResponse, error) + + // UpdateInvoiceSettingsWithBodyWithResponse request with any body + UpdateInvoiceSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error) + + UpdateInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error) + + // DeleteInvoiceWithResponse request + DeleteInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error) + + // GetInvoiceWithResponse request + GetInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) + + // UpdateInvoiceWithBodyWithResponse request with any body + UpdateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) + + UpdateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) + + // DuplicateInvoiceWithResponse request + DuplicateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DuplicateInvoiceResponse, error) + + // ExportInvoiceWithResponse request + ExportInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*ExportInvoiceResponse, error) + + // ImportTimeAndExpensesWithBodyWithResponse request with any body + ImportTimeAndExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error) + + ImportTimeAndExpensesWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error) + + // AddInvoiceItemWithResponse request + AddInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*AddInvoiceItemResponse, error) + + // ReorderInvoiceItem1WithBodyWithResponse request with any body + ReorderInvoiceItem1WithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error) + + ReorderInvoiceItem1WithResponse(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error) + + // EditInvoiceItemWithBodyWithResponse request with any body + EditInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error) + + EditInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error) + + // DeleteInvoiceItemsWithResponse request + DeleteInvoiceItemsWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemsResponse, error) + + // GetPaymentsForInvoiceWithResponse request + GetPaymentsForInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*GetPaymentsForInvoiceResponse, error) + + // CreateInvoicePaymentWithBodyWithResponse request with any body + CreateInvoicePaymentWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error) + + CreateInvoicePaymentWithResponse(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error) + + // DeletePaymentByIdWithResponse request + DeletePaymentByIdWithResponse(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*DeletePaymentByIdResponse, error) + + // ChangeInvoiceStatusWithBodyWithResponse request with any body + ChangeInvoiceStatusWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error) + + ChangeInvoiceStatusWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error) + + // AuthorizationCheckWithResponse request + AuthorizationCheckWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AuthorizationCheckResponse, error) + + // IsAvailableWithResponse request + IsAvailableWithResponse(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*IsAvailableResponse, error) + + // IsAvailable1WithResponse request + IsAvailable1WithResponse(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*IsAvailable1Response, error) + + // GeneratePinCodeWithResponse request + GeneratePinCodeWithResponse(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*GeneratePinCodeResponse, error) + + // GeneratePinCodeForUserWithResponse request + GeneratePinCodeForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GeneratePinCodeForUserResponse, error) + + // GetUserPinCodeWithResponse request + GetUserPinCodeWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetUserPinCodeResponse, error) + + // UpdatePinCodeWithBodyWithResponse request with any body + UpdatePinCodeWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error) + + UpdatePinCodeWithResponse(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error) + + // GetKiosksOfWorkspaceWithResponse request + GetKiosksOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetKiosksOfWorkspaceResponse, error) + + // Create15WithBodyWithResponse request with any body + Create15WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create15Response, error) + + Create15WithResponse(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*Create15Response, error) + + // UpdateBreakDefaultsWithBodyWithResponse request with any body + UpdateBreakDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error) + + UpdateBreakDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error) + + // GetTotalCountOfKiosksOnWorkspaceWithResponse request + GetTotalCountOfKiosksOnWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTotalCountOfKiosksOnWorkspaceResponse, error) + + // UpdateDefaultsWithBodyWithResponse request with any body + UpdateDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error) + + UpdateDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error) + + // HasActiveKiosksWithResponse request + HasActiveKiosksWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasActiveKiosksResponse, error) + + // GetWithProjectWithBodyWithResponse request with any body + GetWithProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error) + + GetWithProjectWithResponse(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error) + + // GetWithTaskWithBodyWithResponse request with any body + GetWithTaskWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error) + + GetWithTaskWithResponse(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error) + + // GetForReportFilterWithResponse request + GetForReportFilterWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetForReportFilterResponse, error) + + // GetWithoutDefaultsWithResponse request + GetWithoutDefaultsWithResponse(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*GetWithoutDefaultsResponse, error) + + // DeleteKioskWithResponse request + DeleteKioskWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*DeleteKioskResponse, error) + + // GetKioskByIdWithResponse request + GetKioskByIdWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*GetKioskByIdResponse, error) + + // Update8WithBodyWithResponse request with any body + Update8WithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update8Response, error) + + Update8WithResponse(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*Update8Response, error) + + // ExportAssigneesWithResponse request + ExportAssigneesWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*ExportAssigneesResponse, error) + + // HasEntryInProgressWithResponse request + HasEntryInProgressWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*HasEntryInProgressResponse, error) + + // UpdateStatusWithBodyWithResponse request with any body + UpdateStatusWithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error) + + UpdateStatusWithResponse(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error) + + // AcknowledgeLegacyPlanNotificationsWithResponse request + AcknowledgeLegacyPlanNotificationsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AcknowledgeLegacyPlanNotificationsResponse, error) + + // GetLegacyPlanUpgradeDataWithResponse request + GetLegacyPlanUpgradeDataWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLegacyPlanUpgradeDataResponse, error) + + // AddLimitedUsersWithBodyWithResponse request with any body + AddLimitedUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error) + + AddLimitedUsersWithResponse(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error) + + // GetLimitedUsersCountWithResponse request + GetLimitedUsersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLimitedUsersCountResponse, error) + + // GetMemberProfileWithResponse request + GetMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetMemberProfileResponse, error) + + // UpdateMemberProfileWithBodyWithResponse request with any body + UpdateMemberProfileWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error) + + UpdateMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error) + + // UpdateMemberProfileWithAdditionalDataWithBodyWithResponse request with any body + UpdateMemberProfileWithAdditionalDataWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error) + + UpdateMemberProfileWithAdditionalDataWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error) + + // UpdateMemberSettingsWithBodyWithResponse request with any body + UpdateMemberSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error) + + UpdateMemberSettingsWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error) + + // GetWeekStartWithResponse request + GetWeekStartWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeekStartResponse, error) + + // UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse request with any body + UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error) + + UpdateMemberWorkingDaysAndCapacityWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error) + + // GetMembersCountWithResponse request + GetMembersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetMembersCountResponse, error) + + // FindNotInvitedEmailsInWithBodyWithResponse request with any body + FindNotInvitedEmailsInWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error) + + FindNotInvitedEmailsInWithResponse(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error) + + // GetOrganizationWithResponse request + GetOrganizationWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) + + // Create14WithBodyWithResponse request with any body + Create14WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create14Response, error) + + Create14WithResponse(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*Create14Response, error) + + // GetOrganizationNameWithResponse request + GetOrganizationNameWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationNameResponse, error) + + // CheckAvailabilityOfDomainNameWithResponse request + CheckAvailabilityOfDomainNameWithResponse(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*CheckAvailabilityOfDomainNameResponse, error) + + // DeleteOrganizationWithResponse request + DeleteOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) + + // UpdateOrganizationWithBodyWithResponse request with any body + UpdateOrganizationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) + + UpdateOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) + + // GetLoginSettingsWithResponse request + GetLoginSettingsWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetLoginSettingsResponse, error) + + // DeleteOAuth2ConfigurationWithResponse request + DeleteOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOAuth2ConfigurationResponse, error) + + // GetOrganizationOAuth2ConfigurationWithResponse request + GetOrganizationOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationOAuth2ConfigurationResponse, error) + + // UpdateOAuth2Configuration1WithBodyWithResponse request with any body + UpdateOAuth2Configuration1WithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error) + + UpdateOAuth2Configuration1WithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error) + + // TestOAuth2ConfigurationWithBodyWithResponse request with any body + TestOAuth2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error) + + TestOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error) + + // DeleteSAML2ConfigurationWithResponse request + DeleteSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteSAML2ConfigurationResponse, error) + + // GetOrganizationSAML2ConfigurationWithResponse request + GetOrganizationSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationSAML2ConfigurationResponse, error) + + // UpdateSAML2ConfigurationWithBodyWithResponse request with any body + UpdateSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error) + + UpdateSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error) + + // TestSAML2ConfigurationWithBodyWithResponse request with any body + TestSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error) + + TestSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error) + + // GetAllOrganizationsOfUserWithResponse request + GetAllOrganizationsOfUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*GetAllOrganizationsOfUserResponse, error) + + // GetWorkspaceOwnerWithResponse request + GetWorkspaceOwnerWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerResponse, error) + + // TransferOwnershipWithBodyWithResponse request with any body + TransferOwnershipWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error) + + TransferOwnershipWithResponse(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error) + + // GetWorkspaceOwnerTimeZoneWithResponse request + GetWorkspaceOwnerTimeZoneWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerTimeZoneResponse, error) + + // CancelSubscriptionWithBodyWithResponse request with any body + CancelSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) + + CancelSubscriptionWithResponse(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) + + // ConfirmPaymentWithResponse request + ConfirmPaymentWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ConfirmPaymentResponse, error) + + // GetCustomerInfoWithResponse request + GetCustomerInfoWithResponse(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*GetCustomerInfoResponse, error) + + // CreateCustomerWithBodyWithResponse request with any body + CreateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) + + CreateCustomerWithResponse(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) + + // UpdateCustomerWithBodyWithResponse request with any body + UpdateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) + + UpdateCustomerWithResponse(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) + + // EditInvoiceInformationWithBodyWithResponse request with any body + EditInvoiceInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error) + + EditInvoiceInformationWithResponse(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error) + + // EditPaymentInformationWithBodyWithResponse request with any body + EditPaymentInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error) + + EditPaymentInformationWithResponse(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error) + + // ExtendTrialWithResponse request + ExtendTrialWithResponse(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*ExtendTrialResponse, error) + + // GetFeatureSubscriptionsWithResponse request + GetFeatureSubscriptionsWithResponse(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetFeatureSubscriptionsResponse, error) + + // InitialUpgradeWithBodyWithResponse request with any body + InitialUpgradeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error) + + InitialUpgradeWithResponse(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error) + + // GetInvoiceInfoWithResponse request + GetInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceInfoResponse, error) + + // GetInvoicesWithResponse request + GetInvoicesWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*GetInvoicesResponse, error) + + // GetInvoicesCountWithResponse request + GetInvoicesCountWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*GetInvoicesCountResponse, error) + + // GetLastOpenInvoiceWithResponse request + GetLastOpenInvoiceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastOpenInvoiceResponse, error) + + // GetInvoicesListWithResponse request + GetInvoicesListWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*GetInvoicesListResponse, error) + + // GetPaymentDateWithResponse request + GetPaymentDateWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentDateResponse, error) + + // GetPaymentInfoWithResponse request + GetPaymentInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentInfoResponse, error) + + // CreateSetupIntentForPaymentMethodWithBodyWithResponse request with any body + CreateSetupIntentForPaymentMethodWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error) + + CreateSetupIntentForPaymentMethodWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error) + + // PreviewUpgradeWithResponse request + PreviewUpgradeWithResponse(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*PreviewUpgradeResponse, error) + + // ReactivateSubscriptionWithResponse request + ReactivateSubscriptionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ReactivateSubscriptionResponse, error) + + // GetScheduledInvoiceInfoWithResponse request + GetScheduledInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetScheduledInvoiceInfoResponse, error) + + // UpdateUserSeatsWithBodyWithResponse request with any body + UpdateUserSeatsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error) + + UpdateUserSeatsWithResponse(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error) + + // CreateSetupIntentForInitialSubscriptionWithBodyWithResponse request with any body + CreateSetupIntentForInitialSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error) + + CreateSetupIntentForInitialSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error) + + // CreateSubscriptionWithBodyWithResponse request with any body + CreateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) + + CreateSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) + + // UpdateSubscriptionWithBodyWithResponse request with any body + UpdateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) + + UpdateSubscriptionWithResponse(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) + + // UpgradePreCheckWithResponse request + UpgradePreCheckWithResponse(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*UpgradePreCheckResponse, error) + + // DeleteSubscriptionWithBodyWithResponse request with any body + DeleteSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) + + DeleteSubscriptionWithResponse(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) + + // TerminateTrialWithResponse request + TerminateTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*TerminateTrialResponse, error) + + // StartTrialWithResponse request + StartTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*StartTrialResponse, error) + + // WasRegionalEverAllowedWithResponse request + WasRegionalEverAllowedWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WasRegionalEverAllowedResponse, error) + + // FindForUserAndPolicyWithResponse request + FindForUserAndPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*FindForUserAndPolicyResponse, error) + + // GetClientsWithResponse request + GetClientsWithResponse(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*GetClientsResponse, error) + + // GetProjects3WithResponse request + GetProjects3WithResponse(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*GetProjects3Response, error) + + // GetProjectFavoritesWithResponse request + GetProjectFavoritesWithResponse(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*GetProjectFavoritesResponse, error) + + // GetTasks21WithResponse request + GetTasks21WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*GetTasks21Response, error) + + // RecalculateProjectStatus1WithResponse request + RecalculateProjectStatus1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatus1Response, error) + + // GetProjectAndTaskWithBodyWithResponse request with any body + GetProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error) + + GetProjectAndTaskWithResponse(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error) + + // DeleteMany2WithBodyWithResponse request with any body + DeleteMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error) + + DeleteMany2WithResponse(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error) + + // GetProjects2WithResponse request + GetProjects2WithResponse(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*GetProjects2Response, error) + + // UpdateMany1WithBodyWithResponse request with any body + UpdateMany1WithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error) + + UpdateMany1WithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error) + + // Create12WithBodyWithResponse request with any body + Create12WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create12Response, error) + + Create12WithResponse(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*Create12Response, error) + + // GetFilteredProjectsCountWithResponse request + GetFilteredProjectsCountWithResponse(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*GetFilteredProjectsCountResponse, error) + + // GetFilteredProjectsWithBodyWithResponse request with any body + GetFilteredProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error) + + GetFilteredProjectsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error) + + // CreateFromTemplateWithBodyWithResponse request with any body + CreateFromTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error) + + CreateFromTemplateWithResponse(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error) + + // GetProjectWithBodyWithResponse request with any body + GetProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) + + GetProjectWithResponse(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) + + // GetLastUsedProjectWithResponse request + GetLastUsedProjectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastUsedProjectResponse, error) + + // LastUsedProject1WithResponse request + LastUsedProject1WithResponse(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*LastUsedProject1Response, error) + + // GetProjectsListWithResponse request + GetProjectsListWithResponse(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*GetProjectsListResponse, error) + + // HasManagerRole1WithResponse request + HasManagerRole1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasManagerRole1Response, error) + + // GetProjectsForReportFilterWithBodyWithResponse request with any body + GetProjectsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error) + + GetProjectsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error) + + // GetProjectIdsForReportFilterWithBodyWithResponse request with any body + GetProjectIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error) + + GetProjectIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error) + + // GetTasksByIdsWithBodyWithResponse request with any body + GetTasksByIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error) + + GetTasksByIdsWithResponse(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error) + + // GetAllTasksWithBodyWithResponse request with any body + GetAllTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error) + + GetAllTasksWithResponse(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error) + + // GetTasksWithBodyWithResponse request with any body + GetTasksWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksResponse, error) + + GetTasksWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksResponse, error) + + // GetTasksForReportFilterWithBodyWithResponse request with any body + GetTasksForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error) + + GetTasksForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error) + + // GetTaskIdsForReportFilterWithBodyWithResponse request with any body + GetTaskIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error) + + GetTaskIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error) + + // GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse request with any body + GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) + + GetTimeOffPoliciesAndHolidaysWithProjectsWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) + + // GetLastUsedOfUserWithResponse request + GetLastUsedOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetLastUsedOfUserResponse, error) + + // GetPermissionsToUserForProjectsWithBodyWithResponse request with any body + GetPermissionsToUserForProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error) + + GetPermissionsToUserForProjectsWithResponse(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error) + + // Delete13WithResponse request + Delete13WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*Delete13Response, error) + + // GetProject1WithResponse request + GetProject1WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*GetProject1Response, error) + + // Update14WithBodyWithResponse request with any body + Update14WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update14Response, error) + + Update14WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*Update14Response, error) + + // Update6WithBodyWithResponse request with any body + Update6WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update6Response, error) + + Update6WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*Update6Response, error) + + // SetCostRate1WithBodyWithResponse request with any body + SetCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error) + + SetCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error) + + // UpdateEstimateWithBodyWithResponse request with any body + UpdateEstimateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error) + + UpdateEstimateWithResponse(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error) + + // SetHourlyRate1WithBodyWithResponse request with any body + SetHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error) + + SetHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error) + + // HasManagerRoleWithResponse request + HasManagerRoleWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HasManagerRoleResponse, error) + + // GetAuthsForProjectWithResponse request + GetAuthsForProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetAuthsForProjectResponse, error) + + // RecalculateProjectStatusWithResponse request + RecalculateProjectStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatusResponse, error) + + // GetTasks1WithResponse request + GetTasks1WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasks1Response, error) + + // Create13WithBodyWithResponse request with any body + Create13WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create13Response, error) + + Create13WithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*Create13Response, error) + + // GetTasksAssignedToUserWithResponse request + GetTasksAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasksAssignedToUserResponse, error) + + // GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse request with any body + GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) + + GetTimeOffPoliciesAndHolidaysWithTasksWithResponse(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) + + // Update7WithBodyWithResponse request with any body + Update7WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update7Response, error) + + Update7WithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*Update7Response, error) + + // SetCostRateWithBodyWithResponse request with any body + SetCostRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error) + + SetCostRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error) + + // SetHourlyRateWithBodyWithResponse request with any body + SetHourlyRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error) + + SetHourlyRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error) + + // Delete14WithResponse request + Delete14WithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete14Response, error) + + // GetTaskAssignedToUserWithResponse request + GetTaskAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*GetTaskAssignedToUserResponse, error) + + // AddUsers1WithBodyWithResponse request with any body + AddUsers1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsers1Response, error) + + AddUsers1WithResponse(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsers1Response, error) + + // GetStatusWithResponse request + GetStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetStatusResponse, error) + + // RemoveUserGroupMembershipWithResponse request + RemoveUserGroupMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*RemoveUserGroupMembershipResponse, error) + + // GetUsers4WithResponse request + GetUsers4WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*GetUsers4Response, error) + + // AddUsersCostRate1WithBodyWithResponse request with any body + AddUsersCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error) + + AddUsersCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error) + + // AddUsersHourlyRate1WithBodyWithResponse request with any body + AddUsersHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error) + + AddUsersHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error) + + // RemoveUserMembershipWithResponse request + RemoveUserMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*RemoveUserMembershipResponse, error) + + // RemovePermissionsToUserWithBodyWithResponse request with any body + RemovePermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error) + + RemovePermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error) + + // GetPermissionsToUser1WithResponse request + GetPermissionsToUser1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUser1Response, error) + + // AddPermissionsToUserWithBodyWithResponse request with any body + AddPermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error) + + AddPermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error) + + // DisconnectWithResponse request + DisconnectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*DisconnectResponse, error) + + // ConnectWithBodyWithResponse request with any body + ConnectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectResponse, error) + + ConnectWithResponse(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectResponse, error) + + // Connect1WithResponse request + Connect1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*Connect1Response, error) + + // SyncClientsWithBodyWithResponse request with any body + SyncClientsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error) + + SyncClientsWithResponse(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error) + + // SyncProjectsWithBodyWithResponse request with any body + SyncProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error) + + SyncProjectsWithResponse(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error) + + // UpdateProjectsWithBodyWithResponse request with any body + UpdateProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error) + + UpdateProjectsWithResponse(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error) + + // GetAllRegionsForUserAccountWithResponse request + GetAllRegionsForUserAccountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllRegionsForUserAccountResponse, error) + + // ListOfWorkspaceWithResponse request + ListOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspaceResponse, error) + + // Create11WithBodyWithResponse request with any body + Create11WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create11Response, error) + + Create11WithResponse(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*Create11Response, error) + + // OfWorkspaceIdAndUserIdWithResponse request + OfWorkspaceIdAndUserIdWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*OfWorkspaceIdAndUserIdResponse, error) + + // Delete12WithResponse request + Delete12WithResponse(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*Delete12Response, error) + + // Update5WithBodyWithResponse request with any body + Update5WithBodyWithResponse(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update5Response, error) + + Update5WithResponse(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*Update5Response, error) + + // GetDashboardInfoWithBodyWithResponse request with any body + GetDashboardInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error) + + GetDashboardInfoWithResponse(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error) + + // GetMyMostTrackedWithResponse request + GetMyMostTrackedWithResponse(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*GetMyMostTrackedResponse, error) + + // GetTeamActivitiesWithResponse request + GetTeamActivitiesWithResponse(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*GetTeamActivitiesResponse, error) + + // GetAmountPreviewWithResponse request + GetAmountPreviewWithResponse(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*GetAmountPreviewResponse, error) + + // GetDraftAssignmentsCountWithBodyWithResponse request with any body + GetDraftAssignmentsCountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error) + + GetDraftAssignmentsCountWithResponse(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error) + + // GetProjectTotalsWithResponse request + GetProjectTotalsWithResponse(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsResponse, error) + + // GetFilteredProjectTotalsWithBodyWithResponse request with any body + GetFilteredProjectTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error) + + GetFilteredProjectTotalsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error) + + // GetProjectTotalsForSingleProjectWithResponse request + GetProjectTotalsForSingleProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsForSingleProjectResponse, error) + + // GetProjectsForUserWithResponse request + GetProjectsForUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*GetProjectsForUserResponse, error) + + // PublishAssignmentsWithBodyWithResponse request with any body + PublishAssignmentsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error) + + PublishAssignmentsWithResponse(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error) + + // CreateRecurringWithBodyWithResponse request with any body + CreateRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error) + + CreateRecurringWithResponse(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error) + + // Delete11WithResponse request + Delete11WithResponse(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*Delete11Response, error) + + // EditRecurringWithBodyWithResponse request with any body + EditRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error) + + EditRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error) + + // EditPeriodForRecurringWithBodyWithResponse request with any body + EditPeriodForRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error) + + EditPeriodForRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error) + + // EditRecurringPeriodWithBodyWithResponse request with any body + EditRecurringPeriodWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error) + + EditRecurringPeriodWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error) + + // GetUserTotalsWithBodyWithResponse request with any body + GetUserTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error) + + GetUserTotalsWithResponse(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error) + + // GetAssignmentsForUserWithResponse request + GetAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*GetAssignmentsForUserResponse, error) + + // GetFilteredAssignmentsForUserWithBodyWithResponse request with any body + GetFilteredAssignmentsForUserWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error) + + GetFilteredAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error) + + // GetUsers3WithResponse request + GetUsers3WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*GetUsers3Response, error) + + // GetProjects1WithResponse request + GetProjects1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*GetProjects1Response, error) + + // RemindToPublishWithResponse request + RemindToPublishWithResponse(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*RemindToPublishResponse, error) + + // GetUserTotalsForSingleUserWithResponse request + GetUserTotalsForSingleUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*GetUserTotalsForSingleUserResponse, error) + + // Get3WithResponse request + Get3WithResponse(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*Get3Response, error) + + // CopyAssignmentWithBodyWithResponse request with any body + CopyAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error) + + CopyAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error) + + // SplitAssignmentWithBodyWithResponse request with any body + SplitAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error) + + SplitAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error) + + // ShiftScheduleWithBodyWithResponse request with any body + ShiftScheduleWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error) + + ShiftScheduleWithResponse(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error) + + // HideProjectWithResponse request + HideProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HideProjectResponse, error) + + // ShowProjectWithResponse request + ShowProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ShowProjectResponse, error) + + // HideUserWithResponse request + HideUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*HideUserResponse, error) + + // ShowUserWithResponse request + ShowUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ShowUserResponse, error) + + // Create10WithBodyWithResponse request with any body + Create10WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create10Response, error) + + Create10WithResponse(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*Create10Response, error) + + // Delete10WithResponse request + Delete10WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Delete10Response, error) + + // Get2WithResponse request + Get2WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Get2Response, error) + + // Edit1WithBodyWithResponse request with any body + Edit1WithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Edit1Response, error) + + Edit1WithResponse(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*Edit1Response, error) + + // EditDateWithBodyWithResponse request with any body + EditDateWithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDateResponse, error) + + EditDateWithResponse(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDateResponse, error) + + // GetProjectsWithResponse request + GetProjectsWithResponse(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) + + // GetUsers2WithResponse request + GetUsers2WithResponse(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*GetUsers2Response, error) + + // GetUsersAssignedToProjectWithResponse request + GetUsersAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAssignedToProjectResponse, error) + + // GetSidebarConfigWithResponse request + GetSidebarConfigWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetSidebarConfigResponse, error) + + // UpdateSidebarWithBodyWithResponse request with any body + UpdateSidebarWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error) + + UpdateSidebarWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error) + + // FilterUsersByStatusWithBodyWithResponse request with any body + FilterUsersByStatusWithBodyWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error) + + FilterUsersByStatusWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error) + + // Delete9WithBodyWithResponse request with any body + Delete9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Delete9Response, error) + + Delete9WithResponse(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*Delete9Response, error) + + // StopWithBodyWithResponse request with any body + StopWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopResponse, error) + + StopWithResponse(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*StopResponse, error) + + // StartWithBodyWithResponse request with any body + StartWithBodyWithResponse(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartResponse, error) + + StartWithResponse(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*StartResponse, error) + + // DeleteMany1WithBodyWithResponse request with any body + DeleteMany1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error) + + DeleteMany1WithResponse(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error) + + // GetTagsWithResponse request + GetTagsWithResponse(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error) + + // UpdateManyWithBodyWithResponse request with any body + UpdateManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error) + + UpdateManyWithResponse(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error) + + // Create9WithBodyWithResponse request with any body + Create9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create9Response, error) + + Create9WithResponse(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*Create9Response, error) + + // ConnectedToApprovedEntriesWithBodyWithResponse request with any body + ConnectedToApprovedEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error) + + ConnectedToApprovedEntriesWithResponse(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error) + + // GetTagsOfIdsWithBodyWithResponse request with any body + GetTagsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error) + + GetTagsOfIdsWithResponse(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error) + + // GetTagIdsByNameAndStatusWithResponse request + GetTagIdsByNameAndStatusWithResponse(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*GetTagIdsByNameAndStatusResponse, error) + + // Delete8WithResponse request + Delete8WithResponse(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*Delete8Response, error) + + // Update4WithBodyWithResponse request with any body + Update4WithBodyWithResponse(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update4Response, error) + + Update4WithResponse(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*Update4Response, error) + + // GetTemplatesWithResponse request + GetTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesResponse, error) + + // Create8WithBodyWithResponse request with any body + Create8WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create8Response, error) + + Create8WithResponse(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*Create8Response, error) + + // Delete7WithResponse request + Delete7WithResponse(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*Delete7Response, error) + + // GetTemplateWithResponse request + GetTemplateWithResponse(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) + + // Update13WithBodyWithResponse request with any body + Update13WithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update13Response, error) + + Update13WithResponse(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*Update13Response, error) + + // ActivateWithBodyWithResponse request with any body + ActivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateResponse, error) + + ActivateWithResponse(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateResponse, error) + + // DeactivateWithBodyWithResponse request with any body + DeactivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeactivateResponse, error) + + DeactivateWithResponse(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateResponse, error) + + // CopyTimeEntriesWithBodyWithResponse request with any body + CopyTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error) + + CopyTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error) + + // ContinueTimeEntryWithResponse request + ContinueTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*ContinueTimeEntryResponse, error) + + // GetTeamMembersOfAdminWithResponse request + GetTeamMembersOfAdminWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfAdminResponse, error) + + // GetBalancesForPolicyWithResponse request + GetBalancesForPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*GetBalancesForPolicyResponse, error) + + // UpdateBalanceWithBodyWithResponse request with any body + UpdateBalanceWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error) + + UpdateBalanceWithResponse(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error) + + // GetBalancesForUserWithResponse request + GetBalancesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*GetBalancesForUserResponse, error) + + // GetTeamMembersOfManagerWithResponse request + GetTeamMembersOfManagerWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfManagerResponse, error) + + // FindPoliciesForWorkspaceWithResponse request + FindPoliciesForWorkspaceWithResponse(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*FindPoliciesForWorkspaceResponse, error) + + // CreatePolicyWithBodyWithResponse request with any body + CreatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) + + CreatePolicyWithResponse(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) + + // GetPolicyAssignmentForCurrentUserWithResponse request + GetPolicyAssignmentForCurrentUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentForCurrentUserResponse, error) + + // GetTeamAssignmentsDistributionWithResponse request + GetTeamAssignmentsDistributionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTeamAssignmentsDistributionResponse, error) + + // GetPolicyAssignmentsForUserWithResponse request + GetPolicyAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentsForUserResponse, error) + + // FindPoliciesForUserWithResponse request + FindPoliciesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*FindPoliciesForUserResponse, error) + + // DeletePolicyWithResponse request + DeletePolicyWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) + + // UpdatePolicyWithBodyWithResponse request with any body + UpdatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) + + UpdatePolicyWithResponse(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) + + // ArchiveWithResponse request + ArchiveWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*ArchiveResponse, error) + + // RestoreWithResponse request + RestoreWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RestoreResponse, error) + + // GetPolicyWithResponse request + GetPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) + + // Create7WithBodyWithResponse request with any body + Create7WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create7Response, error) + + Create7WithResponse(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*Create7Response, error) + + // Delete6WithResponse request + Delete6WithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*Delete6Response, error) + + // ApproveWithResponse request + ApproveWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*ApproveResponse, error) + + // RejectWithBodyWithResponse request with any body + RejectWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RejectResponse, error) + + RejectWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*RejectResponse, error) + + // CreateForOther1WithBodyWithResponse request with any body + CreateForOther1WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error) + + CreateForOther1WithResponse(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error) + + // Get1WithBodyWithResponse request with any body + Get1WithBodyWithResponse(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Get1Response, error) + + Get1WithResponse(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*Get1Response, error) + + // GetTimeOffRequestByIdWithResponse request + GetTimeOffRequestByIdWithResponse(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*GetTimeOffRequestByIdResponse, error) + + // GetAllUsersOfWorkspaceWithResponse request + GetAllUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetAllUsersOfWorkspaceResponse, error) + + // GetUserGroupsOfWorkspaceWithResponse request + GetUserGroupsOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUserGroupsOfWorkspaceResponse, error) + + // GetUsersOfWorkspaceWithResponse request + GetUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspaceResponse, error) + + // GetWithBodyWithResponse request with any body + GetWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetResponse, error) + + GetWithResponse(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*GetResponse, error) + + // GetTimelineForReportsWithBodyWithResponse request with any body + GetTimelineForReportsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error) + + GetTimelineForReportsWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error) + + // DeleteManyWithBodyWithResponse request with any body + DeleteManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error) + + DeleteManyWithResponse(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error) + + // GetTimeEntriesBySearchValueWithResponse request + GetTimeEntriesBySearchValueWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesBySearchValueResponse, error) + + // Create6WithBodyWithResponse request with any body + Create6WithBodyWithResponse(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create6Response, error) + + Create6WithResponse(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*Create6Response, error) + + // PatchTimeEntriesWithBodyWithResponse request with any body + PatchTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error) + + PatchTimeEntriesWithResponse(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error) + + // EndStartedWithBodyWithResponse request with any body + EndStartedWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndStartedResponse, error) + + EndStartedWithResponse(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*EndStartedResponse, error) + + // GetMultipleTimeEntriesByIdWithResponse request + GetMultipleTimeEntriesByIdWithResponse(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*GetMultipleTimeEntriesByIdResponse, error) + + // CreateFull1WithBodyWithResponse request with any body + CreateFull1WithBodyWithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFull1Response, error) + + CreateFull1WithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFull1Response, error) + + // GetTimeEntryInProgressWithResponse request + GetTimeEntryInProgressWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTimeEntryInProgressResponse, error) + + // UpdateInvoicedStatusWithBodyWithResponse request with any body + UpdateInvoicedStatusWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error) + + UpdateInvoicedStatusWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error) + + // ListOfProjectWithResponse request + ListOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ListOfProjectResponse, error) + + // GetTimeEntriesRecentlyUsedWithResponse request + GetTimeEntriesRecentlyUsedWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesRecentlyUsedResponse, error) + + // RestoreTimeEntriesWithBodyWithResponse request with any body + RestoreTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error) + + RestoreTimeEntriesWithResponse(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error) + + // CreateForManyWithBodyWithResponse request with any body + CreateForManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error) + + CreateForManyWithResponse(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error) + + // CreateForOthersWithBodyWithResponse request with any body + CreateForOthersWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error) + + CreateForOthersWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error) + + // ListOfFullWithResponse request + ListOfFullWithResponse(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*ListOfFullResponse, error) + + // GetTimeEntriesWithResponse request + GetTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesResponse, error) + + // AssertTimeEntriesExistInDateRangeWithResponse request + AssertTimeEntriesExistInDateRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*AssertTimeEntriesExistInDateRangeResponse, error) + + // CreateFullWithBodyWithResponse request with any body + CreateFullWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFullResponse, error) + + CreateFullWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFullResponse, error) + + // GetTimeEntriesInRangeWithResponse request + GetTimeEntriesInRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesInRangeResponse, error) + + // GetTimeEntriesForTimesheetWithResponse request + GetTimeEntriesForTimesheetWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesForTimesheetResponse, error) + + // PatchWithBodyWithResponse request with any body + PatchWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchResponse, error) + + PatchWithResponse(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchResponse, error) + + // Update3WithBodyWithResponse request with any body + Update3WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update3Response, error) + + Update3WithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*Update3Response, error) + + // GetTimeEntryAttributesWithResponse request + GetTimeEntryAttributesWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*GetTimeEntryAttributesResponse, error) + + // CreateTimeEntryAttributeWithBodyWithResponse request with any body + CreateTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error) + + CreateTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error) + + // DeleteTimeEntryAttributeWithBodyWithResponse request with any body + DeleteTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error) + + DeleteTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error) + + // UpdateBillableWithBodyWithResponse request with any body + UpdateBillableWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error) + + UpdateBillableWithResponse(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error) + + // UpdateDescriptionWithBodyWithResponse request with any body + UpdateDescriptionWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error) + + UpdateDescriptionWithResponse(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error) + + // UpdateEndWithBodyWithResponse request with any body + UpdateEndWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error) + + UpdateEndWithResponse(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error) + + // UpdateFullWithBodyWithResponse request with any body + UpdateFullWithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error) + + UpdateFullWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error) + + // UpdateProjectWithBodyWithResponse request with any body + UpdateProjectWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) + + UpdateProjectWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) + + // RemoveProjectWithResponse request + RemoveProjectWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveProjectResponse, error) + + // UpdateProjectAndTaskWithBodyWithResponse request with any body + UpdateProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error) + + UpdateProjectAndTaskWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error) + + // UpdateAndSplitWithBodyWithResponse request with any body + UpdateAndSplitWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error) + + UpdateAndSplitWithResponse(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error) + + // SplitTimeEntryWithBodyWithResponse request with any body + SplitTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error) + + SplitTimeEntryWithResponse(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error) + + // UpdateStartWithBodyWithResponse request with any body + UpdateStartWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error) + + UpdateStartWithResponse(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error) + + // UpdateTagsWithBodyWithResponse request with any body + UpdateTagsWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error) + + UpdateTagsWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error) + + // RemoveTaskWithResponse request + RemoveTaskWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveTaskResponse, error) + + // UpdateTimeIntervalWithBodyWithResponse request with any body + UpdateTimeIntervalWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error) + + UpdateTimeIntervalWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error) + + // UpdateUserWithBodyWithResponse request with any body + UpdateUserWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) + + UpdateUserWithResponse(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) + + // Delete5WithResponse request + Delete5WithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*Delete5Response, error) + + // UpdateCustomFieldWithBodyWithResponse request with any body + UpdateCustomFieldWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) + + UpdateCustomFieldWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) + + // PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse request with any body + PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) + + PenalizeCurrentTimerAndStartNewTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) + + // TransferWorkspaceDeprecatedFlowWithBodyWithResponse request with any body + TransferWorkspaceDeprecatedFlowWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error) + + TransferWorkspaceDeprecatedFlowWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error) + + // TransferWorkspaceWithBodyWithResponse request with any body + TransferWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error) + + TransferWorkspaceWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error) + + // GetTrialActivationDataWithResponse request + GetTrialActivationDataWithResponse(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*GetTrialActivationDataResponse, error) + + // RemoveMemberWithResponse request + RemoveMemberWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*RemoveMemberResponse, error) + + // CopyTimeEntryCalendarDragWithBodyWithResponse request with any body + CopyTimeEntryCalendarDragWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error) + + CopyTimeEntryCalendarDragWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error) + + // DuplicateTimeEntryWithResponse request + DuplicateTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*DuplicateTimeEntryResponse, error) + + // GetUserGroups1WithResponse request + GetUserGroups1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUserGroups1Response, error) + + // Create5WithBodyWithResponse request with any body + Create5WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create5Response, error) + + Create5WithResponse(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*Create5Response, error) + + // GetUserGroups2WithResponse request + GetUserGroups2WithResponse(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*GetUserGroups2Response, error) + + // GetUserGroupNamesWithBodyWithResponse request with any body + GetUserGroupNamesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error) + + GetUserGroupNamesWithResponse(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error) + + // GetUsersForReportFilter1WithResponse request + GetUsersForReportFilter1WithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*GetUsersForReportFilter1Response, error) + + // GetUserGroupForReportFilterPostWithBodyWithResponse request with any body + GetUserGroupForReportFilterPostWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error) + + GetUserGroupForReportFilterPostWithResponse(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error) + + // GetUsersForAttendanceReportFilterWithBodyWithResponse request with any body + GetUsersForAttendanceReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error) + + GetUsersForAttendanceReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error) + + // GetUserGroupIdsByNameWithResponse request + GetUserGroupIdsByNameWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*GetUserGroupIdsByNameResponse, error) + + // GetUserGroupsWithBodyWithResponse request with any body + GetUserGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error) + + GetUserGroupsWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error) + + // RemoveUserWithBodyWithResponse request with any body + RemoveUserWithBodyWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error) + + RemoveUserWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error) + + // AddUsersToUserGroupsFilterWithBodyWithResponse request with any body + AddUsersToUserGroupsFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error) + + AddUsersToUserGroupsFilterWithResponse(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error) + + // Delete4WithResponse request + Delete4WithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*Delete4Response, error) + + // Update2WithBodyWithResponse request with any body + Update2WithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update2Response, error) + + Update2WithResponse(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*Update2Response, error) + + // GetUsersWithBodyWithResponse request with any body + GetUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) + + GetUsersWithResponse(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) + + // GetUsers1WithResponse request + GetUsers1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsers1Response, error) + + // AddUsersWithBodyWithResponse request with any body + AddUsersWithBodyWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersResponse, error) + + AddUsersWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersResponse, error) + + // GetExpensesForUsersWithResponse request + GetExpensesForUsersWithResponse(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*GetExpensesForUsersResponse, error) + + // SetMembershipsWithBodyWithResponse request with any body + SetMembershipsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error) + + SetMembershipsWithResponse(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error) + + // ResendInviteWithResponse request + ResendInviteWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ResendInviteResponse, error) + + // CreateDeprecatedWithBodyWithResponse request with any body + CreateDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error) + + CreateDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error) + + // GetRequestsByUserWithResponse request + GetRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetRequestsByUserResponse, error) + + // GetApprovedTotalsWithBodyWithResponse request with any body + GetApprovedTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error) + + GetApprovedTotalsWithResponse(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error) + + // CreateForOtherDeprecatedWithBodyWithResponse request with any body + CreateForOtherDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error) + + CreateForOtherDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error) + + // GetPreviewWithBodyWithResponse request with any body + GetPreviewWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error) + + GetPreviewWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error) + + // GetTimeEntryStatusWithResponse request + GetTimeEntryStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryStatusResponse, error) + + // GetTimeEntryWeekStatusWithResponse request + GetTimeEntryWeekStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryWeekStatusResponse, error) + + // GetWeeklyRequestsByUserWithResponse request + GetWeeklyRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeeklyRequestsByUserResponse, error) + + // WithdrawAllOfUserWithResponse request + WithdrawAllOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfUserResponse, error) + + // WithdrawAllOfWorkspaceDeprecatedWithResponse request + WithdrawAllOfWorkspaceDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceDeprecatedResponse, error) + + // WithdrawWeeklyOfUserWithResponse request + WithdrawWeeklyOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawWeeklyOfUserResponse, error) + + // SetCostRateForUser1WithBodyWithResponse request with any body + SetCostRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error) + + SetCostRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error) + + // UpsertUserCustomFieldValueWithBodyWithResponse request with any body + UpsertUserCustomFieldValueWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error) + + UpsertUserCustomFieldValueWithResponse(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error) + + // GetFavoriteEntriesWithResponse request + GetFavoriteEntriesWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetFavoriteEntriesResponse, error) + + // CreateFavoriteTimeEntryWithBodyWithResponse request with any body + CreateFavoriteTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error) + + CreateFavoriteTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error) + + // ReorderInvoiceItemWithBodyWithResponse request with any body + ReorderInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error) + + ReorderInvoiceItemWithResponse(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error) + + // Delete3WithResponse request + Delete3WithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*Delete3Response, error) + + // Update1WithBodyWithResponse request with any body + Update1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update1Response, error) + + Update1WithResponse(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*Update1Response, error) + + // GetHolidays1WithResponse request + GetHolidays1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*GetHolidays1Response, error) + + // SetHourlyRateForUser1WithBodyWithResponse request with any body + SetHourlyRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error) + + SetHourlyRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error) + + // GetPermissionsToUserWithResponse request + GetPermissionsToUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUserResponse, error) + + // RemoveFavoriteProjectWithResponse request + RemoveFavoriteProjectWithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveFavoriteProjectResponse, error) + + // Delete2WithResponse request + Delete2WithResponse(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*Delete2Response, error) + + // Create4WithResponse request + Create4WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*Create4Response, error) + + // Delete1WithResponse request + Delete1WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete1Response, error) + + // Create3WithResponse request + Create3WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Create3Response, error) + + // ReSubmitWithBodyWithResponse request with any body + ReSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error) + + ReSubmitWithResponse(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error) + + // GetUserRolesWithResponse request + GetUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*GetUserRolesResponse, error) + + // UpdateUserRolesWithBodyWithResponse request with any body + UpdateUserRolesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error) + + UpdateUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error) + + // Create2WithBodyWithResponse request with any body + Create2WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create2Response, error) + + Create2WithResponse(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*Create2Response, error) + + // CreateForOtherWithBodyWithResponse request with any body + CreateForOtherWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error) + + CreateForOtherWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error) + + // GetWorkCapacityWithResponse request + GetWorkCapacityWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityResponse, error) + + // GetWebhooksWithResponse request + GetWebhooksWithResponse(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*GetWebhooksResponse, error) + + // Create1WithBodyWithResponse request with any body + Create1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create1Response, error) + + Create1WithResponse(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*Create1Response, error) + + // DeleteWithResponse request + DeleteWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*DeleteResponse, error) + + // GetWebhookWithResponse request + GetWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error) + + // UpdateWithBodyWithResponse request with any body + UpdateWithBodyWithResponse(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error) + + UpdateWithResponse(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error) + + // GetLogsForWebhook1WithResponse request + GetLogsForWebhook1WithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*GetLogsForWebhook1Response, error) + + // GetLogCountWithResponse request + GetLogCountWithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*GetLogCountResponse, error) + + // TriggerResendEventForWebhookWithResponse request + TriggerResendEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*TriggerResendEventForWebhookResponse, error) + + // TriggerTestEventForWebhookWithResponse request + TriggerTestEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*TriggerTestEventForWebhookResponse, error) + + // GenerateNewTokenWithResponse request + GenerateNewTokenWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GenerateNewTokenResponse, error) +} + +type GetInitialDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceEmailLinkDto +} + +// Status returns HTTPResponse.Status +func (r GetInitialDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInitialDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DownloadReportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *openapi_types.File +} + +// Status returns HTTPResponse.Status +func (r DownloadReportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadReportResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ResetPinResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ResetPinResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ResetPinResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ValidatePinResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceEmailLinkPinValidationDto +} + +// Status returns HTTPResponse.Status +func (r ValidatePinResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ValidatePinResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSmtpConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SMTPConfigurationDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSmtpConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSmtpConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DisableAccessToEntitiesInTransferResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *WorkspaceTransferAccessDisabledDto +} + +// Status returns HTTPResponse.Status +func (r DisableAccessToEntitiesInTransferResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DisableAccessToEntitiesInTransferResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EnableAccessToEntitiesInTransferResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r EnableAccessToEntitiesInTransferResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EnableAccessToEntitiesInTransferResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UsersExistResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r UsersExistResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UsersExistResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HandleCleanupOnSourceRegionResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HandleCleanupOnSourceRegionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HandleCleanupOnSourceRegionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HandleTransferCompletedOnSourceRegionResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HandleTransferCompletedOnSourceRegionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HandleTransferCompletedOnSourceRegionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HandleTransferCompletedFailureResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HandleTransferCompletedFailureResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HandleTransferCompletedFailureResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HandleTransferCompletedSuccessResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HandleTransferCompletedSuccessResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HandleTransferCompletedSuccessResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsersDto +} + +// Status returns HTTPResponse.Status +func (r GetAllUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TeamMemberInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetUserInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserMembershipsAndInvitesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserMembershipAndInviteDto +} + +// Status returns HTTPResponse.Status +func (r GetUserMembershipsAndInvitesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserMembershipsAndInvitesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CheckForNewsletterSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r CheckForNewsletterSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CheckForNewsletterSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AddNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddNotificationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNewsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]NewsDto +} + +// Status returns HTTPResponse.Status +func (r GetNewsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNewsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteNewsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteNewsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteNewsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateNewsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateNewsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateNewsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SearchAllUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsersDto +} + +// Status returns HTTPResponse.Status +func (r SearchAllUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SearchAllUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type NumberOfUsersRegisteredResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r NumberOfUsersRegisteredResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r NumberOfUsersRegisteredResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOnWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersOnWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOnWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type BulkEditUsersResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r BulkEditUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r BulkEditUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOfWorkspace5Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserListAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersOfWorkspace5Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOfWorkspace5Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TeamMemberInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetMembersInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TeamMemberInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetMembersInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetMembersInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserNamesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]EntityIdNameDto +} + +// Status returns HTTPResponse.Status +func (r GetUserNamesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserNamesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FindPoliciesToBeApprovedByUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PolicyDto +} + +// Status returns HTTPResponse.Status +func (r FindPoliciesToBeApprovedByUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FindPoliciesToBeApprovedByUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersAndUsersFromUserGroupsAssignedToProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersAndUsersFromUserGroupsAssignedToProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersAndUsersFromUserGroupsAssignedToProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersForProjectMembersFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersForProjectMembersFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersForProjectMembersFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersForAttendanceReportFilter1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersForAttendanceReportFilter1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersForAttendanceReportFilter1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOfWorkspace4Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetUsersOfWorkspace4Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOfWorkspace4Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersForReportFilterOldResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersForReportFilterOldResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersForReportFilterOldResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOfUserGroupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersOfUserGroupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOfUserGroupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOfWorkspace3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r GetUsersOfWorkspace3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOfWorkspace3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOfWorkspace2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TeamMembersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersOfWorkspace2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOfWorkspace2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateTimeTrackingSettings1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateTimeTrackingSettings1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTimeTrackingSettings1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateDashboardSelectionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateDashboardSelectionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateDashboardSelectionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetDefaultWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r SetDefaultWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetDefaultWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r DeleteUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ChangeEmailResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ChangeEmailResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChangeEmailResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HasPendingEmailChangeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PendingEmailChangeResponse +} + +// Status returns HTTPResponse.Status +func (r HasPendingEmailChangeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HasPendingEmailChangeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateLangResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateLangResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateLangResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type MarkAsRead1Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r MarkAsRead1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MarkAsRead1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type MarkAsReadResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r MarkAsReadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MarkAsReadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ChangeNameAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r ChangeNameAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChangeNameAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNewsForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]NewsDto +} + +// Status returns HTTPResponse.Status +func (r GetNewsForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNewsForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ReadNewsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ReadNewsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ReadNewsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]NotificationDto +} + +// Status returns HTTPResponse.Status +func (r GetNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNotificationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdatePictureResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdatePictureResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdatePictureResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateNameAndProfilePictureResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UsersNameAndProfilePictureDto +} + +// Status returns HTTPResponse.Status +func (r UpdateNameAndProfilePictureResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateNameAndProfilePictureResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSummaryReportSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSummaryReportSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSummaryReportSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateTimeTrackingSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateTimeTrackingSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTimeTrackingSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateTimezoneResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserDto +} + +// Status returns HTTPResponse.Status +func (r UpdateTimezoneResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTimezoneResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetVerificationCampaignNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]NotificationDto +} + +// Status returns HTTPResponse.Status +func (r GetVerificationCampaignNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetVerificationCampaignNotificationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type MarkNotificationsAsReadResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r MarkNotificationsAsReadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r MarkNotificationsAsReadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkCapacityForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserCapacityDto +} + +// Status returns HTTPResponse.Status +func (r GetWorkCapacityForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkCapacityForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersWorkingDaysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]GetUsersWorkingDays200 +} +type GetUsersWorkingDays200 string + +// Status returns HTTPResponse.Status +func (r GetUsersWorkingDaysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersWorkingDaysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UploadImageResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UploadFileResponseV1 +} + +// Status returns HTTPResponse.Status +func (r UploadImageResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UploadImageResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllUnfinishedWalkthroughTypesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WalkthroughDto +} + +// Status returns HTTPResponse.Status +func (r GetAllUnfinishedWalkthroughTypesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllUnfinishedWalkthroughTypesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FinishWalkthroughResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r FinishWalkthroughResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FinishWalkthroughResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOwnerEmailByWorkspaceIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *string +} + +// Status returns HTTPResponse.Status +func (r GetOwnerEmailByWorkspaceIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOwnerEmailByWorkspaceIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkspacesOfUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]WorkspaceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r GetWorkspacesOfUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkspacesOfUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r CreateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkspaceInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]WorkspaceSubscriptionInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetWorkspaceInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkspaceInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type InsertLegacyPlanNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r InsertLegacyPlanNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InsertLegacyPlanNotificationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPermissionsToUserForWorkspacesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r GetPermissionsToUserForWorkspacesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPermissionsToUserForWorkspacesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type LeaveWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r LeaveWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r LeaveWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkspaceByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r GetWorkspaceByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkspaceByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r UpdateWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetABTestingResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ABTestingDto +} + +// Status returns HTTPResponse.Status +func (r GetABTestingResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetABTestingResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetActiveMembersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ActiveMembersDto +} + +// Status returns HTTPResponse.Status +func (r GetActiveMembersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetActiveMembersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UninstallResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UninstallResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UninstallResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInstalledAddonsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AddonDto +} + +// Status returns HTTPResponse.Status +func (r GetInstalledAddonsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInstalledAddonsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type InstallResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AddonDto +} + +// Status returns HTTPResponse.Status +func (r InstallResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InstallResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInstalledAddonsIdNamePairResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]IdNamePairDto +} + +// Status returns HTTPResponse.Status +func (r GetInstalledAddonsIdNamePairResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInstalledAddonsIdNamePairResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInstalledAddonsByKeysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]IdNamePairDto +} + +// Status returns HTTPResponse.Status +func (r GetInstalledAddonsByKeysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInstalledAddonsByKeysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Uninstall1Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r Uninstall1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Uninstall1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAddonByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonDto +} + +// Status returns HTTPResponse.Status +func (r GetAddonByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAddonByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSettings1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSettings1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSettings1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateStatus3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AddonDto +} + +// Status returns HTTPResponse.Status +func (r UpdateStatus3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateStatus3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAddonUserJWTResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *string +} + +// Status returns HTTPResponse.Status +func (r GetAddonUserJWTResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAddonUserJWTResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAddonWebhooksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WebhooksDto +} + +// Status returns HTTPResponse.Status +func (r GetAddonWebhooksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAddonWebhooksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveUninstalledAddonResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemoveUninstalledAddonResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveUninstalledAddonResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListOfWorkspace1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AlertDto +} + +// Status returns HTTPResponse.Status +func (r ListOfWorkspace1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListOfWorkspace1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create20Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *AlertDto +} + +// Status returns HTTPResponse.Status +func (r Create20Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create20Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete18Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AlertDto +} + +// Status returns HTTPResponse.Status +func (r Delete18Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete18Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update11Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AlertDto +} + +// Status returns HTTPResponse.Status +func (r Update11Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update11Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllowedUpdatesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AllowedUpdates +} + +// Status returns HTTPResponse.Status +func (r GetAllowedUpdatesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllowedUpdatesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ApproveRequestsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ApproveRequestsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ApproveRequestsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r CountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HasPendingResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r HasPendingResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HasPendingResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemindManagersToApproveResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemindManagersToApproveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemindManagersToApproveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemindUsersToSubmitResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemindUsersToSubmitResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemindUsersToSubmitResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetApprovalGroupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ApprovalGroupDto +} + +// Status returns HTTPResponse.Status +func (r GetApprovalGroupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetApprovalGroupsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUnsubmittedSummariesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UnsubmittedSummaryGroupDto +} + +// Status returns HTTPResponse.Status +func (r GetUnsubmittedSummariesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUnsubmittedSummariesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WithdrawAllOfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r WithdrawAllOfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WithdrawAllOfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetRequestsByWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ApprovalInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetRequestsByWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetRequestsByWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetApprovalRequestResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r GetApprovalRequestResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetApprovalRequestResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateStatus2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r UpdateStatus2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateStatus2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetApprovalDashboardResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalDashboardDto +} + +// Status returns HTTPResponse.Status +func (r GetApprovalDashboardResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetApprovalDashboardResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetApprovalDetailsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalDetailsDto +} + +// Status returns HTTPResponse.Status +func (r GetApprovalDetailsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetApprovalDetailsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FetchCustomAttributesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CustomAttributeDto +} + +// Status returns HTTPResponse.Status +func (r FetchCustomAttributesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FetchCustomAttributesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CheckWorkspaceTransferPossibilityResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceTransferPossibleDto +} + +// Status returns HTTPResponse.Status +func (r CheckWorkspaceTransferPossibilityResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CheckWorkspaceTransferPossibilityResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteMany3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r DeleteMany3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteMany3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClients1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClients1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClients1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateMany2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientWithCurrencyDto +} + +// Status returns HTTPResponse.Status +func (r UpdateMany2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateMany2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create19Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ClientDto +} + +// Status returns HTTPResponse.Status +func (r Create19Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create19Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetArchivePermissionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ArchivePermissionDto +} + +// Status returns HTTPResponse.Status +func (r GetArchivePermissionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetArchivePermissionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HaveRelatedTasksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r HaveRelatedTasksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HaveRelatedTasksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientsOfIdsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClientsOfIdsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientsOfIdsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientsForInvoiceFilter1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClientsForInvoiceFilter1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientsForInvoiceFilter1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClients2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClients2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClients2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientsForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClientsForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientsForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientIdsForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetClientIdsForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientIdsForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeOffPoliciesAndHolidaysForClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffPolicyHolidayForClients +} + +// Status returns HTTPResponse.Status +func (r GetTimeOffPoliciesAndHolidaysForClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeOffPoliciesAndHolidaysForClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete17Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClientDto +} + +// Status returns HTTPResponse.Status +func (r Delete17Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete17Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClientResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectsArchivePermissionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r GetProjectsArchivePermissionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectsArchivePermissionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update10Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ClientWithCurrencyDto +} + +// Status returns HTTPResponse.Status +func (r Update10Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update10Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetCostRate2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r SetCostRate2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetCostRate2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCouponResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SubscriptionCouponDto +} + +// Status returns HTTPResponse.Status +func (r GetCouponResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCouponResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkspaceCurrenciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CurrencyDto +} + +// Status returns HTTPResponse.Status +func (r GetWorkspaceCurrenciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkspaceCurrenciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateCurrencyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CurrencyDto +} + +// Status returns HTTPResponse.Status +func (r CreateCurrencyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateCurrencyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveCurrencyResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemoveCurrencyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveCurrencyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCurrencyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *string +} + +// Status returns HTTPResponse.Status +func (r GetCurrencyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCurrencyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCurrencyCodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CurrencyDto +} + +// Status returns HTTPResponse.Status +func (r UpdateCurrencyCodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCurrencyCodeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetCurrencyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r SetCurrencyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetCurrencyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type OfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CustomFieldDto +} + +// Status returns HTTPResponse.Status +func (r OfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r OfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create18Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CustomFieldDto +} + +// Status returns HTTPResponse.Status +func (r Create18Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create18Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type OfWorkspaceWithRequiredAvailabilityResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CustomFieldRequiredAvailabilityDto +} + +// Status returns HTTPResponse.Status +func (r OfWorkspaceWithRequiredAvailabilityResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r OfWorkspaceWithRequiredAvailabilityResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete16Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r Delete16Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete16Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomFieldDto +} + +// Status returns HTTPResponse.Status +func (r EditResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveDefaultValueOfProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomFieldDto +} + +// Status returns HTTPResponse.Status +func (r RemoveDefaultValueOfProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveDefaultValueOfProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditDefaultValuesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomFieldDto +} + +// Status returns HTTPResponse.Status +func (r EditDefaultValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditDefaultValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOfProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CustomFieldDto +} + +// Status returns HTTPResponse.Status +func (r GetOfProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOfProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCustomLabelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r UpdateCustomLabelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCustomLabelsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddEmailResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AddEmailResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddEmailResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteManyExpensesResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteManyExpensesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteManyExpensesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetExpensesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpensesAndTotalsDto +} + +// Status returns HTTPResponse.Status +func (r GetExpensesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetExpensesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateExpenseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ExpenseDto +} + +// Status returns HTTPResponse.Status +func (r CreateExpenseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateExpenseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCategoriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpenseCategoriesWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetCategoriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCategoriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create17Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ExpenseCategoryDto +} + +// Status returns HTTPResponse.Status +func (r Create17Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create17Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCategoriesByIdsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ExpenseCategoryDto +} + +// Status returns HTTPResponse.Status +func (r GetCategoriesByIdsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCategoriesByIdsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteCategoryResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteCategoryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCategoryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCategoryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpenseCategoryDto +} + +// Status returns HTTPResponse.Status +func (r UpdateCategoryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCategoryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateStatus1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpenseCategoryDto +} + +// Status returns HTTPResponse.Status +func (r UpdateStatus1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateStatus1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetExpensesInDateRangeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ExpenseHydratedDto +} + +// Status returns HTTPResponse.Status +func (r GetExpensesInDateRangeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetExpensesInDateRangeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateInvoicedStatus1Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateInvoicedStatus1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateInvoicedStatus1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RestoreManyExpensesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ExpenseDto +} + +// Status returns HTTPResponse.Status +func (r RestoreManyExpensesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RestoreManyExpensesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteExpenseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpenseDeletedDto +} + +// Status returns HTTPResponse.Status +func (r DeleteExpenseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteExpenseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetExpenseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpenseDto +} + +// Status returns HTTPResponse.Status +func (r GetExpenseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetExpenseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateExpenseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ExpenseWithApprovalRequestUpdatedDto +} + +// Status returns HTTPResponse.Status +func (r UpdateExpenseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateExpenseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DownloadFileResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]byte +} + +// Status returns HTTPResponse.Status +func (r DownloadFileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadFileResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ImportFileDataResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ImportFileDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ImportFileDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CheckUsersForImportResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CheckUsersResponse +} + +// Status returns HTTPResponse.Status +func (r CheckUsersForImportResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CheckUsersForImportResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetHolidaysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]HolidayDto +} + +// Status returns HTTPResponse.Status +func (r GetHolidaysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetHolidaysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create16Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *HolidayDto +} + +// Status returns HTTPResponse.Status +func (r Create16Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create16Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete15Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *HolidayDto +} + +// Status returns HTTPResponse.Status +func (r Delete15Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete15Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update9Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *HolidayDto +} + +// Status returns HTTPResponse.Status +func (r Update9Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update9Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetHourlyRate2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r SetHourlyRate2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetHourlyRate2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvitedEmailsInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvitedEmailsInfo +} + +// Status returns HTTPResponse.Status +func (r GetInvitedEmailsInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvitedEmailsInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoiceEmailTemplatesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]InvoiceEmailTemplateDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoiceEmailTemplatesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoiceEmailTemplatesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpsertInvoiceEmailTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceEmailTemplateDto +} + +// Status returns HTTPResponse.Status +func (r UpsertInvoiceEmailTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpsertInvoiceEmailTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoiceEmailDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceEmailDataDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoiceEmailDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoiceEmailDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SendInvoiceEmailResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r SendInvoiceEmailResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SendInvoiceEmailResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreateInvoiceDto +} + +// Status returns HTTPResponse.Status +func (r CreateInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllCompaniesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CompanyDto +} + +// Status returns HTTPResponse.Status +func (r GetAllCompaniesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllCompaniesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateCompanyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CompanyDto +} + +// Status returns HTTPResponse.Status +func (r CreateCompanyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateCompanyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCompaniesInWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateCompaniesInWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCompaniesInWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CountAllCompaniesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r CountAllCompaniesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CountAllCompaniesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientsForInvoiceFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CompanyDto +} + +// Status returns HTTPResponse.Status +func (r GetClientsForInvoiceFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientsForInvoiceFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteCompanyResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteCompanyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCompanyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCompanyByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CompanyDto +} + +// Status returns HTTPResponse.Status +func (r GetCompanyByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCompanyByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCompanyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CompanyDto +} + +// Status returns HTTPResponse.Status +func (r UpdateCompanyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCompanyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoicesInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceInfoResponseDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoicesInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoicesInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoiceItemTypesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]InvoiceItemTypeDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoiceItemTypesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoiceItemTypesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateInvoiceItemTypeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CreateInvoiceItemTypeDto +} + +// Status returns HTTPResponse.Status +func (r CreateInvoiceItemTypeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateInvoiceItemTypeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteInvoiceItemTypeResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteInvoiceItemTypeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteInvoiceItemTypeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateInvoiceItemTypeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceItemTypeDto +} + +// Status returns HTTPResponse.Status +func (r UpdateInvoiceItemTypeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateInvoiceItemTypeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNextInvoiceNumberResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NextInvoiceNumberDto +} + +// Status returns HTTPResponse.Status +func (r GetNextInvoiceNumberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNextInvoiceNumberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoicePermissionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoicePermissionsDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoicePermissionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoicePermissionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateInvoicePermissionsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateInvoicePermissionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateInvoicePermissionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CanUserManageInvoicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r CanUserManageInvoicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CanUserManageInvoicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoiceSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceSettingsDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoiceSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoiceSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateInvoiceSettingsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateInvoiceSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateInvoiceSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r UpdateInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DuplicateInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r DuplicateInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DuplicateInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ExportInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]byte +} + +// Status returns HTTPResponse.Status +func (r ExportInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExportInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ImportTimeAndExpensesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r ImportTimeAndExpensesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ImportTimeAndExpensesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddInvoiceItemResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceItemDto +} + +// Status returns HTTPResponse.Status +func (r AddInvoiceItemResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddInvoiceItemResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ReorderInvoiceItem1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]InvoiceItemDto +} + +// Status returns HTTPResponse.Status +func (r ReorderInvoiceItem1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ReorderInvoiceItem1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditInvoiceItemResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r EditInvoiceItemResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditInvoiceItemResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteInvoiceItemsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r DeleteInvoiceItemsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteInvoiceItemsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPaymentsForInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]InvoicePaymentDto +} + +// Status returns HTTPResponse.Status +func (r GetPaymentsForInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPaymentsForInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateInvoicePaymentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r CreateInvoicePaymentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateInvoicePaymentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeletePaymentByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *InvoiceOverviewDto +} + +// Status returns HTTPResponse.Status +func (r DeletePaymentByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeletePaymentByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ChangeInvoiceStatusResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ChangeInvoiceStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ChangeInvoiceStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AuthorizationCheckResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AuthorizationCheckResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AuthorizationCheckResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type IsAvailableResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r IsAvailableResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r IsAvailableResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type IsAvailable1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r IsAvailable1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r IsAvailable1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GeneratePinCodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PinCodeDto +} + +// Status returns HTTPResponse.Status +func (r GeneratePinCodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GeneratePinCodeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GeneratePinCodeForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PinCodeDto +} + +// Status returns HTTPResponse.Status +func (r GeneratePinCodeForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GeneratePinCodeForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserPinCodeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *KioskUserPinCodeDto +} + +// Status returns HTTPResponse.Status +func (r GetUserPinCodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserPinCodeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdatePinCodeResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdatePinCodeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdatePinCodeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetKiosksOfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *KioskHydratedWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetKiosksOfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetKiosksOfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create15Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *KioskDto +} + +// Status returns HTTPResponse.Status +func (r Create15Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create15Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateBreakDefaultsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]KioskDto +} + +// Status returns HTTPResponse.Status +func (r UpdateBreakDefaultsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateBreakDefaultsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTotalCountOfKiosksOnWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r GetTotalCountOfKiosksOnWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTotalCountOfKiosksOnWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateDefaultsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]KioskDto +} + +// Status returns HTTPResponse.Status +func (r UpdateDefaultsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateDefaultsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HasActiveKiosksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r HasActiveKiosksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HasActiveKiosksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWithProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]EntityIdNameDto +} + +// Status returns HTTPResponse.Status +func (r GetWithProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWithProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWithTaskResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]EntityIdNameDto +} + +// Status returns HTTPResponse.Status +func (r GetWithTaskResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWithTaskResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]EntityIdNameDto +} + +// Status returns HTTPResponse.Status +func (r GetForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWithoutDefaultsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]KioskDto +} + +// Status returns HTTPResponse.Status +func (r GetWithoutDefaultsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWithoutDefaultsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteKioskResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteKioskResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteKioskResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetKioskByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *KioskHydratedDto +} + +// Status returns HTTPResponse.Status +func (r GetKioskByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetKioskByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update8Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *KioskDto +} + +// Status returns HTTPResponse.Status +func (r Update8Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update8Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ExportAssigneesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]byte +} + +// Status returns HTTPResponse.Status +func (r ExportAssigneesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExportAssigneesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HasEntryInProgressResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r HasEntryInProgressResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HasEntryInProgressResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *KioskDto +} + +// Status returns HTTPResponse.Status +func (r UpdateStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AcknowledgeLegacyPlanNotificationsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AcknowledgeLegacyPlanNotificationsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AcknowledgeLegacyPlanNotificationsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLegacyPlanUpgradeDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *LegacyPlanUpgradeDataDto +} + +// Status returns HTTPResponse.Status +func (r GetLegacyPlanUpgradeDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLegacyPlanUpgradeDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddLimitedUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r AddLimitedUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddLimitedUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLimitedUsersCountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int32 +} + +// Status returns HTTPResponse.Status +func (r GetLimitedUsersCountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLimitedUsersCountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetMemberProfileResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MemberProfileDto +} + +// Status returns HTTPResponse.Status +func (r GetMemberProfileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetMemberProfileResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateMemberProfileResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MemberProfileDto +} + +// Status returns HTTPResponse.Status +func (r UpdateMemberProfileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateMemberProfileResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateMemberProfileWithAdditionalDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MemberProfileDto +} + +// Status returns HTTPResponse.Status +func (r UpdateMemberProfileWithAdditionalDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateMemberProfileWithAdditionalDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateMemberSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MemberProfileDto +} + +// Status returns HTTPResponse.Status +func (r UpdateMemberSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateMemberSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWeekStartResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *GetWeekStart200 +} +type GetWeekStart200 string + +// Status returns HTTPResponse.Status +func (r GetWeekStartResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWeekStartResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateMemberWorkingDaysAndCapacityResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MemberProfileDto +} + +// Status returns HTTPResponse.Status +func (r UpdateMemberWorkingDaysAndCapacityResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateMemberWorkingDaysAndCapacityResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetMembersCountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MembersCountDto +} + +// Status returns HTTPResponse.Status +func (r GetMembersCountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetMembersCountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FindNotInvitedEmailsInResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r FindNotInvitedEmailsInResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FindNotInvitedEmailsInResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationDto +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create14Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationDto +} + +// Status returns HTTPResponse.Status +func (r Create14Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create14Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrganizationNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationNameDto +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CheckAvailabilityOfDomainNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r CheckAvailabilityOfDomainNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CheckAvailabilityOfDomainNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationDto +} + +// Status returns HTTPResponse.Status +func (r DeleteOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateOrganizationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OrganizationDto +} + +// Status returns HTTPResponse.Status +func (r UpdateOrganizationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateOrganizationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLoginSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *LoginSettingsDto +} + +// Status returns HTTPResponse.Status +func (r GetLoginSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLoginSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOAuth2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOAuth2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOAuth2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrganizationOAuth2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OAuth2ConfigurationDto +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationOAuth2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationOAuth2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateOAuth2Configuration1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OAuth2ConfigurationDto +} + +// Status returns HTTPResponse.Status +func (r UpdateOAuth2Configuration1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateOAuth2Configuration1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TestOAuth2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r TestOAuth2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TestOAuth2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteSAML2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteSAML2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSAML2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrganizationSAML2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SAML2ConfigurationDto +} + +// Status returns HTTPResponse.Status +func (r GetOrganizationSAML2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrganizationSAML2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSAML2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SAML2ConfigurationDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSAML2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSAML2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TestSAML2ConfigurationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r TestSAML2ConfigurationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TestSAML2ConfigurationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllOrganizationsOfUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetAllOrganizationsOfUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllOrganizationsOfUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkspaceOwnerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OwnerIdResponse +} + +// Status returns HTTPResponse.Status +func (r GetWorkspaceOwnerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkspaceOwnerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TransferOwnershipResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r TransferOwnershipResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TransferOwnershipResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkspaceOwnerTimeZoneResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *OwnerTimeZoneResponse +} + +// Status returns HTTPResponse.Status +func (r GetWorkspaceOwnerTimeZoneResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkspaceOwnerTimeZoneResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CancelSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r CancelSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CancelSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ConfirmPaymentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r ConfirmPaymentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ConfirmPaymentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCustomerInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomerInformationDto +} + +// Status returns HTTPResponse.Status +func (r GetCustomerInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCustomerInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateCustomerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomerDto +} + +// Status returns HTTPResponse.Status +func (r CreateCustomerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateCustomerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCustomerResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateCustomerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCustomerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditInvoiceInformationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomerBillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r EditInvoiceInformationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditInvoiceInformationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditPaymentInformationResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomerPaymentInformationDto +} + +// Status returns HTTPResponse.Status +func (r EditPaymentInformationResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditPaymentInformationResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ExtendTrialResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ExtendTrialResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ExtendTrialResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFeatureSubscriptionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]FeatureSubscriptionsDto +} + +// Status returns HTTPResponse.Status +func (r GetFeatureSubscriptionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFeatureSubscriptionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type InitialUpgradeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UpgradePriceDto +} + +// Status returns HTTPResponse.Status +func (r InitialUpgradeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r InitialUpgradeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoiceInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomerBillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoiceInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoiceInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]StripeInvoiceDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoicesCountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]int64 +} + +// Status returns HTTPResponse.Status +func (r GetInvoicesCountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoicesCountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLastOpenInvoiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *StripeInvoicePayDto +} + +// Status returns HTTPResponse.Status +func (r GetLastOpenInvoiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLastOpenInvoiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInvoicesListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *StripeInvoicesDto +} + +// Status returns HTTPResponse.Status +func (r GetInvoicesListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInvoicesListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPaymentDateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r GetPaymentDateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPaymentDateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPaymentInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomerPaymentInformationDto +} + +// Status returns HTTPResponse.Status +func (r GetPaymentInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPaymentInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateSetupIntentForPaymentMethodResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SetupIntentDto +} + +// Status returns HTTPResponse.Status +func (r CreateSetupIntentForPaymentMethodResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSetupIntentForPaymentMethodResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PreviewUpgradeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UpgradePriceDto +} + +// Status returns HTTPResponse.Status +func (r PreviewUpgradeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PreviewUpgradeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ReactivateSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ReactivateSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ReactivateSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetScheduledInvoiceInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *NextCustomerInformationDto +} + +// Status returns HTTPResponse.Status +func (r GetScheduledInvoiceInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetScheduledInvoiceInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateUserSeatsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r UpdateUserSeatsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateUserSeatsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateSetupIntentForInitialSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SetupIntentDto +} + +// Status returns HTTPResponse.Status +func (r CreateSetupIntentForInitialSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSetupIntentForInitialSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r CreateSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillingInformationDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpgradePreCheckResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UpgradePreCheckDto +} + +// Status returns HTTPResponse.Status +func (r UpgradePreCheckResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpgradePreCheckResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteSubscriptionResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteSubscriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSubscriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TerminateTrialResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r TerminateTrialResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TerminateTrialResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type StartTrialResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r StartTrialResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r StartTrialResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WasRegionalEverAllowedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r WasRegionalEverAllowedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WasRegionalEverAllowedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FindForUserAndPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]BalanceHistoryDto +} + +// Status returns HTTPResponse.Status +func (r FindForUserAndPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FindForUserAndPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetClientsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectsByClientDto +} + +// Status returns HTTPResponse.Status +func (r GetClientsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetClientsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjects3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectFullDto +} + +// Status returns HTTPResponse.Status +func (r GetProjects3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjects3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectFavoritesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectFullDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectFavoritesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectFavoritesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTasks21Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TaskFullDto +} + +// Status returns HTTPResponse.Status +func (r GetTasks21Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTasks21Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RecalculateProjectStatus1Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RecalculateProjectStatus1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RecalculateProjectStatus1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectAndTaskResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TaskWithProjectDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectAndTaskResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectAndTaskResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteMany2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r DeleteMany2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteMany2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjects2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PageProjectDto +} + +// Status returns HTTPResponse.Status +func (r GetProjects2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjects2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateMany1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BulkProjectEditDto +} + +// Status returns HTTPResponse.Status +func (r UpdateMany1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateMany1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create12Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ProjectFullDto +} + +// Status returns HTTPResponse.Status +func (r Create12Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create12Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFilteredProjectsCountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int32 +} + +// Status returns HTTPResponse.Status +func (r GetFilteredProjectsCountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFilteredProjectsCountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFilteredProjectsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PageProjectDto +} + +// Status returns HTTPResponse.Status +func (r GetFilteredProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFilteredProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateFromTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ProjectFullDto +} + +// Status returns HTTPResponse.Status +func (r CreateFromTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateFromTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLastUsedProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetLastUsedProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLastUsedProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type LastUsedProject1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + union json.RawMessage + } +} + +// Status returns HTTPResponse.Status +func (r LastUsedProject1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r LastUsedProject1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectsListResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectsListResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectsListResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HasManagerRole1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r HasManagerRole1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HasManagerRole1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectsForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectsForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectsForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectIdsForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetProjectIdsForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectIdsForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTasksByIdsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetTasksByIdsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTasksByIdsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllTasksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetAllTasksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllTasksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTasksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetTasksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTasksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTasksForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TasksGroupedByProjectIdDto +} + +// Status returns HTTPResponse.Status +func (r GetTasksForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTasksForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTaskIdsForReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetTaskIdsForReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTaskIdsForReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeOffPoliciesAndHolidaysWithProjectsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffPolicyHolidayForProjects +} + +// Status returns HTTPResponse.Status +func (r GetTimeOffPoliciesAndHolidaysWithProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeOffPoliciesAndHolidaysWithProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLastUsedOfUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetLastUsedOfUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLastUsedOfUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPermissionsToUserForProjectsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r GetPermissionsToUserForProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPermissionsToUserForProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete13Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Delete13Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete13Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProject1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDto +} + +// Status returns HTTPResponse.Status +func (r GetProject1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProject1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update14Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Update14Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update14Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update6Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Update6Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update6Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetCostRate1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r SetCostRate1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetCostRate1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateEstimateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateEstimateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateEstimateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetHourlyRate1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r SetHourlyRate1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetHourlyRate1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HasManagerRoleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r HasManagerRoleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HasManagerRoleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAuthsForProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r GetAuthsForProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAuthsForProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RecalculateProjectStatusResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RecalculateProjectStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RecalculateProjectStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTasks1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetTasks1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTasks1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create13Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Create13Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create13Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTasksAssignedToUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetTasksAssignedToUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTasksAssignedToUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeOffPoliciesAndHolidaysWithTasksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffPolicyHolidayForTasks +} + +// Status returns HTTPResponse.Status +func (r GetTimeOffPoliciesAndHolidaysWithTasksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeOffPoliciesAndHolidaysWithTasksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update7Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Update7Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update7Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetCostRateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r SetCostRateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetCostRateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetHourlyRateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r SetHourlyRateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetHourlyRateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete14Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Delete14Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete14Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTaskAssignedToUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TaskDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetTaskAssignedToUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTaskAssignedToUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddUsers1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r AddUsers1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddUsers1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectStatus +} + +// Status returns HTTPResponse.Status +func (r GetStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveUserGroupMembershipResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r RemoveUserGroupMembershipResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveUserGroupMembershipResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsers4Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUsers4Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsers4Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddUsersCostRate1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r AddUsersCostRate1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddUsersCostRate1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddUsersHourlyRate1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r AddUsersHourlyRate1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddUsersHourlyRate1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveUserMembershipResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r RemoveUserMembershipResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveUserMembershipResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemovePermissionsToUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r RemovePermissionsToUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemovePermissionsToUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPermissionsToUser1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r GetPermissionsToUser1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPermissionsToUser1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddPermissionsToUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r AddPermissionsToUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddPermissionsToUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DisconnectResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DisconnectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DisconnectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ConnectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PumbleInitialConnectionDto +} + +// Status returns HTTPResponse.Status +func (r ConnectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ConnectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Connect1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PumbleConnectedDto +} + +// Status returns HTTPResponse.Status +func (r Connect1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Connect1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SyncClientsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *[]ClientDto +} + +// Status returns HTTPResponse.Status +func (r SyncClientsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SyncClientsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SyncProjectsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *[]ProjectDtoImpl +} + +// Status returns HTTPResponse.Status +func (r SyncProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SyncProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateProjectsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllRegionsForUserAccountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]RegionDto +} + +// Status returns HTTPResponse.Status +func (r GetAllRegionsForUserAccountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllRegionsForUserAccountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListOfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ReminderDto +} + +// Status returns HTTPResponse.Status +func (r ListOfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListOfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create11Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ReminderDto +} + +// Status returns HTTPResponse.Status +func (r Create11Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create11Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type OfWorkspaceIdAndUserIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ReminderDto +} + +// Status returns HTTPResponse.Status +func (r OfWorkspaceIdAndUserIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r OfWorkspaceIdAndUserIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete12Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r Delete12Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete12Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update5Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReminderDto +} + +// Status returns HTTPResponse.Status +func (r Update5Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update5Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDashboardInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MainReportDto +} + +// Status returns HTTPResponse.Status +func (r GetDashboardInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDashboardInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetMyMostTrackedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]MostTrackedDto +} + +// Status returns HTTPResponse.Status +func (r GetMyMostTrackedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetMyMostTrackedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamActivitiesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TeamActivityDto +} + +// Status returns HTTPResponse.Status +func (r GetTeamActivitiesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamActivitiesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAmountPreviewResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BillableAndCostAmountDto +} + +// Status returns HTTPResponse.Status +func (r GetAmountPreviewResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAmountPreviewResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDraftAssignmentsCountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *DraftAssignmentsCountDto +} + +// Status returns HTTPResponse.Status +func (r GetDraftAssignmentsCountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDraftAssignmentsCountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectTotalsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]SchedulingProjectsTotalsWithoutBillableDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectTotalsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectTotalsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFilteredProjectTotalsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]SchedulingProjectsTotalsWithoutBillableDto +} + +// Status returns HTTPResponse.Status +func (r GetFilteredProjectTotalsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFilteredProjectTotalsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectTotalsForSingleProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchedulingProjectsTotalsWithoutBillableDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectTotalsForSingleProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectTotalsForSingleProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectsForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchedulingProjectsDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectsForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectsForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PublishAssignmentsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PublishAssignmentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PublishAssignmentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateRecurringResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r CreateRecurringResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateRecurringResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete11Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r Delete11Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete11Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditRecurringResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r EditRecurringResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditRecurringResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditPeriodForRecurringResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r EditPeriodForRecurringResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditPeriodForRecurringResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditRecurringPeriodResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r EditRecurringPeriodResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditRecurringPeriodResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserTotalsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]SchedulingUsersTotalsWithoutBillableDto +} + +// Status returns HTTPResponse.Status +func (r GetUserTotalsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserTotalsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAssignmentsForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentHydratedDto +} + +// Status returns HTTPResponse.Status +func (r GetAssignmentsForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAssignmentsForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFilteredAssignmentsForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentHydratedDto +} + +// Status returns HTTPResponse.Status +func (r GetFilteredAssignmentsForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFilteredAssignmentsForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsers3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchedulingUsersBaseDto +} + +// Status returns HTTPResponse.Status +func (r GetUsers3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsers3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjects1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchedulingProjectsBaseDto +} + +// Status returns HTTPResponse.Status +func (r GetProjects1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjects1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemindToPublishResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemindToPublishResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemindToPublishResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserTotalsForSingleUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SchedulingUsersBaseDto +} + +// Status returns HTTPResponse.Status +func (r GetUserTotalsForSingleUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserTotalsForSingleUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Get3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r Get3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Get3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CopyAssignmentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r CopyAssignmentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CopyAssignmentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SplitAssignmentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r SplitAssignmentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SplitAssignmentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ShiftScheduleResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AssignmentDto +} + +// Status returns HTTPResponse.Status +func (r ShiftScheduleResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ShiftScheduleResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HideProjectResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HideProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HideProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ShowProjectResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ShowProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ShowProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type HideUserResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r HideUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r HideUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ShowUserResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r ShowUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ShowUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create10Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *MilestoneDto +} + +// Status returns HTTPResponse.Status +func (r Create10Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create10Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete10Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MilestoneDto +} + +// Status returns HTTPResponse.Status +func (r Delete10Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete10Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Get2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MilestoneDto +} + +// Status returns HTTPResponse.Status +func (r Get2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Get2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Edit1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MilestoneDto +} + +// Status returns HTTPResponse.Status +func (r Edit1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Edit1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditDateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MilestoneDto +} + +// Status returns HTTPResponse.Status +func (r EditDateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditDateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetProjectsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ProjectFullDto +} + +// Status returns HTTPResponse.Status +func (r GetProjectsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetProjectsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsers2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsers2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsers2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersAssignedToProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersAssignedToProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersAssignedToProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSidebarConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SidebarResponseDto +} + +// Status returns HTTPResponse.Status +func (r GetSidebarConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSidebarConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateSidebarResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *SidebarResponseDto +} + +// Status returns HTTPResponse.Status +func (r UpdateSidebarResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateSidebarResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FilterUsersByStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PtoTeamMemberDto +} + +// Status returns HTTPResponse.Status +func (r FilterUsersByStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FilterUsersByStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete9Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r Delete9Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete9Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type StopResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r StopResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r StopResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type StartResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r StartResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r StartResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteMany1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TagDto +} + +// Status returns HTTPResponse.Status +func (r DeleteMany1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteMany1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTagsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TagDto +} + +// Status returns HTTPResponse.Status +func (r GetTagsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTagsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateManyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TagDto +} + +// Status returns HTTPResponse.Status +func (r UpdateManyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateManyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create9Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TagDto +} + +// Status returns HTTPResponse.Status +func (r Create9Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create9Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ConnectedToApprovedEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r ConnectedToApprovedEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ConnectedToApprovedEntriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTagsOfIdsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TagDto +} + +// Status returns HTTPResponse.Status +func (r GetTagsOfIdsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTagsOfIdsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTagIdsByNameAndStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetTagIdsByNameAndStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTagIdsByNameAndStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete8Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TagDto +} + +// Status returns HTTPResponse.Status +func (r Delete8Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete8Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update4Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TagDto +} + +// Status returns HTTPResponse.Status +func (r Update4Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update4Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTemplatesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TemplateFullWithEntitiesFullDto +} + +// Status returns HTTPResponse.Status +func (r GetTemplatesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTemplatesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create8Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TemplateDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Create8Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create8Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete7Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TemplateDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Delete7Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete7Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTemplateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TemplateDto +} + +// Status returns HTTPResponse.Status +func (r GetTemplateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTemplateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update13Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TemplateDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Update13Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update13Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ActivateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CopiedEntriesDto +} + +// Status returns HTTPResponse.Status +func (r ActivateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ActivateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeactivateResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeactivateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeactivateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CopyTimeEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CopiedEntriesDto +} + +// Status returns HTTPResponse.Status +func (r CopyTimeEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CopyTimeEntriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ContinueTimeEntryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r ContinueTimeEntryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ContinueTimeEntryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamMembersOfAdminResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PtoTeamMembersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetTeamMembersOfAdminResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamMembersOfAdminResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetBalancesForPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BalancesWithCount +} + +// Status returns HTTPResponse.Status +func (r GetBalancesForPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetBalancesForPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateBalanceResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateBalanceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateBalanceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetBalancesForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *BalancesWithCount +} + +// Status returns HTTPResponse.Status +func (r GetBalancesForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetBalancesForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamMembersOfManagerResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PtoTeamMembersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetTeamMembersOfManagerResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamMembersOfManagerResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FindPoliciesForWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PolicyDto +} + +// Status returns HTTPResponse.Status +func (r FindPoliciesForWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FindPoliciesForWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreatePolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *PolicyDto +} + +// Status returns HTTPResponse.Status +func (r CreatePolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreatePolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPolicyAssignmentForCurrentUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PolicyAssignmentFullDto +} + +// Status returns HTTPResponse.Status +func (r GetPolicyAssignmentForCurrentUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPolicyAssignmentForCurrentUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAssignmentsDistributionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TeamPolicyAssignmentsDistribution +} + +// Status returns HTTPResponse.Status +func (r GetTeamAssignmentsDistributionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAssignmentsDistributionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPolicyAssignmentsForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PolicyAssignmentFullDto +} + +// Status returns HTTPResponse.Status +func (r GetPolicyAssignmentsForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPolicyAssignmentsForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type FindPoliciesForUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PolicyDto +} + +// Status returns HTTPResponse.Status +func (r FindPoliciesForUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r FindPoliciesForUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeletePolicyResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeletePolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeletePolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdatePolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PolicyDto +} + +// Status returns HTTPResponse.Status +func (r UpdatePolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdatePolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ArchiveResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PolicyDto +} + +// Status returns HTTPResponse.Status +func (r ArchiveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ArchiveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RestoreResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PolicyDto +} + +// Status returns HTTPResponse.Status +func (r RestoreResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RestoreResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PolicyDto +} + +// Status returns HTTPResponse.Status +func (r GetPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create7Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestFullDto +} + +// Status returns HTTPResponse.Status +func (r Create7Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create7Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete6Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestDto +} + +// Status returns HTTPResponse.Status +func (r Delete6Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete6Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ApproveResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestDto +} + +// Status returns HTTPResponse.Status +func (r ApproveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ApproveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RejectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestDto +} + +// Status returns HTTPResponse.Status +func (r RejectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RejectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateForOther1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestFullDto +} + +// Status returns HTTPResponse.Status +func (r CreateForOther1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateForOther1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Get1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestsWithCountDto +} + +// Status returns HTTPResponse.Status +func (r Get1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Get1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeOffRequestByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeOffRequestFullDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeOffRequestByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeOffRequestByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllUsersOfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PtoTeamMembersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetAllUsersOfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllUsersOfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroupsOfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PtoTeamMembersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUserGroupsOfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroupsOfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersOfWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *PtoTeamMembersAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersOfWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersOfWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimelineUsersDto +} + +// Status returns HTTPResponse.Status +func (r GetResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimelineForReportsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimelineUsersDto +} + +// Status returns HTTPResponse.Status +func (r GetTimelineForReportsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimelineForReportsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteManyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryUpdatedDto +} + +// Status returns HTTPResponse.Status +func (r DeleteManyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteManyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntriesBySearchValueResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryRecentlyUsedDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntriesBySearchValueResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntriesBySearchValueResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create6Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Create6Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create6Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchTimeEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r PatchTimeEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchTimeEntriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EndStartedResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r EndStartedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EndStartedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetMultipleTimeEntriesByIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetMultipleTimeEntriesByIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetMultipleTimeEntriesByIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateFull1Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r CreateFull1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateFull1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntryInProgressResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntryInProgressResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntryInProgressResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateInvoicedStatusResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r UpdateInvoicedStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateInvoicedStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListOfProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r ListOfProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListOfProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntriesRecentlyUsedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryRecentlyUsedDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntriesRecentlyUsedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntriesRecentlyUsedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RestoreTimeEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r RestoreTimeEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RestoreTimeEntriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateForManyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryWithUsernameDto +} + +// Status returns HTTPResponse.Status +func (r CreateForManyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateForManyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateForOthersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntrySummaryDto +} + +// Status returns HTTPResponse.Status +func (r CreateForOthersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateForOthersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListOfFullResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TeamMemberInfoDto +} + +// Status returns HTTPResponse.Status +func (r ListOfFullResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListOfFullResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AssertTimeEntriesExistInDateRangeResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r AssertTimeEntriesExistInDateRangeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AssertTimeEntriesExistInDateRangeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateFullResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r CreateFullResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateFullResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntriesInRangeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntriesInRangeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntriesInRangeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntriesForTimesheetResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntriesForTimesheetResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntriesForTimesheetResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryUpdatedDto +} + +// Status returns HTTPResponse.Status +func (r PatchResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r Update3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntryAttributesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]CustomAttributeDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntryAttributesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntryAttributesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateTimeEntryAttributeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CustomAttributeDto +} + +// Status returns HTTPResponse.Status +func (r CreateTimeEntryAttributeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTimeEntryAttributeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteTimeEntryAttributeResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *CustomAttributeDto +} + +// Status returns HTTPResponse.Status +func (r DeleteTimeEntryAttributeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteTimeEntryAttributeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateBillableResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateBillableResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateBillableResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateDescriptionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateDescriptionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateDescriptionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateEndResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateEndResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateEndResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateFullResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r UpdateFullResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateFullResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveProjectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r RemoveProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateProjectAndTaskResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateProjectAndTaskResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateProjectAndTaskResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateAndSplitResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateAndSplitResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAndSplitResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SplitTimeEntryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *[]TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r SplitTimeEntryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SplitTimeEntryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateStartResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateStartResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateStartResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateTagsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateTagsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTagsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveTaskResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r RemoveTaskResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveTaskResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateTimeIntervalResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryUpdatedDto +} + +// Status returns HTTPResponse.Status +func (r UpdateTimeIntervalResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateTimeIntervalResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r UpdateUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete5Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryUpdatedDto +} + +// Status returns HTTPResponse.Status +func (r Delete5Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete5Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateCustomFieldResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *CustomFieldValueDto +} + +// Status returns HTTPResponse.Status +func (r UpdateCustomFieldResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateCustomFieldResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PenalizeCurrentTimerAndStartNewTimeEntryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r PenalizeCurrentTimerAndStartNewTimeEntryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PenalizeCurrentTimerAndStartNewTimeEntryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TransferWorkspaceDeprecatedFlowResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceTransferDto +} + +// Status returns HTTPResponse.Status +func (r TransferWorkspaceDeprecatedFlowResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TransferWorkspaceDeprecatedFlowResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TransferWorkspaceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceTransferDto +} + +// Status returns HTTPResponse.Status +func (r TransferWorkspaceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TransferWorkspaceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTrialActivationDataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TrialActivationDataDto +} + +// Status returns HTTPResponse.Status +func (r GetTrialActivationDataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTrialActivationDataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveMemberResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemoveMemberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveMemberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CopyTimeEntryCalendarDragResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r CopyTimeEntryCalendarDragResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CopyTimeEntryCalendarDragResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DuplicateTimeEntryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *TimeEntryDtoImpl +} + +// Status returns HTTPResponse.Status +func (r DuplicateTimeEntryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DuplicateTimeEntryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroups1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r GetUserGroups1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroups1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create5Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r Create5Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create5Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroups2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *GroupsAndCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUserGroups2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroups2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroupNamesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r GetUserGroupNamesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroupNamesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersForReportFilter1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersForReportFilter1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersForReportFilter1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroupForReportFilterPostResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUserGroupForReportFilterPostResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroupForReportFilterPostResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersForAttendanceReportFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ReportFilterUsersWithCountDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersForAttendanceReportFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersForAttendanceReportFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroupIdsByNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetUserGroupIdsByNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroupIdsByNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserGroupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r GetUserGroupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserGroupsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r RemoveUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddUsersToUserGroupsFilterResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r AddUsersToUserGroupsFilterResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddUsersToUserGroupsFilterResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete4Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r Delete4Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete4Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update2Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserGroupDto +} + +// Status returns HTTPResponse.Status +func (r Update2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsers1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]UserDto +} + +// Status returns HTTPResponse.Status +func (r GetUsers1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsers1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type AddUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r AddUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r AddUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetExpensesForUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ExpenseDto +} + +// Status returns HTTPResponse.Status +func (r GetExpensesForUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetExpensesForUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetMembershipsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r SetMembershipsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetMembershipsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ResendInviteResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r ResendInviteResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ResendInviteResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateDeprecatedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r CreateDeprecatedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateDeprecatedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetRequestsByUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ApprovalInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetRequestsByUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetRequestsByUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetApprovedTotalsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalPeriodTotalsDto +} + +// Status returns HTTPResponse.Status +func (r GetApprovedTotalsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetApprovedTotalsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateForOtherDeprecatedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r CreateForOtherDeprecatedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateForOtherDeprecatedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPreviewResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalPeriodTotalsDto +} + +// Status returns HTTPResponse.Status +func (r GetPreviewResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPreviewResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntryStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryApprovalStatusDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntryStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntryStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTimeEntryWeekStatusResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TimeEntryApprovalStatusDto +} + +// Status returns HTTPResponse.Status +func (r GetTimeEntryWeekStatusResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTimeEntryWeekStatusResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWeeklyRequestsByUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]ApprovalInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetWeeklyRequestsByUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWeeklyRequestsByUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WithdrawAllOfUserResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r WithdrawAllOfUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WithdrawAllOfUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WithdrawAllOfWorkspaceDeprecatedResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r WithdrawAllOfWorkspaceDeprecatedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WithdrawAllOfWorkspaceDeprecatedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WithdrawWeeklyOfUserResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r WithdrawWeeklyOfUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WithdrawWeeklyOfUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetCostRateForUser1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r SetCostRateForUser1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetCostRateForUser1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpsertUserCustomFieldValueResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *[]UserCustomFieldValueDto +} + +// Status returns HTTPResponse.Status +func (r UpsertUserCustomFieldValueResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpsertUserCustomFieldValueResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetFavoriteEntriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]FavoriteTimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r GetFavoriteEntriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetFavoriteEntriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateFavoriteTimeEntryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *FavoriteTimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r CreateFavoriteTimeEntryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateFavoriteTimeEntryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ReorderInvoiceItemResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]FavoriteTimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r ReorderInvoiceItemResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ReorderInvoiceItemResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r Delete3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Update1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *FavoriteTimeEntryFullDto +} + +// Status returns HTTPResponse.Status +func (r Update1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Update1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetHolidays1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]HolidayDto +} + +// Status returns HTTPResponse.Status +func (r GetHolidays1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetHolidays1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type SetHourlyRateForUser1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WorkspaceDto +} + +// Status returns HTTPResponse.Status +func (r SetHourlyRateForUser1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r SetHourlyRateForUser1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPermissionsToUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]AuthorizationDto +} + +// Status returns HTTPResponse.Status +func (r GetPermissionsToUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPermissionsToUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type RemoveFavoriteProjectResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r RemoveFavoriteProjectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r RemoveFavoriteProjectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete2Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r Delete2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create4Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ProjectFavoritesDto +} + +// Status returns HTTPResponse.Status +func (r Create4Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create4Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Delete1Response struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r Delete1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Delete1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create3Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *TaskFavoritesDto +} + +// Status returns HTTPResponse.Status +func (r Create3Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create3Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ReSubmitResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r ReSubmitResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ReSubmitResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserRolesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserRolesInfoDto +} + +// Status returns HTTPResponse.Status +func (r GetUserRolesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserRolesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateUserRolesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *UserRolesInfoDto +} + +// Status returns HTTPResponse.Status +func (r UpdateUserRolesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateUserRolesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create2Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r Create2Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create2Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateForOtherResponse struct { + Body []byte + HTTPResponse *http.Response + JSON201 *ApprovalRequestDto +} + +// Status returns HTTPResponse.Status +func (r CreateForOtherResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateForOtherResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkCapacityResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r GetWorkCapacityResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkCapacityResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWebhooksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WebhooksDto +} + +// Status returns HTTPResponse.Status +func (r GetWebhooksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWebhooksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type Create1Response struct { + Body []byte + HTTPResponse *http.Response + JSON201 *WebhookDto +} + +// Status returns HTTPResponse.Status +func (r Create1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r Create1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWebhookResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WebhookDto +} + +// Status returns HTTPResponse.Status +func (r GetWebhookResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWebhookResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type UpdateResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WebhookDto +} + +// Status returns HTTPResponse.Status +func (r UpdateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLogsForWebhook1Response struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]WebhookLogDto +} + +// Status returns HTTPResponse.Status +func (r GetLogsForWebhook1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLogsForWebhook1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLogCountResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *int64 +} + +// Status returns HTTPResponse.Status +func (r GetLogCountResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLogCountResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TriggerResendEventForWebhookResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r TriggerResendEventForWebhookResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TriggerResendEventForWebhookResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type TriggerTestEventForWebhookResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *bool +} + +// Status returns HTTPResponse.Status +func (r TriggerTestEventForWebhookResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r TriggerTestEventForWebhookResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GenerateNewTokenResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *WebhookDto +} + +// Status returns HTTPResponse.Status +func (r GenerateNewTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GenerateNewTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// GetInitialDataWithResponse request returning *GetInitialDataResponse +func (c *ClientWithResponses) GetInitialDataWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*GetInitialDataResponse, error) { + rsp, err := c.GetInitialData(ctx, reportId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInitialDataResponse(rsp) +} + +// DownloadReportWithBodyWithResponse request with arbitrary body returning *DownloadReportResponse +func (c *ClientWithResponses) DownloadReportWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error) { + rsp, err := c.DownloadReportWithBody(ctx, reportId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadReportResponse(rsp) +} + +func (c *ClientWithResponses) DownloadReportWithResponse(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error) { + rsp, err := c.DownloadReport(ctx, reportId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadReportResponse(rsp) +} + +// ResetPinWithResponse request returning *ResetPinResponse +func (c *ClientWithResponses) ResetPinWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*ResetPinResponse, error) { + rsp, err := c.ResetPin(ctx, reportId, reqEditors...) + if err != nil { + return nil, err + } + return ParseResetPinResponse(rsp) +} + +// ValidatePinWithBodyWithResponse request with arbitrary body returning *ValidatePinResponse +func (c *ClientWithResponses) ValidatePinWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error) { + rsp, err := c.ValidatePinWithBody(ctx, reportId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseValidatePinResponse(rsp) +} + +func (c *ClientWithResponses) ValidatePinWithResponse(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error) { + rsp, err := c.ValidatePin(ctx, reportId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseValidatePinResponse(rsp) +} + +// UpdateSmtpConfigurationWithBodyWithResponse request with arbitrary body returning *UpdateSmtpConfigurationResponse +func (c *ClientWithResponses) UpdateSmtpConfigurationWithBodyWithResponse(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error) { + rsp, err := c.UpdateSmtpConfigurationWithBody(ctx, systemSettingsId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSmtpConfigurationResponse(rsp) +} + +func (c *ClientWithResponses) UpdateSmtpConfigurationWithResponse(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error) { + rsp, err := c.UpdateSmtpConfiguration(ctx, systemSettingsId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSmtpConfigurationResponse(rsp) +} + +// DisableAccessToEntitiesInTransferWithBodyWithResponse request with arbitrary body returning *DisableAccessToEntitiesInTransferResponse +func (c *ClientWithResponses) DisableAccessToEntitiesInTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error) { + rsp, err := c.DisableAccessToEntitiesInTransferWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDisableAccessToEntitiesInTransferResponse(rsp) +} + +func (c *ClientWithResponses) DisableAccessToEntitiesInTransferWithResponse(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error) { + rsp, err := c.DisableAccessToEntitiesInTransfer(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDisableAccessToEntitiesInTransferResponse(rsp) +} + +// EnableAccessToEntitiesInTransferWithResponse request returning *EnableAccessToEntitiesInTransferResponse +func (c *ClientWithResponses) EnableAccessToEntitiesInTransferWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*EnableAccessToEntitiesInTransferResponse, error) { + rsp, err := c.EnableAccessToEntitiesInTransfer(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseEnableAccessToEntitiesInTransferResponse(rsp) +} + +// UsersExistWithBodyWithResponse request with arbitrary body returning *UsersExistResponse +func (c *ClientWithResponses) UsersExistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersExistResponse, error) { + rsp, err := c.UsersExistWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUsersExistResponse(rsp) +} + +func (c *ClientWithResponses) UsersExistWithResponse(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersExistResponse, error) { + rsp, err := c.UsersExist(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUsersExistResponse(rsp) +} + +// HandleCleanupOnSourceRegionWithResponse request returning *HandleCleanupOnSourceRegionResponse +func (c *ClientWithResponses) HandleCleanupOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleCleanupOnSourceRegionResponse, error) { + rsp, err := c.HandleCleanupOnSourceRegion(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHandleCleanupOnSourceRegionResponse(rsp) +} + +// HandleTransferCompletedOnSourceRegionWithResponse request returning *HandleTransferCompletedOnSourceRegionResponse +func (c *ClientWithResponses) HandleTransferCompletedOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleTransferCompletedOnSourceRegionResponse, error) { + rsp, err := c.HandleTransferCompletedOnSourceRegion(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHandleTransferCompletedOnSourceRegionResponse(rsp) +} + +// HandleTransferCompletedFailureWithBodyWithResponse request with arbitrary body returning *HandleTransferCompletedFailureResponse +func (c *ClientWithResponses) HandleTransferCompletedFailureWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error) { + rsp, err := c.HandleTransferCompletedFailureWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseHandleTransferCompletedFailureResponse(rsp) +} + +func (c *ClientWithResponses) HandleTransferCompletedFailureWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error) { + rsp, err := c.HandleTransferCompletedFailure(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseHandleTransferCompletedFailureResponse(rsp) +} + +// HandleTransferCompletedSuccessWithBodyWithResponse request with arbitrary body returning *HandleTransferCompletedSuccessResponse +func (c *ClientWithResponses) HandleTransferCompletedSuccessWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error) { + rsp, err := c.HandleTransferCompletedSuccessWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseHandleTransferCompletedSuccessResponse(rsp) +} + +func (c *ClientWithResponses) HandleTransferCompletedSuccessWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error) { + rsp, err := c.HandleTransferCompletedSuccess(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseHandleTransferCompletedSuccessResponse(rsp) +} + +// GetAllUsersWithResponse request returning *GetAllUsersResponse +func (c *ClientWithResponses) GetAllUsersWithResponse(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*GetAllUsersResponse, error) { + rsp, err := c.GetAllUsers(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllUsersResponse(rsp) +} + +// GetUserInfoWithBodyWithResponse request with arbitrary body returning *GetUserInfoResponse +func (c *ClientWithResponses) GetUserInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error) { + rsp, err := c.GetUserInfoWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserInfoResponse(rsp) +} + +func (c *ClientWithResponses) GetUserInfoWithResponse(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error) { + rsp, err := c.GetUserInfo(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserInfoResponse(rsp) +} + +// GetUserMembershipsAndInvitesWithBodyWithResponse request with arbitrary body returning *GetUserMembershipsAndInvitesResponse +func (c *ClientWithResponses) GetUserMembershipsAndInvitesWithBodyWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error) { + rsp, err := c.GetUserMembershipsAndInvitesWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserMembershipsAndInvitesResponse(rsp) +} + +func (c *ClientWithResponses) GetUserMembershipsAndInvitesWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error) { + rsp, err := c.GetUserMembershipsAndInvites(ctx, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserMembershipsAndInvitesResponse(rsp) +} + +// CheckForNewsletterSubscriptionWithResponse request returning *CheckForNewsletterSubscriptionResponse +func (c *ClientWithResponses) CheckForNewsletterSubscriptionWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*CheckForNewsletterSubscriptionResponse, error) { + rsp, err := c.CheckForNewsletterSubscription(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseCheckForNewsletterSubscriptionResponse(rsp) +} + +// AddNotificationsWithBodyWithResponse request with arbitrary body returning *AddNotificationsResponse +func (c *ClientWithResponses) AddNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNotificationsResponse, error) { + rsp, err := c.AddNotificationsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddNotificationsResponse(rsp) +} + +// GetNewsWithResponse request returning *GetNewsResponse +func (c *ClientWithResponses) GetNewsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNewsResponse, error) { + rsp, err := c.GetNews(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNewsResponse(rsp) +} + +// DeleteNewsWithResponse request returning *DeleteNewsResponse +func (c *ClientWithResponses) DeleteNewsWithResponse(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*DeleteNewsResponse, error) { + rsp, err := c.DeleteNews(ctx, newsId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteNewsResponse(rsp) +} + +// UpdateNewsWithBodyWithResponse request with arbitrary body returning *UpdateNewsResponse +func (c *ClientWithResponses) UpdateNewsWithBodyWithResponse(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNewsResponse, error) { + rsp, err := c.UpdateNewsWithBody(ctx, newsId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNewsResponse(rsp) +} + +// SearchAllUsersWithResponse request returning *SearchAllUsersResponse +func (c *ClientWithResponses) SearchAllUsersWithResponse(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*SearchAllUsersResponse, error) { + rsp, err := c.SearchAllUsers(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseSearchAllUsersResponse(rsp) +} + +// NumberOfUsersRegisteredWithResponse request returning *NumberOfUsersRegisteredResponse +func (c *ClientWithResponses) NumberOfUsersRegisteredWithResponse(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*NumberOfUsersRegisteredResponse, error) { + rsp, err := c.NumberOfUsersRegistered(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseNumberOfUsersRegisteredResponse(rsp) +} + +// GetUsersOnWorkspaceWithResponse request returning *GetUsersOnWorkspaceResponse +func (c *ClientWithResponses) GetUsersOnWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOnWorkspaceResponse, error) { + rsp, err := c.GetUsersOnWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOnWorkspaceResponse(rsp) +} + +// BulkEditUsersWithBodyWithResponse request with arbitrary body returning *BulkEditUsersResponse +func (c *ClientWithResponses) BulkEditUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error) { + rsp, err := c.BulkEditUsersWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseBulkEditUsersResponse(rsp) +} + +func (c *ClientWithResponses) BulkEditUsersWithResponse(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error) { + rsp, err := c.BulkEditUsers(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseBulkEditUsersResponse(rsp) +} + +// GetUsersOfWorkspace5WithResponse request returning *GetUsersOfWorkspace5Response +func (c *ClientWithResponses) GetUsersOfWorkspace5WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace5Response, error) { + rsp, err := c.GetUsersOfWorkspace5(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOfWorkspace5Response(rsp) +} + +// GetInfoWithBodyWithResponse request with arbitrary body returning *GetInfoResponse +func (c *ClientWithResponses) GetInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) { + rsp, err := c.GetInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInfoResponse(rsp) +} + +func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) { + rsp, err := c.GetInfo(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInfoResponse(rsp) +} + +// GetMembersInfoWithResponse request returning *GetMembersInfoResponse +func (c *ClientWithResponses) GetMembersInfoWithResponse(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*GetMembersInfoResponse, error) { + rsp, err := c.GetMembersInfo(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMembersInfoResponse(rsp) +} + +// GetUserNamesWithBodyWithResponse request with arbitrary body returning *GetUserNamesResponse +func (c *ClientWithResponses) GetUserNamesWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error) { + rsp, err := c.GetUserNamesWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserNamesResponse(rsp) +} + +func (c *ClientWithResponses) GetUserNamesWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error) { + rsp, err := c.GetUserNames(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserNamesResponse(rsp) +} + +// FindPoliciesToBeApprovedByUserWithResponse request returning *FindPoliciesToBeApprovedByUserResponse +func (c *ClientWithResponses) FindPoliciesToBeApprovedByUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*FindPoliciesToBeApprovedByUserResponse, error) { + rsp, err := c.FindPoliciesToBeApprovedByUser(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindPoliciesToBeApprovedByUserResponse(rsp) +} + +// GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse request returning *GetUsersAndUsersFromUserGroupsAssignedToProjectResponse +func (c *ClientWithResponses) GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAndUsersFromUserGroupsAssignedToProjectResponse, error) { + rsp, err := c.GetUsersAndUsersFromUserGroupsAssignedToProject(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersAndUsersFromUserGroupsAssignedToProjectResponse(rsp) +} + +// GetUsersForProjectMembersFilterWithBodyWithResponse request with arbitrary body returning *GetUsersForProjectMembersFilterResponse +func (c *ClientWithResponses) GetUsersForProjectMembersFilterWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error) { + rsp, err := c.GetUsersForProjectMembersFilterWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForProjectMembersFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetUsersForProjectMembersFilterWithResponse(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error) { + rsp, err := c.GetUsersForProjectMembersFilter(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForProjectMembersFilterResponse(rsp) +} + +// GetUsersForAttendanceReportFilter1WithBodyWithResponse request with arbitrary body returning *GetUsersForAttendanceReportFilter1Response +func (c *ClientWithResponses) GetUsersForAttendanceReportFilter1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error) { + rsp, err := c.GetUsersForAttendanceReportFilter1WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForAttendanceReportFilter1Response(rsp) +} + +func (c *ClientWithResponses) GetUsersForAttendanceReportFilter1WithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error) { + rsp, err := c.GetUsersForAttendanceReportFilter1(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForAttendanceReportFilter1Response(rsp) +} + +// GetUsersOfWorkspace4WithResponse request returning *GetUsersOfWorkspace4Response +func (c *ClientWithResponses) GetUsersOfWorkspace4WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace4Response, error) { + rsp, err := c.GetUsersOfWorkspace4(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOfWorkspace4Response(rsp) +} + +// GetUsersForReportFilterOldWithResponse request returning *GetUsersForReportFilterOldResponse +func (c *ClientWithResponses) GetUsersForReportFilterOldWithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterOldResponse, error) { + rsp, err := c.GetUsersForReportFilterOld(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForReportFilterOldResponse(rsp) +} + +// GetUsersForReportFilterWithBodyWithResponse request with arbitrary body returning *GetUsersForReportFilterResponse +func (c *ClientWithResponses) GetUsersForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error) { + rsp, err := c.GetUsersForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForReportFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetUsersForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error) { + rsp, err := c.GetUsersForReportFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForReportFilterResponse(rsp) +} + +// GetUsersOfUserGroupWithResponse request returning *GetUsersOfUserGroupResponse +func (c *ClientWithResponses) GetUsersOfUserGroupWithResponse(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*GetUsersOfUserGroupResponse, error) { + rsp, err := c.GetUsersOfUserGroup(ctx, workspaceId, userGroupId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOfUserGroupResponse(rsp) +} + +// GetUsersOfWorkspace3WithResponse request returning *GetUsersOfWorkspace3Response +func (c *ClientWithResponses) GetUsersOfWorkspace3WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace3Response, error) { + rsp, err := c.GetUsersOfWorkspace3(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOfWorkspace3Response(rsp) +} + +// GetUsersOfWorkspace2WithResponse request returning *GetUsersOfWorkspace2Response +func (c *ClientWithResponses) GetUsersOfWorkspace2WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace2Response, error) { + rsp, err := c.GetUsersOfWorkspace2(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOfWorkspace2Response(rsp) +} + +// GetUserWithResponse request returning *GetUserResponse +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserResponse(rsp) +} + +// UpdateTimeTrackingSettings1WithBodyWithResponse request with arbitrary body returning *UpdateTimeTrackingSettings1Response +func (c *ClientWithResponses) UpdateTimeTrackingSettings1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error) { + rsp, err := c.UpdateTimeTrackingSettings1WithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimeTrackingSettings1Response(rsp) +} + +func (c *ClientWithResponses) UpdateTimeTrackingSettings1WithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error) { + rsp, err := c.UpdateTimeTrackingSettings1(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimeTrackingSettings1Response(rsp) +} + +// UpdateDashboardSelectionWithBodyWithResponse request with arbitrary body returning *UpdateDashboardSelectionResponse +func (c *ClientWithResponses) UpdateDashboardSelectionWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error) { + rsp, err := c.UpdateDashboardSelectionWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDashboardSelectionResponse(rsp) +} + +func (c *ClientWithResponses) UpdateDashboardSelectionWithResponse(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error) { + rsp, err := c.UpdateDashboardSelection(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDashboardSelectionResponse(rsp) +} + +// SetDefaultWorkspaceWithResponse request returning *SetDefaultWorkspaceResponse +func (c *ClientWithResponses) SetDefaultWorkspaceWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*SetDefaultWorkspaceResponse, error) { + rsp, err := c.SetDefaultWorkspace(ctx, userId, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetDefaultWorkspaceResponse(rsp) +} + +// DeleteUserWithBodyWithResponse request with arbitrary body returning *DeleteUserResponse +func (c *ClientWithResponses) DeleteUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { + rsp, err := c.DeleteUserWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteUserResponse(rsp) +} + +func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { + rsp, err := c.DeleteUser(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteUserResponse(rsp) +} + +// ChangeEmailWithBodyWithResponse request with arbitrary body returning *ChangeEmailResponse +func (c *ClientWithResponses) ChangeEmailWithBodyWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error) { + rsp, err := c.ChangeEmailWithBody(ctx, userId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeEmailResponse(rsp) +} + +func (c *ClientWithResponses) ChangeEmailWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error) { + rsp, err := c.ChangeEmail(ctx, userId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeEmailResponse(rsp) +} + +// HasPendingEmailChangeWithResponse request returning *HasPendingEmailChangeResponse +func (c *ClientWithResponses) HasPendingEmailChangeWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*HasPendingEmailChangeResponse, error) { + rsp, err := c.HasPendingEmailChange(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHasPendingEmailChangeResponse(rsp) +} + +// UpdateLangWithBodyWithResponse request with arbitrary body returning *UpdateLangResponse +func (c *ClientWithResponses) UpdateLangWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error) { + rsp, err := c.UpdateLangWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateLangResponse(rsp) +} + +func (c *ClientWithResponses) UpdateLangWithResponse(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error) { + rsp, err := c.UpdateLang(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateLangResponse(rsp) +} + +// MarkAsRead1WithBodyWithResponse request with arbitrary body returning *MarkAsRead1Response +func (c *ClientWithResponses) MarkAsRead1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error) { + rsp, err := c.MarkAsRead1WithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMarkAsRead1Response(rsp) +} + +func (c *ClientWithResponses) MarkAsRead1WithResponse(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error) { + rsp, err := c.MarkAsRead1(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMarkAsRead1Response(rsp) +} + +// MarkAsReadWithBodyWithResponse request with arbitrary body returning *MarkAsReadResponse +func (c *ClientWithResponses) MarkAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error) { + rsp, err := c.MarkAsReadWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMarkAsReadResponse(rsp) +} + +func (c *ClientWithResponses) MarkAsReadWithResponse(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error) { + rsp, err := c.MarkAsRead(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMarkAsReadResponse(rsp) +} + +// ChangeNameAdminWithBodyWithResponse request with arbitrary body returning *ChangeNameAdminResponse +func (c *ClientWithResponses) ChangeNameAdminWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error) { + rsp, err := c.ChangeNameAdminWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeNameAdminResponse(rsp) +} + +func (c *ClientWithResponses) ChangeNameAdminWithResponse(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error) { + rsp, err := c.ChangeNameAdmin(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeNameAdminResponse(rsp) +} + +// GetNewsForUserWithResponse request returning *GetNewsForUserResponse +func (c *ClientWithResponses) GetNewsForUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetNewsForUserResponse, error) { + rsp, err := c.GetNewsForUser(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNewsForUserResponse(rsp) +} + +// ReadNewsWithBodyWithResponse request with arbitrary body returning *ReadNewsResponse +func (c *ClientWithResponses) ReadNewsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error) { + rsp, err := c.ReadNewsWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReadNewsResponse(rsp) +} + +func (c *ClientWithResponses) ReadNewsWithResponse(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error) { + rsp, err := c.ReadNews(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReadNewsResponse(rsp) +} + +// GetNotificationsWithResponse request returning *GetNotificationsResponse +func (c *ClientWithResponses) GetNotificationsWithResponse(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*GetNotificationsResponse, error) { + rsp, err := c.GetNotifications(ctx, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNotificationsResponse(rsp) +} + +// UpdatePictureWithBodyWithResponse request with arbitrary body returning *UpdatePictureResponse +func (c *ClientWithResponses) UpdatePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error) { + rsp, err := c.UpdatePictureWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePictureResponse(rsp) +} + +func (c *ClientWithResponses) UpdatePictureWithResponse(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error) { + rsp, err := c.UpdatePicture(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePictureResponse(rsp) +} + +// UpdateNameAndProfilePictureWithBodyWithResponse request with arbitrary body returning *UpdateNameAndProfilePictureResponse +func (c *ClientWithResponses) UpdateNameAndProfilePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error) { + rsp, err := c.UpdateNameAndProfilePictureWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNameAndProfilePictureResponse(rsp) +} + +func (c *ClientWithResponses) UpdateNameAndProfilePictureWithResponse(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error) { + rsp, err := c.UpdateNameAndProfilePicture(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateNameAndProfilePictureResponse(rsp) +} + +// UpdateSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSettingsResponse +func (c *ClientWithResponses) UpdateSettingsWithBodyWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { + rsp, err := c.UpdateSettingsWithBody(ctx, userId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSettingsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateSettingsWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) { + rsp, err := c.UpdateSettings(ctx, userId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSettingsResponse(rsp) +} + +// UpdateSummaryReportSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSummaryReportSettingsResponse +func (c *ClientWithResponses) UpdateSummaryReportSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error) { + rsp, err := c.UpdateSummaryReportSettingsWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSummaryReportSettingsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateSummaryReportSettingsWithResponse(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error) { + rsp, err := c.UpdateSummaryReportSettings(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSummaryReportSettingsResponse(rsp) +} + +// UpdateTimeTrackingSettingsWithBodyWithResponse request with arbitrary body returning *UpdateTimeTrackingSettingsResponse +func (c *ClientWithResponses) UpdateTimeTrackingSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error) { + rsp, err := c.UpdateTimeTrackingSettingsWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimeTrackingSettingsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateTimeTrackingSettingsWithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error) { + rsp, err := c.UpdateTimeTrackingSettings(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimeTrackingSettingsResponse(rsp) +} + +// UpdateTimezoneWithBodyWithResponse request with arbitrary body returning *UpdateTimezoneResponse +func (c *ClientWithResponses) UpdateTimezoneWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error) { + rsp, err := c.UpdateTimezoneWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimezoneResponse(rsp) +} + +func (c *ClientWithResponses) UpdateTimezoneWithResponse(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error) { + rsp, err := c.UpdateTimezone(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimezoneResponse(rsp) +} + +// GetVerificationCampaignNotificationsWithResponse request returning *GetVerificationCampaignNotificationsResponse +func (c *ClientWithResponses) GetVerificationCampaignNotificationsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetVerificationCampaignNotificationsResponse, error) { + rsp, err := c.GetVerificationCampaignNotifications(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetVerificationCampaignNotificationsResponse(rsp) +} + +// MarkNotificationsAsReadWithBodyWithResponse request with arbitrary body returning *MarkNotificationsAsReadResponse +func (c *ClientWithResponses) MarkNotificationsAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error) { + rsp, err := c.MarkNotificationsAsReadWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMarkNotificationsAsReadResponse(rsp) +} + +func (c *ClientWithResponses) MarkNotificationsAsReadWithResponse(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error) { + rsp, err := c.MarkNotificationsAsRead(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseMarkNotificationsAsReadResponse(rsp) +} + +// GetWorkCapacityForUserWithResponse request returning *GetWorkCapacityForUserResponse +func (c *ClientWithResponses) GetWorkCapacityForUserWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityForUserResponse, error) { + rsp, err := c.GetWorkCapacityForUser(ctx, userId, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkCapacityForUserResponse(rsp) +} + +// GetUsersWorkingDaysWithResponse request returning *GetUsersWorkingDaysResponse +func (c *ClientWithResponses) GetUsersWorkingDaysWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsersWorkingDaysResponse, error) { + rsp, err := c.GetUsersWorkingDays(ctx, userId, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersWorkingDaysResponse(rsp) +} + +// UploadImageWithBodyWithResponse request with arbitrary body returning *UploadImageResponse +func (c *ClientWithResponses) UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) { + rsp, err := c.UploadImageWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUploadImageResponse(rsp) +} + +// GetAllUnfinishedWalkthroughTypesWithResponse request returning *GetAllUnfinishedWalkthroughTypesResponse +func (c *ClientWithResponses) GetAllUnfinishedWalkthroughTypesWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetAllUnfinishedWalkthroughTypesResponse, error) { + rsp, err := c.GetAllUnfinishedWalkthroughTypes(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllUnfinishedWalkthroughTypesResponse(rsp) +} + +// FinishWalkthroughWithBodyWithResponse request with arbitrary body returning *FinishWalkthroughResponse +func (c *ClientWithResponses) FinishWalkthroughWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error) { + rsp, err := c.FinishWalkthroughWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFinishWalkthroughResponse(rsp) +} + +func (c *ClientWithResponses) FinishWalkthroughWithResponse(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error) { + rsp, err := c.FinishWalkthrough(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFinishWalkthroughResponse(rsp) +} + +// GetOwnerEmailByWorkspaceIdWithResponse request returning *GetOwnerEmailByWorkspaceIdResponse +func (c *ClientWithResponses) GetOwnerEmailByWorkspaceIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOwnerEmailByWorkspaceIdResponse, error) { + rsp, err := c.GetOwnerEmailByWorkspaceId(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOwnerEmailByWorkspaceIdResponse(rsp) +} + +// GetWorkspacesOfUserWithResponse request returning *GetWorkspacesOfUserResponse +func (c *ClientWithResponses) GetWorkspacesOfUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspacesOfUserResponse, error) { + rsp, err := c.GetWorkspacesOfUser(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkspacesOfUserResponse(rsp) +} + +// CreateWithBodyWithResponse request with arbitrary body returning *CreateResponse +func (c *ClientWithResponses) CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error) { + rsp, err := c.CreateWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateResponse(rsp) +} + +func (c *ClientWithResponses) CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error) { + rsp, err := c.Create(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateResponse(rsp) +} + +// GetWorkspaceInfoWithResponse request returning *GetWorkspaceInfoResponse +func (c *ClientWithResponses) GetWorkspaceInfoWithResponse(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*GetWorkspaceInfoResponse, error) { + rsp, err := c.GetWorkspaceInfo(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkspaceInfoResponse(rsp) +} + +// InsertLegacyPlanNotificationsWithBodyWithResponse request with arbitrary body returning *InsertLegacyPlanNotificationsResponse +func (c *ClientWithResponses) InsertLegacyPlanNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error) { + rsp, err := c.InsertLegacyPlanNotificationsWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseInsertLegacyPlanNotificationsResponse(rsp) +} + +func (c *ClientWithResponses) InsertLegacyPlanNotificationsWithResponse(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error) { + rsp, err := c.InsertLegacyPlanNotifications(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseInsertLegacyPlanNotificationsResponse(rsp) +} + +// GetPermissionsToUserForWorkspacesWithBodyWithResponse request with arbitrary body returning *GetPermissionsToUserForWorkspacesResponse +func (c *ClientWithResponses) GetPermissionsToUserForWorkspacesWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error) { + rsp, err := c.GetPermissionsToUserForWorkspacesWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPermissionsToUserForWorkspacesResponse(rsp) +} + +func (c *ClientWithResponses) GetPermissionsToUserForWorkspacesWithResponse(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error) { + rsp, err := c.GetPermissionsToUserForWorkspaces(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPermissionsToUserForWorkspacesResponse(rsp) +} + +// LeaveWorkspaceWithResponse request returning *LeaveWorkspaceResponse +func (c *ClientWithResponses) LeaveWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*LeaveWorkspaceResponse, error) { + rsp, err := c.LeaveWorkspace(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseLeaveWorkspaceResponse(rsp) +} + +// GetWorkspaceByIdWithResponse request returning *GetWorkspaceByIdResponse +func (c *ClientWithResponses) GetWorkspaceByIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceByIdResponse, error) { + rsp, err := c.GetWorkspaceById(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkspaceByIdResponse(rsp) +} + +// UpdateWorkspaceWithBodyWithResponse request with arbitrary body returning *UpdateWorkspaceResponse +func (c *ClientWithResponses) UpdateWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error) { + rsp, err := c.UpdateWorkspaceWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateWorkspaceResponse(rsp) +} + +func (c *ClientWithResponses) UpdateWorkspaceWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error) { + rsp, err := c.UpdateWorkspace(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateWorkspaceResponse(rsp) +} + +// GetABTestingWithResponse request returning *GetABTestingResponse +func (c *ClientWithResponses) GetABTestingWithResponse(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*GetABTestingResponse, error) { + rsp, err := c.GetABTesting(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetABTestingResponse(rsp) +} + +// GetActiveMembersWithResponse request returning *GetActiveMembersResponse +func (c *ClientWithResponses) GetActiveMembersWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetActiveMembersResponse, error) { + rsp, err := c.GetActiveMembers(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetActiveMembersResponse(rsp) +} + +// UninstallWithBodyWithResponse request with arbitrary body returning *UninstallResponse +func (c *ClientWithResponses) UninstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UninstallResponse, error) { + rsp, err := c.UninstallWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUninstallResponse(rsp) +} + +func (c *ClientWithResponses) UninstallWithResponse(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*UninstallResponse, error) { + rsp, err := c.Uninstall(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUninstallResponse(rsp) +} + +// GetInstalledAddonsWithResponse request returning *GetInstalledAddonsResponse +func (c *ClientWithResponses) GetInstalledAddonsWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsResponse, error) { + rsp, err := c.GetInstalledAddons(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInstalledAddonsResponse(rsp) +} + +// InstallWithBodyWithResponse request with arbitrary body returning *InstallResponse +func (c *ClientWithResponses) InstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallResponse, error) { + rsp, err := c.InstallWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseInstallResponse(rsp) +} + +func (c *ClientWithResponses) InstallWithResponse(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallResponse, error) { + rsp, err := c.Install(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseInstallResponse(rsp) +} + +// GetInstalledAddonsIdNamePairWithResponse request returning *GetInstalledAddonsIdNamePairResponse +func (c *ClientWithResponses) GetInstalledAddonsIdNamePairWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsIdNamePairResponse, error) { + rsp, err := c.GetInstalledAddonsIdNamePair(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInstalledAddonsIdNamePairResponse(rsp) +} + +// GetInstalledAddonsByKeysWithBodyWithResponse request with arbitrary body returning *GetInstalledAddonsByKeysResponse +func (c *ClientWithResponses) GetInstalledAddonsByKeysWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error) { + rsp, err := c.GetInstalledAddonsByKeysWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInstalledAddonsByKeysResponse(rsp) +} + +func (c *ClientWithResponses) GetInstalledAddonsByKeysWithResponse(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error) { + rsp, err := c.GetInstalledAddonsByKeys(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInstalledAddonsByKeysResponse(rsp) +} + +// Uninstall1WithResponse request returning *Uninstall1Response +func (c *ClientWithResponses) Uninstall1WithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*Uninstall1Response, error) { + rsp, err := c.Uninstall1(ctx, workspaceId, addonId, reqEditors...) + if err != nil { + return nil, err + } + return ParseUninstall1Response(rsp) +} + +// GetAddonByIdWithResponse request returning *GetAddonByIdResponse +func (c *ClientWithResponses) GetAddonByIdWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonByIdResponse, error) { + rsp, err := c.GetAddonById(ctx, workspaceId, addonId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAddonByIdResponse(rsp) +} + +// UpdateSettings1WithBodyWithResponse request with arbitrary body returning *UpdateSettings1Response +func (c *ClientWithResponses) UpdateSettings1WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error) { + rsp, err := c.UpdateSettings1WithBody(ctx, workspaceId, addonId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSettings1Response(rsp) +} + +func (c *ClientWithResponses) UpdateSettings1WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error) { + rsp, err := c.UpdateSettings1(ctx, workspaceId, addonId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSettings1Response(rsp) +} + +// UpdateStatus3WithBodyWithResponse request with arbitrary body returning *UpdateStatus3Response +func (c *ClientWithResponses) UpdateStatus3WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error) { + rsp, err := c.UpdateStatus3WithBody(ctx, workspaceId, addonId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatus3Response(rsp) +} + +func (c *ClientWithResponses) UpdateStatus3WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error) { + rsp, err := c.UpdateStatus3(ctx, workspaceId, addonId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatus3Response(rsp) +} + +// GetAddonUserJWTWithResponse request returning *GetAddonUserJWTResponse +func (c *ClientWithResponses) GetAddonUserJWTWithResponse(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*GetAddonUserJWTResponse, error) { + rsp, err := c.GetAddonUserJWT(ctx, workspaceId, addonId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAddonUserJWTResponse(rsp) +} + +// GetAddonWebhooksWithResponse request returning *GetAddonWebhooksResponse +func (c *ClientWithResponses) GetAddonWebhooksWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonWebhooksResponse, error) { + rsp, err := c.GetAddonWebhooks(ctx, workspaceId, addonId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAddonWebhooksResponse(rsp) +} + +// RemoveUninstalledAddonWithResponse request returning *RemoveUninstalledAddonResponse +func (c *ClientWithResponses) RemoveUninstalledAddonWithResponse(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*RemoveUninstalledAddonResponse, error) { + rsp, err := c.RemoveUninstalledAddon(ctx, workspaceId, addonKey, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveUninstalledAddonResponse(rsp) +} + +// ListOfWorkspace1WithResponse request returning *ListOfWorkspace1Response +func (c *ClientWithResponses) ListOfWorkspace1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspace1Response, error) { + rsp, err := c.ListOfWorkspace1(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseListOfWorkspace1Response(rsp) +} + +// Create20WithBodyWithResponse request with arbitrary body returning *Create20Response +func (c *ClientWithResponses) Create20WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create20Response, error) { + rsp, err := c.Create20WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate20Response(rsp) +} + +func (c *ClientWithResponses) Create20WithResponse(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*Create20Response, error) { + rsp, err := c.Create20(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate20Response(rsp) +} + +// Delete18WithResponse request returning *Delete18Response +func (c *ClientWithResponses) Delete18WithResponse(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*Delete18Response, error) { + rsp, err := c.Delete18(ctx, workspaceId, alertId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete18Response(rsp) +} + +// Update11WithBodyWithResponse request with arbitrary body returning *Update11Response +func (c *ClientWithResponses) Update11WithBodyWithResponse(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update11Response, error) { + rsp, err := c.Update11WithBody(ctx, workspaceId, alertId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate11Response(rsp) +} + +func (c *ClientWithResponses) Update11WithResponse(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*Update11Response, error) { + rsp, err := c.Update11(ctx, workspaceId, alertId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate11Response(rsp) +} + +// GetAllowedUpdatesWithResponse request returning *GetAllowedUpdatesResponse +func (c *ClientWithResponses) GetAllowedUpdatesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllowedUpdatesResponse, error) { + rsp, err := c.GetAllowedUpdates(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllowedUpdatesResponse(rsp) +} + +// ApproveRequestsWithBodyWithResponse request with arbitrary body returning *ApproveRequestsResponse +func (c *ClientWithResponses) ApproveRequestsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error) { + rsp, err := c.ApproveRequestsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseApproveRequestsResponse(rsp) +} + +func (c *ClientWithResponses) ApproveRequestsWithResponse(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error) { + rsp, err := c.ApproveRequests(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseApproveRequestsResponse(rsp) +} + +// CountWithBodyWithResponse request with arbitrary body returning *CountResponse +func (c *ClientWithResponses) CountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CountResponse, error) { + rsp, err := c.CountWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCountResponse(rsp) +} + +func (c *ClientWithResponses) CountWithResponse(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*CountResponse, error) { + rsp, err := c.Count(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCountResponse(rsp) +} + +// HasPendingWithResponse request returning *HasPendingResponse +func (c *ClientWithResponses) HasPendingWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasPendingResponse, error) { + rsp, err := c.HasPending(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHasPendingResponse(rsp) +} + +// RemindManagersToApproveWithBodyWithResponse request with arbitrary body returning *RemindManagersToApproveResponse +func (c *ClientWithResponses) RemindManagersToApproveWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error) { + rsp, err := c.RemindManagersToApproveWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemindManagersToApproveResponse(rsp) +} + +func (c *ClientWithResponses) RemindManagersToApproveWithResponse(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error) { + rsp, err := c.RemindManagersToApprove(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemindManagersToApproveResponse(rsp) +} + +// RemindUsersToSubmitWithBodyWithResponse request with arbitrary body returning *RemindUsersToSubmitResponse +func (c *ClientWithResponses) RemindUsersToSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error) { + rsp, err := c.RemindUsersToSubmitWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemindUsersToSubmitResponse(rsp) +} + +func (c *ClientWithResponses) RemindUsersToSubmitWithResponse(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error) { + rsp, err := c.RemindUsersToSubmit(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemindUsersToSubmitResponse(rsp) +} + +// GetApprovalGroupsWithBodyWithResponse request with arbitrary body returning *GetApprovalGroupsResponse +func (c *ClientWithResponses) GetApprovalGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error) { + rsp, err := c.GetApprovalGroupsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovalGroupsResponse(rsp) +} + +func (c *ClientWithResponses) GetApprovalGroupsWithResponse(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error) { + rsp, err := c.GetApprovalGroups(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovalGroupsResponse(rsp) +} + +// GetUnsubmittedSummariesWithBodyWithResponse request with arbitrary body returning *GetUnsubmittedSummariesResponse +func (c *ClientWithResponses) GetUnsubmittedSummariesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error) { + rsp, err := c.GetUnsubmittedSummariesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUnsubmittedSummariesResponse(rsp) +} + +func (c *ClientWithResponses) GetUnsubmittedSummariesWithResponse(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error) { + rsp, err := c.GetUnsubmittedSummaries(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUnsubmittedSummariesResponse(rsp) +} + +// WithdrawAllOfWorkspaceWithResponse request returning *WithdrawAllOfWorkspaceResponse +func (c *ClientWithResponses) WithdrawAllOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceResponse, error) { + rsp, err := c.WithdrawAllOfWorkspace(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseWithdrawAllOfWorkspaceResponse(rsp) +} + +// GetRequestsByWorkspaceWithResponse request returning *GetRequestsByWorkspaceResponse +func (c *ClientWithResponses) GetRequestsByWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetRequestsByWorkspaceResponse, error) { + rsp, err := c.GetRequestsByWorkspace(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRequestsByWorkspaceResponse(rsp) +} + +// GetApprovalRequestWithResponse request returning *GetApprovalRequestResponse +func (c *ClientWithResponses) GetApprovalRequestWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalRequestResponse, error) { + rsp, err := c.GetApprovalRequest(ctx, workspaceId, approvalRequestId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovalRequestResponse(rsp) +} + +// UpdateStatus2WithBodyWithResponse request with arbitrary body returning *UpdateStatus2Response +func (c *ClientWithResponses) UpdateStatus2WithBodyWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error) { + rsp, err := c.UpdateStatus2WithBody(ctx, workspaceId, approvalRequestId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatus2Response(rsp) +} + +func (c *ClientWithResponses) UpdateStatus2WithResponse(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error) { + rsp, err := c.UpdateStatus2(ctx, workspaceId, approvalRequestId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatus2Response(rsp) +} + +// GetApprovalDashboardWithResponse request returning *GetApprovalDashboardResponse +func (c *ClientWithResponses) GetApprovalDashboardWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDashboardResponse, error) { + rsp, err := c.GetApprovalDashboard(ctx, workspaceId, approvalRequestId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovalDashboardResponse(rsp) +} + +// GetApprovalDetailsWithResponse request returning *GetApprovalDetailsResponse +func (c *ClientWithResponses) GetApprovalDetailsWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDetailsResponse, error) { + rsp, err := c.GetApprovalDetails(ctx, workspaceId, approvalRequestId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovalDetailsResponse(rsp) +} + +// FetchCustomAttributesWithBodyWithResponse request with arbitrary body returning *FetchCustomAttributesResponse +func (c *ClientWithResponses) FetchCustomAttributesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error) { + rsp, err := c.FetchCustomAttributesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFetchCustomAttributesResponse(rsp) +} + +func (c *ClientWithResponses) FetchCustomAttributesWithResponse(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error) { + rsp, err := c.FetchCustomAttributes(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFetchCustomAttributesResponse(rsp) +} + +// CheckWorkspaceTransferPossibilityWithResponse request returning *CheckWorkspaceTransferPossibilityResponse +func (c *ClientWithResponses) CheckWorkspaceTransferPossibilityWithResponse(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*CheckWorkspaceTransferPossibilityResponse, error) { + rsp, err := c.CheckWorkspaceTransferPossibility(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseCheckWorkspaceTransferPossibilityResponse(rsp) +} + +// DeleteMany3WithBodyWithResponse request with arbitrary body returning *DeleteMany3Response +func (c *ClientWithResponses) DeleteMany3WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error) { + rsp, err := c.DeleteMany3WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteMany3Response(rsp) +} + +func (c *ClientWithResponses) DeleteMany3WithResponse(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error) { + rsp, err := c.DeleteMany3(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteMany3Response(rsp) +} + +// GetClients1WithResponse request returning *GetClients1Response +func (c *ClientWithResponses) GetClients1WithResponse(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*GetClients1Response, error) { + rsp, err := c.GetClients1(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClients1Response(rsp) +} + +// UpdateMany2WithBodyWithResponse request with arbitrary body returning *UpdateMany2Response +func (c *ClientWithResponses) UpdateMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error) { + rsp, err := c.UpdateMany2WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMany2Response(rsp) +} + +func (c *ClientWithResponses) UpdateMany2WithResponse(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error) { + rsp, err := c.UpdateMany2(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMany2Response(rsp) +} + +// Create19WithBodyWithResponse request with arbitrary body returning *Create19Response +func (c *ClientWithResponses) Create19WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create19Response, error) { + rsp, err := c.Create19WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate19Response(rsp) +} + +func (c *ClientWithResponses) Create19WithResponse(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*Create19Response, error) { + rsp, err := c.Create19(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate19Response(rsp) +} + +// GetArchivePermissionsWithBodyWithResponse request with arbitrary body returning *GetArchivePermissionsResponse +func (c *ClientWithResponses) GetArchivePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error) { + rsp, err := c.GetArchivePermissionsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetArchivePermissionsResponse(rsp) +} + +func (c *ClientWithResponses) GetArchivePermissionsWithResponse(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error) { + rsp, err := c.GetArchivePermissions(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetArchivePermissionsResponse(rsp) +} + +// HaveRelatedTasksWithBodyWithResponse request with arbitrary body returning *HaveRelatedTasksResponse +func (c *ClientWithResponses) HaveRelatedTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error) { + rsp, err := c.HaveRelatedTasksWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseHaveRelatedTasksResponse(rsp) +} + +func (c *ClientWithResponses) HaveRelatedTasksWithResponse(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error) { + rsp, err := c.HaveRelatedTasks(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseHaveRelatedTasksResponse(rsp) +} + +// GetClientsOfIdsWithBodyWithResponse request with arbitrary body returning *GetClientsOfIdsResponse +func (c *ClientWithResponses) GetClientsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error) { + rsp, err := c.GetClientsOfIdsWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientsOfIdsResponse(rsp) +} + +func (c *ClientWithResponses) GetClientsOfIdsWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error) { + rsp, err := c.GetClientsOfIds(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientsOfIdsResponse(rsp) +} + +// GetClientsForInvoiceFilter1WithResponse request returning *GetClientsForInvoiceFilter1Response +func (c *ClientWithResponses) GetClientsForInvoiceFilter1WithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilter1Response, error) { + rsp, err := c.GetClientsForInvoiceFilter1(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientsForInvoiceFilter1Response(rsp) +} + +// GetClients2WithResponse request returning *GetClients2Response +func (c *ClientWithResponses) GetClients2WithResponse(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*GetClients2Response, error) { + rsp, err := c.GetClients2(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClients2Response(rsp) +} + +// GetClientsForReportFilterWithResponse request returning *GetClientsForReportFilterResponse +func (c *ClientWithResponses) GetClientsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForReportFilterResponse, error) { + rsp, err := c.GetClientsForReportFilter(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientsForReportFilterResponse(rsp) +} + +// GetClientIdsForReportFilterWithResponse request returning *GetClientIdsForReportFilterResponse +func (c *ClientWithResponses) GetClientIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientIdsForReportFilterResponse, error) { + rsp, err := c.GetClientIdsForReportFilter(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientIdsForReportFilterResponse(rsp) +} + +// GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse request with arbitrary body returning *GetTimeOffPoliciesAndHolidaysForClientResponse +func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) { + rsp, err := c.GetTimeOffPoliciesAndHolidaysForClientWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffPoliciesAndHolidaysForClientResponse(rsp) +} + +func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysForClientWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) { + rsp, err := c.GetTimeOffPoliciesAndHolidaysForClient(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffPoliciesAndHolidaysForClientResponse(rsp) +} + +// Delete17WithResponse request returning *Delete17Response +func (c *ClientWithResponses) Delete17WithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*Delete17Response, error) { + rsp, err := c.Delete17(ctx, workspaceId, clientId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete17Response(rsp) +} + +// GetClientWithResponse request returning *GetClientResponse +func (c *ClientWithResponses) GetClientWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetClientResponse, error) { + rsp, err := c.GetClient(ctx, workspaceId, clientId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientResponse(rsp) +} + +// GetProjectsArchivePermissionsWithResponse request returning *GetProjectsArchivePermissionsResponse +func (c *ClientWithResponses) GetProjectsArchivePermissionsWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetProjectsArchivePermissionsResponse, error) { + rsp, err := c.GetProjectsArchivePermissions(ctx, workspaceId, clientId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectsArchivePermissionsResponse(rsp) +} + +// Update10WithBodyWithResponse request with arbitrary body returning *Update10Response +func (c *ClientWithResponses) Update10WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update10Response, error) { + rsp, err := c.Update10WithBody(ctx, workspaceId, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate10Response(rsp) +} + +func (c *ClientWithResponses) Update10WithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*Update10Response, error) { + rsp, err := c.Update10(ctx, workspaceId, id, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate10Response(rsp) +} + +// SetCostRate2WithBodyWithResponse request with arbitrary body returning *SetCostRate2Response +func (c *ClientWithResponses) SetCostRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error) { + rsp, err := c.SetCostRate2WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRate2Response(rsp) +} + +func (c *ClientWithResponses) SetCostRate2WithResponse(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error) { + rsp, err := c.SetCostRate2(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRate2Response(rsp) +} + +// GetCouponWithResponse request returning *GetCouponResponse +func (c *ClientWithResponses) GetCouponWithResponse(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*GetCouponResponse, error) { + rsp, err := c.GetCoupon(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCouponResponse(rsp) +} + +// GetWorkspaceCurrenciesWithResponse request returning *GetWorkspaceCurrenciesResponse +func (c *ClientWithResponses) GetWorkspaceCurrenciesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceCurrenciesResponse, error) { + rsp, err := c.GetWorkspaceCurrencies(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkspaceCurrenciesResponse(rsp) +} + +// CreateCurrencyWithBodyWithResponse request with arbitrary body returning *CreateCurrencyResponse +func (c *ClientWithResponses) CreateCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error) { + rsp, err := c.CreateCurrencyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCurrencyResponse(rsp) +} + +func (c *ClientWithResponses) CreateCurrencyWithResponse(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error) { + rsp, err := c.CreateCurrency(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCurrencyResponse(rsp) +} + +// RemoveCurrencyWithResponse request returning *RemoveCurrencyResponse +func (c *ClientWithResponses) RemoveCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*RemoveCurrencyResponse, error) { + rsp, err := c.RemoveCurrency(ctx, workspaceId, currencyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveCurrencyResponse(rsp) +} + +// GetCurrencyWithResponse request returning *GetCurrencyResponse +func (c *ClientWithResponses) GetCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*GetCurrencyResponse, error) { + rsp, err := c.GetCurrency(ctx, workspaceId, currencyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCurrencyResponse(rsp) +} + +// UpdateCurrencyCodeWithBodyWithResponse request with arbitrary body returning *UpdateCurrencyCodeResponse +func (c *ClientWithResponses) UpdateCurrencyCodeWithBodyWithResponse(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error) { + rsp, err := c.UpdateCurrencyCodeWithBody(ctx, workspaceId, currencyId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCurrencyCodeResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCurrencyCodeWithResponse(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error) { + rsp, err := c.UpdateCurrencyCode(ctx, workspaceId, currencyId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCurrencyCodeResponse(rsp) +} + +// SetCurrencyWithBodyWithResponse request with arbitrary body returning *SetCurrencyResponse +func (c *ClientWithResponses) SetCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error) { + rsp, err := c.SetCurrencyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCurrencyResponse(rsp) +} + +func (c *ClientWithResponses) SetCurrencyWithResponse(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error) { + rsp, err := c.SetCurrency(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCurrencyResponse(rsp) +} + +// OfWorkspaceWithResponse request returning *OfWorkspaceResponse +func (c *ClientWithResponses) OfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*OfWorkspaceResponse, error) { + rsp, err := c.OfWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseOfWorkspaceResponse(rsp) +} + +// Create18WithBodyWithResponse request with arbitrary body returning *Create18Response +func (c *ClientWithResponses) Create18WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create18Response, error) { + rsp, err := c.Create18WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate18Response(rsp) +} + +func (c *ClientWithResponses) Create18WithResponse(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*Create18Response, error) { + rsp, err := c.Create18(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate18Response(rsp) +} + +// OfWorkspaceWithRequiredAvailabilityWithResponse request returning *OfWorkspaceWithRequiredAvailabilityResponse +func (c *ClientWithResponses) OfWorkspaceWithRequiredAvailabilityWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*OfWorkspaceWithRequiredAvailabilityResponse, error) { + rsp, err := c.OfWorkspaceWithRequiredAvailability(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseOfWorkspaceWithRequiredAvailabilityResponse(rsp) +} + +// Delete16WithResponse request returning *Delete16Response +func (c *ClientWithResponses) Delete16WithResponse(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*Delete16Response, error) { + rsp, err := c.Delete16(ctx, workspaceId, customFieldId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete16Response(rsp) +} + +// EditWithBodyWithResponse request with arbitrary body returning *EditResponse +func (c *ClientWithResponses) EditWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditResponse, error) { + rsp, err := c.EditWithBody(ctx, workspaceId, customFieldId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditResponse(rsp) +} + +func (c *ClientWithResponses) EditWithResponse(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*EditResponse, error) { + rsp, err := c.Edit(ctx, workspaceId, customFieldId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditResponse(rsp) +} + +// RemoveDefaultValueOfProjectWithResponse request returning *RemoveDefaultValueOfProjectResponse +func (c *ClientWithResponses) RemoveDefaultValueOfProjectWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveDefaultValueOfProjectResponse, error) { + rsp, err := c.RemoveDefaultValueOfProject(ctx, workspaceId, customFieldId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveDefaultValueOfProjectResponse(rsp) +} + +// EditDefaultValuesWithBodyWithResponse request with arbitrary body returning *EditDefaultValuesResponse +func (c *ClientWithResponses) EditDefaultValuesWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error) { + rsp, err := c.EditDefaultValuesWithBody(ctx, workspaceId, customFieldId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditDefaultValuesResponse(rsp) +} + +func (c *ClientWithResponses) EditDefaultValuesWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error) { + rsp, err := c.EditDefaultValues(ctx, workspaceId, customFieldId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditDefaultValuesResponse(rsp) +} + +// GetOfProjectWithResponse request returning *GetOfProjectResponse +func (c *ClientWithResponses) GetOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*GetOfProjectResponse, error) { + rsp, err := c.GetOfProject(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOfProjectResponse(rsp) +} + +// UpdateCustomLabelsWithBodyWithResponse request with arbitrary body returning *UpdateCustomLabelsResponse +func (c *ClientWithResponses) UpdateCustomLabelsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error) { + rsp, err := c.UpdateCustomLabelsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomLabelsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCustomLabelsWithResponse(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error) { + rsp, err := c.UpdateCustomLabels(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomLabelsResponse(rsp) +} + +// AddEmailWithBodyWithResponse request with arbitrary body returning *AddEmailResponse +func (c *ClientWithResponses) AddEmailWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEmailResponse, error) { + rsp, err := c.AddEmailWithBody(ctx, workspaceId, userId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddEmailResponse(rsp) +} + +func (c *ClientWithResponses) AddEmailWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEmailResponse, error) { + rsp, err := c.AddEmail(ctx, workspaceId, userId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddEmailResponse(rsp) +} + +// DeleteManyExpensesWithBodyWithResponse request with arbitrary body returning *DeleteManyExpensesResponse +func (c *ClientWithResponses) DeleteManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error) { + rsp, err := c.DeleteManyExpensesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteManyExpensesResponse(rsp) +} + +func (c *ClientWithResponses) DeleteManyExpensesWithResponse(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error) { + rsp, err := c.DeleteManyExpenses(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteManyExpensesResponse(rsp) +} + +// GetExpensesWithResponse request returning *GetExpensesResponse +func (c *ClientWithResponses) GetExpensesWithResponse(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*GetExpensesResponse, error) { + rsp, err := c.GetExpenses(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetExpensesResponse(rsp) +} + +// CreateExpenseWithBodyWithResponse request with arbitrary body returning *CreateExpenseResponse +func (c *ClientWithResponses) CreateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExpenseResponse, error) { + rsp, err := c.CreateExpenseWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateExpenseResponse(rsp) +} + +// GetCategoriesWithResponse request returning *GetCategoriesResponse +func (c *ClientWithResponses) GetCategoriesWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*GetCategoriesResponse, error) { + rsp, err := c.GetCategories(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCategoriesResponse(rsp) +} + +// Create17WithBodyWithResponse request with arbitrary body returning *Create17Response +func (c *ClientWithResponses) Create17WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create17Response, error) { + rsp, err := c.Create17WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate17Response(rsp) +} + +func (c *ClientWithResponses) Create17WithResponse(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*Create17Response, error) { + rsp, err := c.Create17(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate17Response(rsp) +} + +// GetCategoriesByIdsWithResponse request returning *GetCategoriesByIdsResponse +func (c *ClientWithResponses) GetCategoriesByIdsWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*GetCategoriesByIdsResponse, error) { + rsp, err := c.GetCategoriesByIds(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCategoriesByIdsResponse(rsp) +} + +// DeleteCategoryWithResponse request returning *DeleteCategoryResponse +func (c *ClientWithResponses) DeleteCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*DeleteCategoryResponse, error) { + rsp, err := c.DeleteCategory(ctx, workspaceId, categoryId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteCategoryResponse(rsp) +} + +// UpdateCategoryWithBodyWithResponse request with arbitrary body returning *UpdateCategoryResponse +func (c *ClientWithResponses) UpdateCategoryWithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error) { + rsp, err := c.UpdateCategoryWithBody(ctx, workspaceId, categoryId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCategoryResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error) { + rsp, err := c.UpdateCategory(ctx, workspaceId, categoryId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCategoryResponse(rsp) +} + +// UpdateStatus1WithBodyWithResponse request with arbitrary body returning *UpdateStatus1Response +func (c *ClientWithResponses) UpdateStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error) { + rsp, err := c.UpdateStatus1WithBody(ctx, workspaceId, categoryId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatus1Response(rsp) +} + +func (c *ClientWithResponses) UpdateStatus1WithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error) { + rsp, err := c.UpdateStatus1(ctx, workspaceId, categoryId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatus1Response(rsp) +} + +// GetExpensesInDateRangeWithResponse request returning *GetExpensesInDateRangeResponse +func (c *ClientWithResponses) GetExpensesInDateRangeWithResponse(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*GetExpensesInDateRangeResponse, error) { + rsp, err := c.GetExpensesInDateRange(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetExpensesInDateRangeResponse(rsp) +} + +// UpdateInvoicedStatus1WithBodyWithResponse request with arbitrary body returning *UpdateInvoicedStatus1Response +func (c *ClientWithResponses) UpdateInvoicedStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error) { + rsp, err := c.UpdateInvoicedStatus1WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoicedStatus1Response(rsp) +} + +func (c *ClientWithResponses) UpdateInvoicedStatus1WithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error) { + rsp, err := c.UpdateInvoicedStatus1(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoicedStatus1Response(rsp) +} + +// RestoreManyExpensesWithBodyWithResponse request with arbitrary body returning *RestoreManyExpensesResponse +func (c *ClientWithResponses) RestoreManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error) { + rsp, err := c.RestoreManyExpensesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRestoreManyExpensesResponse(rsp) +} + +func (c *ClientWithResponses) RestoreManyExpensesWithResponse(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error) { + rsp, err := c.RestoreManyExpenses(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRestoreManyExpensesResponse(rsp) +} + +// DeleteExpenseWithResponse request returning *DeleteExpenseResponse +func (c *ClientWithResponses) DeleteExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*DeleteExpenseResponse, error) { + rsp, err := c.DeleteExpense(ctx, workspaceId, expenseId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteExpenseResponse(rsp) +} + +// GetExpenseWithResponse request returning *GetExpenseResponse +func (c *ClientWithResponses) GetExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*GetExpenseResponse, error) { + rsp, err := c.GetExpense(ctx, workspaceId, expenseId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetExpenseResponse(rsp) +} + +// UpdateExpenseWithBodyWithResponse request with arbitrary body returning *UpdateExpenseResponse +func (c *ClientWithResponses) UpdateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExpenseResponse, error) { + rsp, err := c.UpdateExpenseWithBody(ctx, workspaceId, expenseId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateExpenseResponse(rsp) +} + +// DownloadFileWithResponse request returning *DownloadFileResponse +func (c *ClientWithResponses) DownloadFileWithResponse(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*DownloadFileResponse, error) { + rsp, err := c.DownloadFile(ctx, workspaceId, expenseId, fileId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadFileResponse(rsp) +} + +// ImportFileDataWithBodyWithResponse request with arbitrary body returning *ImportFileDataResponse +func (c *ClientWithResponses) ImportFileDataWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error) { + rsp, err := c.ImportFileDataWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseImportFileDataResponse(rsp) +} + +func (c *ClientWithResponses) ImportFileDataWithResponse(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error) { + rsp, err := c.ImportFileData(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseImportFileDataResponse(rsp) +} + +// CheckUsersForImportWithResponse request returning *CheckUsersForImportResponse +func (c *ClientWithResponses) CheckUsersForImportWithResponse(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*CheckUsersForImportResponse, error) { + rsp, err := c.CheckUsersForImport(ctx, workspaceId, fileImportId, reqEditors...) + if err != nil { + return nil, err + } + return ParseCheckUsersForImportResponse(rsp) +} + +// GetHolidaysWithResponse request returning *GetHolidaysResponse +func (c *ClientWithResponses) GetHolidaysWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetHolidaysResponse, error) { + rsp, err := c.GetHolidays(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetHolidaysResponse(rsp) +} + +// Create16WithBodyWithResponse request with arbitrary body returning *Create16Response +func (c *ClientWithResponses) Create16WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create16Response, error) { + rsp, err := c.Create16WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate16Response(rsp) +} + +func (c *ClientWithResponses) Create16WithResponse(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*Create16Response, error) { + rsp, err := c.Create16(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate16Response(rsp) +} + +// Delete15WithResponse request returning *Delete15Response +func (c *ClientWithResponses) Delete15WithResponse(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*Delete15Response, error) { + rsp, err := c.Delete15(ctx, workspaceId, holidayId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete15Response(rsp) +} + +// Update9WithBodyWithResponse request with arbitrary body returning *Update9Response +func (c *ClientWithResponses) Update9WithBodyWithResponse(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update9Response, error) { + rsp, err := c.Update9WithBody(ctx, workspaceId, holidayId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate9Response(rsp) +} + +func (c *ClientWithResponses) Update9WithResponse(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*Update9Response, error) { + rsp, err := c.Update9(ctx, workspaceId, holidayId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate9Response(rsp) +} + +// SetHourlyRate2WithBodyWithResponse request with arbitrary body returning *SetHourlyRate2Response +func (c *ClientWithResponses) SetHourlyRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error) { + rsp, err := c.SetHourlyRate2WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRate2Response(rsp) +} + +func (c *ClientWithResponses) SetHourlyRate2WithResponse(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error) { + rsp, err := c.SetHourlyRate2(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRate2Response(rsp) +} + +// GetInvitedEmailsInfoWithBodyWithResponse request with arbitrary body returning *GetInvitedEmailsInfoResponse +func (c *ClientWithResponses) GetInvitedEmailsInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error) { + rsp, err := c.GetInvitedEmailsInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvitedEmailsInfoResponse(rsp) +} + +func (c *ClientWithResponses) GetInvitedEmailsInfoWithResponse(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error) { + rsp, err := c.GetInvitedEmailsInfo(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvitedEmailsInfoResponse(rsp) +} + +// GetInvoiceEmailTemplatesWithResponse request returning *GetInvoiceEmailTemplatesResponse +func (c *ClientWithResponses) GetInvoiceEmailTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*GetInvoiceEmailTemplatesResponse, error) { + rsp, err := c.GetInvoiceEmailTemplates(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoiceEmailTemplatesResponse(rsp) +} + +// UpsertInvoiceEmailTemplateWithBodyWithResponse request with arbitrary body returning *UpsertInvoiceEmailTemplateResponse +func (c *ClientWithResponses) UpsertInvoiceEmailTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error) { + rsp, err := c.UpsertInvoiceEmailTemplateWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpsertInvoiceEmailTemplateResponse(rsp) +} + +func (c *ClientWithResponses) UpsertInvoiceEmailTemplateWithResponse(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error) { + rsp, err := c.UpsertInvoiceEmailTemplate(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpsertInvoiceEmailTemplateResponse(rsp) +} + +// GetInvoiceEmailDataWithResponse request returning *GetInvoiceEmailDataResponse +func (c *ClientWithResponses) GetInvoiceEmailDataWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*GetInvoiceEmailDataResponse, error) { + rsp, err := c.GetInvoiceEmailData(ctx, workspaceId, invoiceId, invoiceEmailTemplateType, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoiceEmailDataResponse(rsp) +} + +// SendInvoiceEmailWithBodyWithResponse request with arbitrary body returning *SendInvoiceEmailResponse +func (c *ClientWithResponses) SendInvoiceEmailWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error) { + rsp, err := c.SendInvoiceEmailWithBody(ctx, workspaceId, invoiceId, invoiceEmailTemplateType, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendInvoiceEmailResponse(rsp) +} + +func (c *ClientWithResponses) SendInvoiceEmailWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error) { + rsp, err := c.SendInvoiceEmail(ctx, workspaceId, invoiceId, invoiceEmailTemplateType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSendInvoiceEmailResponse(rsp) +} + +// CreateInvoiceWithBodyWithResponse request with arbitrary body returning *CreateInvoiceResponse +func (c *ClientWithResponses) CreateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error) { + rsp, err := c.CreateInvoiceWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateInvoiceResponse(rsp) +} + +func (c *ClientWithResponses) CreateInvoiceWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error) { + rsp, err := c.CreateInvoice(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateInvoiceResponse(rsp) +} + +// GetAllCompaniesWithResponse request returning *GetAllCompaniesResponse +func (c *ClientWithResponses) GetAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllCompaniesResponse, error) { + rsp, err := c.GetAllCompanies(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllCompaniesResponse(rsp) +} + +// CreateCompanyWithBodyWithResponse request with arbitrary body returning *CreateCompanyResponse +func (c *ClientWithResponses) CreateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error) { + rsp, err := c.CreateCompanyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCompanyResponse(rsp) +} + +func (c *ClientWithResponses) CreateCompanyWithResponse(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error) { + rsp, err := c.CreateCompany(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCompanyResponse(rsp) +} + +// UpdateCompaniesInWorkspaceWithBodyWithResponse request with arbitrary body returning *UpdateCompaniesInWorkspaceResponse +func (c *ClientWithResponses) UpdateCompaniesInWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error) { + rsp, err := c.UpdateCompaniesInWorkspaceWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCompaniesInWorkspaceResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCompaniesInWorkspaceWithResponse(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error) { + rsp, err := c.UpdateCompaniesInWorkspace(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCompaniesInWorkspaceResponse(rsp) +} + +// CountAllCompaniesWithResponse request returning *CountAllCompaniesResponse +func (c *ClientWithResponses) CountAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CountAllCompaniesResponse, error) { + rsp, err := c.CountAllCompanies(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseCountAllCompaniesResponse(rsp) +} + +// GetClientsForInvoiceFilterWithResponse request returning *GetClientsForInvoiceFilterResponse +func (c *ClientWithResponses) GetClientsForInvoiceFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilterResponse, error) { + rsp, err := c.GetClientsForInvoiceFilter(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientsForInvoiceFilterResponse(rsp) +} + +// DeleteCompanyWithResponse request returning *DeleteCompanyResponse +func (c *ClientWithResponses) DeleteCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*DeleteCompanyResponse, error) { + rsp, err := c.DeleteCompany(ctx, workspaceId, companyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteCompanyResponse(rsp) +} + +// GetCompanyByIdWithResponse request returning *GetCompanyByIdResponse +func (c *ClientWithResponses) GetCompanyByIdWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*GetCompanyByIdResponse, error) { + rsp, err := c.GetCompanyById(ctx, workspaceId, companyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCompanyByIdResponse(rsp) +} + +// UpdateCompanyWithBodyWithResponse request with arbitrary body returning *UpdateCompanyResponse +func (c *ClientWithResponses) UpdateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error) { + rsp, err := c.UpdateCompanyWithBody(ctx, workspaceId, companyId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCompanyResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error) { + rsp, err := c.UpdateCompany(ctx, workspaceId, companyId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCompanyResponse(rsp) +} + +// GetInvoicesInfoWithBodyWithResponse request with arbitrary body returning *GetInvoicesInfoResponse +func (c *ClientWithResponses) GetInvoicesInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error) { + rsp, err := c.GetInvoicesInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoicesInfoResponse(rsp) +} + +func (c *ClientWithResponses) GetInvoicesInfoWithResponse(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error) { + rsp, err := c.GetInvoicesInfo(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoicesInfoResponse(rsp) +} + +// GetInvoiceItemTypesWithResponse request returning *GetInvoiceItemTypesResponse +func (c *ClientWithResponses) GetInvoiceItemTypesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceItemTypesResponse, error) { + rsp, err := c.GetInvoiceItemTypes(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoiceItemTypesResponse(rsp) +} + +// CreateInvoiceItemTypeWithBodyWithResponse request with arbitrary body returning *CreateInvoiceItemTypeResponse +func (c *ClientWithResponses) CreateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error) { + rsp, err := c.CreateInvoiceItemTypeWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateInvoiceItemTypeResponse(rsp) +} + +func (c *ClientWithResponses) CreateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error) { + rsp, err := c.CreateInvoiceItemType(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateInvoiceItemTypeResponse(rsp) +} + +// DeleteInvoiceItemTypeWithResponse request returning *DeleteInvoiceItemTypeResponse +func (c *ClientWithResponses) DeleteInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemTypeResponse, error) { + rsp, err := c.DeleteInvoiceItemType(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteInvoiceItemTypeResponse(rsp) +} + +// UpdateInvoiceItemTypeWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceItemTypeResponse +func (c *ClientWithResponses) UpdateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error) { + rsp, err := c.UpdateInvoiceItemTypeWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoiceItemTypeResponse(rsp) +} + +func (c *ClientWithResponses) UpdateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error) { + rsp, err := c.UpdateInvoiceItemType(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoiceItemTypeResponse(rsp) +} + +// GetNextInvoiceNumberWithResponse request returning *GetNextInvoiceNumberResponse +func (c *ClientWithResponses) GetNextInvoiceNumberWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetNextInvoiceNumberResponse, error) { + rsp, err := c.GetNextInvoiceNumber(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNextInvoiceNumberResponse(rsp) +} + +// GetInvoicePermissionsWithResponse request returning *GetInvoicePermissionsResponse +func (c *ClientWithResponses) GetInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoicePermissionsResponse, error) { + rsp, err := c.GetInvoicePermissions(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoicePermissionsResponse(rsp) +} + +// UpdateInvoicePermissionsWithBodyWithResponse request with arbitrary body returning *UpdateInvoicePermissionsResponse +func (c *ClientWithResponses) UpdateInvoicePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error) { + rsp, err := c.UpdateInvoicePermissionsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoicePermissionsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error) { + rsp, err := c.UpdateInvoicePermissions(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoicePermissionsResponse(rsp) +} + +// CanUserManageInvoicesWithResponse request returning *CanUserManageInvoicesResponse +func (c *ClientWithResponses) CanUserManageInvoicesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CanUserManageInvoicesResponse, error) { + rsp, err := c.CanUserManageInvoices(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseCanUserManageInvoicesResponse(rsp) +} + +// GetInvoiceSettingsWithResponse request returning *GetInvoiceSettingsResponse +func (c *ClientWithResponses) GetInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceSettingsResponse, error) { + rsp, err := c.GetInvoiceSettings(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoiceSettingsResponse(rsp) +} + +// UpdateInvoiceSettingsWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceSettingsResponse +func (c *ClientWithResponses) UpdateInvoiceSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error) { + rsp, err := c.UpdateInvoiceSettingsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoiceSettingsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error) { + rsp, err := c.UpdateInvoiceSettings(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoiceSettingsResponse(rsp) +} + +// DeleteInvoiceWithResponse request returning *DeleteInvoiceResponse +func (c *ClientWithResponses) DeleteInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error) { + rsp, err := c.DeleteInvoice(ctx, workspaceId, invoiceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteInvoiceResponse(rsp) +} + +// GetInvoiceWithResponse request returning *GetInvoiceResponse +func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) { + rsp, err := c.GetInvoice(ctx, workspaceId, invoiceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoiceResponse(rsp) +} + +// UpdateInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceResponse +func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) { + rsp, err := c.UpdateInvoiceWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoiceResponse(rsp) +} + +func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) { + rsp, err := c.UpdateInvoice(ctx, workspaceId, invoiceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoiceResponse(rsp) +} + +// DuplicateInvoiceWithResponse request returning *DuplicateInvoiceResponse +func (c *ClientWithResponses) DuplicateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DuplicateInvoiceResponse, error) { + rsp, err := c.DuplicateInvoice(ctx, workspaceId, invoiceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDuplicateInvoiceResponse(rsp) +} + +// ExportInvoiceWithResponse request returning *ExportInvoiceResponse +func (c *ClientWithResponses) ExportInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*ExportInvoiceResponse, error) { + rsp, err := c.ExportInvoice(ctx, workspaceId, invoiceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseExportInvoiceResponse(rsp) +} + +// ImportTimeAndExpensesWithBodyWithResponse request with arbitrary body returning *ImportTimeAndExpensesResponse +func (c *ClientWithResponses) ImportTimeAndExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error) { + rsp, err := c.ImportTimeAndExpensesWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseImportTimeAndExpensesResponse(rsp) +} + +func (c *ClientWithResponses) ImportTimeAndExpensesWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error) { + rsp, err := c.ImportTimeAndExpenses(ctx, workspaceId, invoiceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseImportTimeAndExpensesResponse(rsp) +} + +// AddInvoiceItemWithResponse request returning *AddInvoiceItemResponse +func (c *ClientWithResponses) AddInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*AddInvoiceItemResponse, error) { + rsp, err := c.AddInvoiceItem(ctx, workspaceId, invoiceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddInvoiceItemResponse(rsp) +} + +// ReorderInvoiceItem1WithBodyWithResponse request with arbitrary body returning *ReorderInvoiceItem1Response +func (c *ClientWithResponses) ReorderInvoiceItem1WithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error) { + rsp, err := c.ReorderInvoiceItem1WithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReorderInvoiceItem1Response(rsp) +} + +func (c *ClientWithResponses) ReorderInvoiceItem1WithResponse(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error) { + rsp, err := c.ReorderInvoiceItem1(ctx, workspaceId, invoiceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReorderInvoiceItem1Response(rsp) +} + +// EditInvoiceItemWithBodyWithResponse request with arbitrary body returning *EditInvoiceItemResponse +func (c *ClientWithResponses) EditInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error) { + rsp, err := c.EditInvoiceItemWithBody(ctx, workspaceId, invoiceId, invoiceItemOrder, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditInvoiceItemResponse(rsp) +} + +func (c *ClientWithResponses) EditInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error) { + rsp, err := c.EditInvoiceItem(ctx, workspaceId, invoiceId, invoiceItemOrder, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditInvoiceItemResponse(rsp) +} + +// DeleteInvoiceItemsWithResponse request returning *DeleteInvoiceItemsResponse +func (c *ClientWithResponses) DeleteInvoiceItemsWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemsResponse, error) { + rsp, err := c.DeleteInvoiceItems(ctx, workspaceId, invoiceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteInvoiceItemsResponse(rsp) +} + +// GetPaymentsForInvoiceWithResponse request returning *GetPaymentsForInvoiceResponse +func (c *ClientWithResponses) GetPaymentsForInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*GetPaymentsForInvoiceResponse, error) { + rsp, err := c.GetPaymentsForInvoice(ctx, workspaceId, invoiceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPaymentsForInvoiceResponse(rsp) +} + +// CreateInvoicePaymentWithBodyWithResponse request with arbitrary body returning *CreateInvoicePaymentResponse +func (c *ClientWithResponses) CreateInvoicePaymentWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error) { + rsp, err := c.CreateInvoicePaymentWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateInvoicePaymentResponse(rsp) +} + +func (c *ClientWithResponses) CreateInvoicePaymentWithResponse(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error) { + rsp, err := c.CreateInvoicePayment(ctx, workspaceId, invoiceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateInvoicePaymentResponse(rsp) +} + +// DeletePaymentByIdWithResponse request returning *DeletePaymentByIdResponse +func (c *ClientWithResponses) DeletePaymentByIdWithResponse(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*DeletePaymentByIdResponse, error) { + rsp, err := c.DeletePaymentById(ctx, workspaceId, invoiceId, paymentId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeletePaymentByIdResponse(rsp) +} + +// ChangeInvoiceStatusWithBodyWithResponse request with arbitrary body returning *ChangeInvoiceStatusResponse +func (c *ClientWithResponses) ChangeInvoiceStatusWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error) { + rsp, err := c.ChangeInvoiceStatusWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeInvoiceStatusResponse(rsp) +} + +func (c *ClientWithResponses) ChangeInvoiceStatusWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error) { + rsp, err := c.ChangeInvoiceStatus(ctx, workspaceId, invoiceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseChangeInvoiceStatusResponse(rsp) +} + +// AuthorizationCheckWithResponse request returning *AuthorizationCheckResponse +func (c *ClientWithResponses) AuthorizationCheckWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AuthorizationCheckResponse, error) { + rsp, err := c.AuthorizationCheck(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseAuthorizationCheckResponse(rsp) +} + +// IsAvailableWithResponse request returning *IsAvailableResponse +func (c *ClientWithResponses) IsAvailableWithResponse(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*IsAvailableResponse, error) { + rsp, err := c.IsAvailable(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseIsAvailableResponse(rsp) +} + +// IsAvailable1WithResponse request returning *IsAvailable1Response +func (c *ClientWithResponses) IsAvailable1WithResponse(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*IsAvailable1Response, error) { + rsp, err := c.IsAvailable1(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseIsAvailable1Response(rsp) +} + +// GeneratePinCodeWithResponse request returning *GeneratePinCodeResponse +func (c *ClientWithResponses) GeneratePinCodeWithResponse(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*GeneratePinCodeResponse, error) { + rsp, err := c.GeneratePinCode(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGeneratePinCodeResponse(rsp) +} + +// GeneratePinCodeForUserWithResponse request returning *GeneratePinCodeForUserResponse +func (c *ClientWithResponses) GeneratePinCodeForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GeneratePinCodeForUserResponse, error) { + rsp, err := c.GeneratePinCodeForUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGeneratePinCodeForUserResponse(rsp) +} + +// GetUserPinCodeWithResponse request returning *GetUserPinCodeResponse +func (c *ClientWithResponses) GetUserPinCodeWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetUserPinCodeResponse, error) { + rsp, err := c.GetUserPinCode(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserPinCodeResponse(rsp) +} + +// UpdatePinCodeWithBodyWithResponse request with arbitrary body returning *UpdatePinCodeResponse +func (c *ClientWithResponses) UpdatePinCodeWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error) { + rsp, err := c.UpdatePinCodeWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePinCodeResponse(rsp) +} + +func (c *ClientWithResponses) UpdatePinCodeWithResponse(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error) { + rsp, err := c.UpdatePinCode(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePinCodeResponse(rsp) +} + +// GetKiosksOfWorkspaceWithResponse request returning *GetKiosksOfWorkspaceResponse +func (c *ClientWithResponses) GetKiosksOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetKiosksOfWorkspaceResponse, error) { + rsp, err := c.GetKiosksOfWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetKiosksOfWorkspaceResponse(rsp) +} + +// Create15WithBodyWithResponse request with arbitrary body returning *Create15Response +func (c *ClientWithResponses) Create15WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create15Response, error) { + rsp, err := c.Create15WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate15Response(rsp) +} + +func (c *ClientWithResponses) Create15WithResponse(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*Create15Response, error) { + rsp, err := c.Create15(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate15Response(rsp) +} + +// UpdateBreakDefaultsWithBodyWithResponse request with arbitrary body returning *UpdateBreakDefaultsResponse +func (c *ClientWithResponses) UpdateBreakDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error) { + rsp, err := c.UpdateBreakDefaultsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateBreakDefaultsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateBreakDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error) { + rsp, err := c.UpdateBreakDefaults(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateBreakDefaultsResponse(rsp) +} + +// GetTotalCountOfKiosksOnWorkspaceWithResponse request returning *GetTotalCountOfKiosksOnWorkspaceResponse +func (c *ClientWithResponses) GetTotalCountOfKiosksOnWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTotalCountOfKiosksOnWorkspaceResponse, error) { + rsp, err := c.GetTotalCountOfKiosksOnWorkspace(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTotalCountOfKiosksOnWorkspaceResponse(rsp) +} + +// UpdateDefaultsWithBodyWithResponse request with arbitrary body returning *UpdateDefaultsResponse +func (c *ClientWithResponses) UpdateDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error) { + rsp, err := c.UpdateDefaultsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDefaultsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error) { + rsp, err := c.UpdateDefaults(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDefaultsResponse(rsp) +} + +// HasActiveKiosksWithResponse request returning *HasActiveKiosksResponse +func (c *ClientWithResponses) HasActiveKiosksWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasActiveKiosksResponse, error) { + rsp, err := c.HasActiveKiosks(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHasActiveKiosksResponse(rsp) +} + +// GetWithProjectWithBodyWithResponse request with arbitrary body returning *GetWithProjectResponse +func (c *ClientWithResponses) GetWithProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error) { + rsp, err := c.GetWithProjectWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWithProjectResponse(rsp) +} + +func (c *ClientWithResponses) GetWithProjectWithResponse(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error) { + rsp, err := c.GetWithProject(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWithProjectResponse(rsp) +} + +// GetWithTaskWithBodyWithResponse request with arbitrary body returning *GetWithTaskResponse +func (c *ClientWithResponses) GetWithTaskWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error) { + rsp, err := c.GetWithTaskWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWithTaskResponse(rsp) +} + +func (c *ClientWithResponses) GetWithTaskWithResponse(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error) { + rsp, err := c.GetWithTask(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWithTaskResponse(rsp) +} + +// GetForReportFilterWithResponse request returning *GetForReportFilterResponse +func (c *ClientWithResponses) GetForReportFilterWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetForReportFilterResponse, error) { + rsp, err := c.GetForReportFilter(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetForReportFilterResponse(rsp) +} + +// GetWithoutDefaultsWithResponse request returning *GetWithoutDefaultsResponse +func (c *ClientWithResponses) GetWithoutDefaultsWithResponse(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*GetWithoutDefaultsResponse, error) { + rsp, err := c.GetWithoutDefaults(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWithoutDefaultsResponse(rsp) +} + +// DeleteKioskWithResponse request returning *DeleteKioskResponse +func (c *ClientWithResponses) DeleteKioskWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*DeleteKioskResponse, error) { + rsp, err := c.DeleteKiosk(ctx, workspaceId, kioskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteKioskResponse(rsp) +} + +// GetKioskByIdWithResponse request returning *GetKioskByIdResponse +func (c *ClientWithResponses) GetKioskByIdWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*GetKioskByIdResponse, error) { + rsp, err := c.GetKioskById(ctx, workspaceId, kioskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetKioskByIdResponse(rsp) +} + +// Update8WithBodyWithResponse request with arbitrary body returning *Update8Response +func (c *ClientWithResponses) Update8WithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update8Response, error) { + rsp, err := c.Update8WithBody(ctx, workspaceId, kioskId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate8Response(rsp) +} + +func (c *ClientWithResponses) Update8WithResponse(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*Update8Response, error) { + rsp, err := c.Update8(ctx, workspaceId, kioskId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate8Response(rsp) +} + +// ExportAssigneesWithResponse request returning *ExportAssigneesResponse +func (c *ClientWithResponses) ExportAssigneesWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*ExportAssigneesResponse, error) { + rsp, err := c.ExportAssignees(ctx, workspaceId, kioskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseExportAssigneesResponse(rsp) +} + +// HasEntryInProgressWithResponse request returning *HasEntryInProgressResponse +func (c *ClientWithResponses) HasEntryInProgressWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*HasEntryInProgressResponse, error) { + rsp, err := c.HasEntryInProgress(ctx, workspaceId, kioskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHasEntryInProgressResponse(rsp) +} + +// UpdateStatusWithBodyWithResponse request with arbitrary body returning *UpdateStatusResponse +func (c *ClientWithResponses) UpdateStatusWithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error) { + rsp, err := c.UpdateStatusWithBody(ctx, workspaceId, kioskId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatusResponse(rsp) +} + +func (c *ClientWithResponses) UpdateStatusWithResponse(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error) { + rsp, err := c.UpdateStatus(ctx, workspaceId, kioskId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStatusResponse(rsp) +} + +// AcknowledgeLegacyPlanNotificationsWithResponse request returning *AcknowledgeLegacyPlanNotificationsResponse +func (c *ClientWithResponses) AcknowledgeLegacyPlanNotificationsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AcknowledgeLegacyPlanNotificationsResponse, error) { + rsp, err := c.AcknowledgeLegacyPlanNotifications(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseAcknowledgeLegacyPlanNotificationsResponse(rsp) +} + +// GetLegacyPlanUpgradeDataWithResponse request returning *GetLegacyPlanUpgradeDataResponse +func (c *ClientWithResponses) GetLegacyPlanUpgradeDataWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLegacyPlanUpgradeDataResponse, error) { + rsp, err := c.GetLegacyPlanUpgradeData(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLegacyPlanUpgradeDataResponse(rsp) +} + +// AddLimitedUsersWithBodyWithResponse request with arbitrary body returning *AddLimitedUsersResponse +func (c *ClientWithResponses) AddLimitedUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error) { + rsp, err := c.AddLimitedUsersWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddLimitedUsersResponse(rsp) +} + +func (c *ClientWithResponses) AddLimitedUsersWithResponse(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error) { + rsp, err := c.AddLimitedUsers(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddLimitedUsersResponse(rsp) +} + +// GetLimitedUsersCountWithResponse request returning *GetLimitedUsersCountResponse +func (c *ClientWithResponses) GetLimitedUsersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLimitedUsersCountResponse, error) { + rsp, err := c.GetLimitedUsersCount(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLimitedUsersCountResponse(rsp) +} + +// GetMemberProfileWithResponse request returning *GetMemberProfileResponse +func (c *ClientWithResponses) GetMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetMemberProfileResponse, error) { + rsp, err := c.GetMemberProfile(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMemberProfileResponse(rsp) +} + +// UpdateMemberProfileWithBodyWithResponse request with arbitrary body returning *UpdateMemberProfileResponse +func (c *ClientWithResponses) UpdateMemberProfileWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error) { + rsp, err := c.UpdateMemberProfileWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberProfileResponse(rsp) +} + +func (c *ClientWithResponses) UpdateMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error) { + rsp, err := c.UpdateMemberProfile(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberProfileResponse(rsp) +} + +// UpdateMemberProfileWithAdditionalDataWithBodyWithResponse request with arbitrary body returning *UpdateMemberProfileWithAdditionalDataResponse +func (c *ClientWithResponses) UpdateMemberProfileWithAdditionalDataWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error) { + rsp, err := c.UpdateMemberProfileWithAdditionalDataWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberProfileWithAdditionalDataResponse(rsp) +} + +func (c *ClientWithResponses) UpdateMemberProfileWithAdditionalDataWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error) { + rsp, err := c.UpdateMemberProfileWithAdditionalData(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberProfileWithAdditionalDataResponse(rsp) +} + +// UpdateMemberSettingsWithBodyWithResponse request with arbitrary body returning *UpdateMemberSettingsResponse +func (c *ClientWithResponses) UpdateMemberSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error) { + rsp, err := c.UpdateMemberSettingsWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberSettingsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateMemberSettingsWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error) { + rsp, err := c.UpdateMemberSettings(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberSettingsResponse(rsp) +} + +// GetWeekStartWithResponse request returning *GetWeekStartResponse +func (c *ClientWithResponses) GetWeekStartWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeekStartResponse, error) { + rsp, err := c.GetWeekStart(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWeekStartResponse(rsp) +} + +// UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse request with arbitrary body returning *UpdateMemberWorkingDaysAndCapacityResponse +func (c *ClientWithResponses) UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error) { + rsp, err := c.UpdateMemberWorkingDaysAndCapacityWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberWorkingDaysAndCapacityResponse(rsp) +} + +func (c *ClientWithResponses) UpdateMemberWorkingDaysAndCapacityWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error) { + rsp, err := c.UpdateMemberWorkingDaysAndCapacity(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMemberWorkingDaysAndCapacityResponse(rsp) +} + +// GetMembersCountWithResponse request returning *GetMembersCountResponse +func (c *ClientWithResponses) GetMembersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetMembersCountResponse, error) { + rsp, err := c.GetMembersCount(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMembersCountResponse(rsp) +} + +// FindNotInvitedEmailsInWithBodyWithResponse request with arbitrary body returning *FindNotInvitedEmailsInResponse +func (c *ClientWithResponses) FindNotInvitedEmailsInWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error) { + rsp, err := c.FindNotInvitedEmailsInWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindNotInvitedEmailsInResponse(rsp) +} + +func (c *ClientWithResponses) FindNotInvitedEmailsInWithResponse(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error) { + rsp, err := c.FindNotInvitedEmailsIn(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindNotInvitedEmailsInResponse(rsp) +} + +// GetOrganizationWithResponse request returning *GetOrganizationResponse +func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) { + rsp, err := c.GetOrganization(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrganizationResponse(rsp) +} + +// Create14WithBodyWithResponse request with arbitrary body returning *Create14Response +func (c *ClientWithResponses) Create14WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create14Response, error) { + rsp, err := c.Create14WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate14Response(rsp) +} + +func (c *ClientWithResponses) Create14WithResponse(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*Create14Response, error) { + rsp, err := c.Create14(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate14Response(rsp) +} + +// GetOrganizationNameWithResponse request returning *GetOrganizationNameResponse +func (c *ClientWithResponses) GetOrganizationNameWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationNameResponse, error) { + rsp, err := c.GetOrganizationName(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrganizationNameResponse(rsp) +} + +// CheckAvailabilityOfDomainNameWithResponse request returning *CheckAvailabilityOfDomainNameResponse +func (c *ClientWithResponses) CheckAvailabilityOfDomainNameWithResponse(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*CheckAvailabilityOfDomainNameResponse, error) { + rsp, err := c.CheckAvailabilityOfDomainName(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseCheckAvailabilityOfDomainNameResponse(rsp) +} + +// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse +func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) { + rsp, err := c.DeleteOrganization(ctx, workspaceId, organizationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrganizationResponse(rsp) +} + +// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse +func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganizationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationResponse(rsp) +} + +func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) { + rsp, err := c.UpdateOrganization(ctx, workspaceId, organizationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateOrganizationResponse(rsp) +} + +// GetLoginSettingsWithResponse request returning *GetLoginSettingsResponse +func (c *ClientWithResponses) GetLoginSettingsWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetLoginSettingsResponse, error) { + rsp, err := c.GetLoginSettings(ctx, workspaceId, organizationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLoginSettingsResponse(rsp) +} + +// DeleteOAuth2ConfigurationWithResponse request returning *DeleteOAuth2ConfigurationResponse +func (c *ClientWithResponses) DeleteOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOAuth2ConfigurationResponse, error) { + rsp, err := c.DeleteOAuth2Configuration(ctx, workspaceId, organizationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOAuth2ConfigurationResponse(rsp) +} + +// GetOrganizationOAuth2ConfigurationWithResponse request returning *GetOrganizationOAuth2ConfigurationResponse +func (c *ClientWithResponses) GetOrganizationOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationOAuth2ConfigurationResponse, error) { + rsp, err := c.GetOrganizationOAuth2Configuration(ctx, workspaceId, organizationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrganizationOAuth2ConfigurationResponse(rsp) +} + +// UpdateOAuth2Configuration1WithBodyWithResponse request with arbitrary body returning *UpdateOAuth2Configuration1Response +func (c *ClientWithResponses) UpdateOAuth2Configuration1WithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error) { + rsp, err := c.UpdateOAuth2Configuration1WithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateOAuth2Configuration1Response(rsp) +} + +func (c *ClientWithResponses) UpdateOAuth2Configuration1WithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error) { + rsp, err := c.UpdateOAuth2Configuration1(ctx, workspaceId, organizationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateOAuth2Configuration1Response(rsp) +} + +// TestOAuth2ConfigurationWithBodyWithResponse request with arbitrary body returning *TestOAuth2ConfigurationResponse +func (c *ClientWithResponses) TestOAuth2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error) { + rsp, err := c.TestOAuth2ConfigurationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTestOAuth2ConfigurationResponse(rsp) +} + +func (c *ClientWithResponses) TestOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error) { + rsp, err := c.TestOAuth2Configuration(ctx, workspaceId, organizationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTestOAuth2ConfigurationResponse(rsp) +} + +// DeleteSAML2ConfigurationWithResponse request returning *DeleteSAML2ConfigurationResponse +func (c *ClientWithResponses) DeleteSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteSAML2ConfigurationResponse, error) { + rsp, err := c.DeleteSAML2Configuration(ctx, workspaceId, organizationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSAML2ConfigurationResponse(rsp) +} + +// GetOrganizationSAML2ConfigurationWithResponse request returning *GetOrganizationSAML2ConfigurationResponse +func (c *ClientWithResponses) GetOrganizationSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationSAML2ConfigurationResponse, error) { + rsp, err := c.GetOrganizationSAML2Configuration(ctx, workspaceId, organizationId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrganizationSAML2ConfigurationResponse(rsp) +} + +// UpdateSAML2ConfigurationWithBodyWithResponse request with arbitrary body returning *UpdateSAML2ConfigurationResponse +func (c *ClientWithResponses) UpdateSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error) { + rsp, err := c.UpdateSAML2ConfigurationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSAML2ConfigurationResponse(rsp) +} + +func (c *ClientWithResponses) UpdateSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error) { + rsp, err := c.UpdateSAML2Configuration(ctx, workspaceId, organizationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSAML2ConfigurationResponse(rsp) +} + +// TestSAML2ConfigurationWithBodyWithResponse request with arbitrary body returning *TestSAML2ConfigurationResponse +func (c *ClientWithResponses) TestSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error) { + rsp, err := c.TestSAML2ConfigurationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTestSAML2ConfigurationResponse(rsp) +} + +func (c *ClientWithResponses) TestSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error) { + rsp, err := c.TestSAML2Configuration(ctx, workspaceId, organizationId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTestSAML2ConfigurationResponse(rsp) +} + +// GetAllOrganizationsOfUserWithResponse request returning *GetAllOrganizationsOfUserResponse +func (c *ClientWithResponses) GetAllOrganizationsOfUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*GetAllOrganizationsOfUserResponse, error) { + rsp, err := c.GetAllOrganizationsOfUser(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllOrganizationsOfUserResponse(rsp) +} + +// GetWorkspaceOwnerWithResponse request returning *GetWorkspaceOwnerResponse +func (c *ClientWithResponses) GetWorkspaceOwnerWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerResponse, error) { + rsp, err := c.GetWorkspaceOwner(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkspaceOwnerResponse(rsp) +} + +// TransferOwnershipWithBodyWithResponse request with arbitrary body returning *TransferOwnershipResponse +func (c *ClientWithResponses) TransferOwnershipWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error) { + rsp, err := c.TransferOwnershipWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTransferOwnershipResponse(rsp) +} + +func (c *ClientWithResponses) TransferOwnershipWithResponse(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error) { + rsp, err := c.TransferOwnership(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTransferOwnershipResponse(rsp) +} + +// GetWorkspaceOwnerTimeZoneWithResponse request returning *GetWorkspaceOwnerTimeZoneResponse +func (c *ClientWithResponses) GetWorkspaceOwnerTimeZoneWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerTimeZoneResponse, error) { + rsp, err := c.GetWorkspaceOwnerTimeZone(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkspaceOwnerTimeZoneResponse(rsp) +} + +// CancelSubscriptionWithBodyWithResponse request with arbitrary body returning *CancelSubscriptionResponse +func (c *ClientWithResponses) CancelSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) { + rsp, err := c.CancelSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCancelSubscriptionResponse(rsp) +} + +func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) { + rsp, err := c.CancelSubscription(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCancelSubscriptionResponse(rsp) +} + +// ConfirmPaymentWithResponse request returning *ConfirmPaymentResponse +func (c *ClientWithResponses) ConfirmPaymentWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ConfirmPaymentResponse, error) { + rsp, err := c.ConfirmPayment(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseConfirmPaymentResponse(rsp) +} + +// GetCustomerInfoWithResponse request returning *GetCustomerInfoResponse +func (c *ClientWithResponses) GetCustomerInfoWithResponse(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*GetCustomerInfoResponse, error) { + rsp, err := c.GetCustomerInfo(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCustomerInfoResponse(rsp) +} + +// CreateCustomerWithBodyWithResponse request with arbitrary body returning *CreateCustomerResponse +func (c *ClientWithResponses) CreateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) { + rsp, err := c.CreateCustomerWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCustomerResponse(rsp) +} + +func (c *ClientWithResponses) CreateCustomerWithResponse(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) { + rsp, err := c.CreateCustomer(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCustomerResponse(rsp) +} + +// UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse +func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { + rsp, err := c.UpdateCustomerWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomerResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) { + rsp, err := c.UpdateCustomer(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomerResponse(rsp) +} + +// EditInvoiceInformationWithBodyWithResponse request with arbitrary body returning *EditInvoiceInformationResponse +func (c *ClientWithResponses) EditInvoiceInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error) { + rsp, err := c.EditInvoiceInformationWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditInvoiceInformationResponse(rsp) +} + +func (c *ClientWithResponses) EditInvoiceInformationWithResponse(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error) { + rsp, err := c.EditInvoiceInformation(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditInvoiceInformationResponse(rsp) +} + +// EditPaymentInformationWithBodyWithResponse request with arbitrary body returning *EditPaymentInformationResponse +func (c *ClientWithResponses) EditPaymentInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error) { + rsp, err := c.EditPaymentInformationWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditPaymentInformationResponse(rsp) +} + +func (c *ClientWithResponses) EditPaymentInformationWithResponse(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error) { + rsp, err := c.EditPaymentInformation(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditPaymentInformationResponse(rsp) +} + +// ExtendTrialWithResponse request returning *ExtendTrialResponse +func (c *ClientWithResponses) ExtendTrialWithResponse(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*ExtendTrialResponse, error) { + rsp, err := c.ExtendTrial(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseExtendTrialResponse(rsp) +} + +// GetFeatureSubscriptionsWithResponse request returning *GetFeatureSubscriptionsResponse +func (c *ClientWithResponses) GetFeatureSubscriptionsWithResponse(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetFeatureSubscriptionsResponse, error) { + rsp, err := c.GetFeatureSubscriptions(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFeatureSubscriptionsResponse(rsp) +} + +// InitialUpgradeWithBodyWithResponse request with arbitrary body returning *InitialUpgradeResponse +func (c *ClientWithResponses) InitialUpgradeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error) { + rsp, err := c.InitialUpgradeWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseInitialUpgradeResponse(rsp) +} + +func (c *ClientWithResponses) InitialUpgradeWithResponse(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error) { + rsp, err := c.InitialUpgrade(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseInitialUpgradeResponse(rsp) +} + +// GetInvoiceInfoWithResponse request returning *GetInvoiceInfoResponse +func (c *ClientWithResponses) GetInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceInfoResponse, error) { + rsp, err := c.GetInvoiceInfo(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoiceInfoResponse(rsp) +} + +// GetInvoicesWithResponse request returning *GetInvoicesResponse +func (c *ClientWithResponses) GetInvoicesWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*GetInvoicesResponse, error) { + rsp, err := c.GetInvoices(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoicesResponse(rsp) +} + +// GetInvoicesCountWithResponse request returning *GetInvoicesCountResponse +func (c *ClientWithResponses) GetInvoicesCountWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*GetInvoicesCountResponse, error) { + rsp, err := c.GetInvoicesCount(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoicesCountResponse(rsp) +} + +// GetLastOpenInvoiceWithResponse request returning *GetLastOpenInvoiceResponse +func (c *ClientWithResponses) GetLastOpenInvoiceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastOpenInvoiceResponse, error) { + rsp, err := c.GetLastOpenInvoice(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLastOpenInvoiceResponse(rsp) +} + +// GetInvoicesListWithResponse request returning *GetInvoicesListResponse +func (c *ClientWithResponses) GetInvoicesListWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*GetInvoicesListResponse, error) { + rsp, err := c.GetInvoicesList(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInvoicesListResponse(rsp) +} + +// GetPaymentDateWithResponse request returning *GetPaymentDateResponse +func (c *ClientWithResponses) GetPaymentDateWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentDateResponse, error) { + rsp, err := c.GetPaymentDate(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPaymentDateResponse(rsp) +} + +// GetPaymentInfoWithResponse request returning *GetPaymentInfoResponse +func (c *ClientWithResponses) GetPaymentInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentInfoResponse, error) { + rsp, err := c.GetPaymentInfo(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPaymentInfoResponse(rsp) +} + +// CreateSetupIntentForPaymentMethodWithBodyWithResponse request with arbitrary body returning *CreateSetupIntentForPaymentMethodResponse +func (c *ClientWithResponses) CreateSetupIntentForPaymentMethodWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error) { + rsp, err := c.CreateSetupIntentForPaymentMethodWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSetupIntentForPaymentMethodResponse(rsp) +} + +func (c *ClientWithResponses) CreateSetupIntentForPaymentMethodWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error) { + rsp, err := c.CreateSetupIntentForPaymentMethod(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSetupIntentForPaymentMethodResponse(rsp) +} + +// PreviewUpgradeWithResponse request returning *PreviewUpgradeResponse +func (c *ClientWithResponses) PreviewUpgradeWithResponse(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*PreviewUpgradeResponse, error) { + rsp, err := c.PreviewUpgrade(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePreviewUpgradeResponse(rsp) +} + +// ReactivateSubscriptionWithResponse request returning *ReactivateSubscriptionResponse +func (c *ClientWithResponses) ReactivateSubscriptionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ReactivateSubscriptionResponse, error) { + rsp, err := c.ReactivateSubscription(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseReactivateSubscriptionResponse(rsp) +} + +// GetScheduledInvoiceInfoWithResponse request returning *GetScheduledInvoiceInfoResponse +func (c *ClientWithResponses) GetScheduledInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetScheduledInvoiceInfoResponse, error) { + rsp, err := c.GetScheduledInvoiceInfo(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetScheduledInvoiceInfoResponse(rsp) +} + +// UpdateUserSeatsWithBodyWithResponse request with arbitrary body returning *UpdateUserSeatsResponse +func (c *ClientWithResponses) UpdateUserSeatsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error) { + rsp, err := c.UpdateUserSeatsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserSeatsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateUserSeatsWithResponse(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error) { + rsp, err := c.UpdateUserSeats(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserSeatsResponse(rsp) +} + +// CreateSetupIntentForInitialSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSetupIntentForInitialSubscriptionResponse +func (c *ClientWithResponses) CreateSetupIntentForInitialSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error) { + rsp, err := c.CreateSetupIntentForInitialSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSetupIntentForInitialSubscriptionResponse(rsp) +} + +func (c *ClientWithResponses) CreateSetupIntentForInitialSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error) { + rsp, err := c.CreateSetupIntentForInitialSubscription(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSetupIntentForInitialSubscriptionResponse(rsp) +} + +// CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse +func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { + rsp, err := c.CreateSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSubscriptionResponse(rsp) +} + +func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) { + rsp, err := c.CreateSubscription(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSubscriptionResponse(rsp) +} + +// UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse +func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { + rsp, err := c.UpdateSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSubscriptionResponse(rsp) +} + +func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) { + rsp, err := c.UpdateSubscription(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSubscriptionResponse(rsp) +} + +// UpgradePreCheckWithResponse request returning *UpgradePreCheckResponse +func (c *ClientWithResponses) UpgradePreCheckWithResponse(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*UpgradePreCheckResponse, error) { + rsp, err := c.UpgradePreCheck(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpgradePreCheckResponse(rsp) +} + +// DeleteSubscriptionWithBodyWithResponse request with arbitrary body returning *DeleteSubscriptionResponse +func (c *ClientWithResponses) DeleteSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) { + rsp, err := c.DeleteSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSubscriptionResponse(rsp) +} + +func (c *ClientWithResponses) DeleteSubscriptionWithResponse(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) { + rsp, err := c.DeleteSubscription(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSubscriptionResponse(rsp) +} + +// TerminateTrialWithResponse request returning *TerminateTrialResponse +func (c *ClientWithResponses) TerminateTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*TerminateTrialResponse, error) { + rsp, err := c.TerminateTrial(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseTerminateTrialResponse(rsp) +} + +// StartTrialWithResponse request returning *StartTrialResponse +func (c *ClientWithResponses) StartTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*StartTrialResponse, error) { + rsp, err := c.StartTrial(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseStartTrialResponse(rsp) +} + +// WasRegionalEverAllowedWithResponse request returning *WasRegionalEverAllowedResponse +func (c *ClientWithResponses) WasRegionalEverAllowedWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WasRegionalEverAllowedResponse, error) { + rsp, err := c.WasRegionalEverAllowed(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseWasRegionalEverAllowedResponse(rsp) +} + +// FindForUserAndPolicyWithResponse request returning *FindForUserAndPolicyResponse +func (c *ClientWithResponses) FindForUserAndPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*FindForUserAndPolicyResponse, error) { + rsp, err := c.FindForUserAndPolicy(ctx, workspaceId, policyId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindForUserAndPolicyResponse(rsp) +} + +// GetClientsWithResponse request returning *GetClientsResponse +func (c *ClientWithResponses) GetClientsWithResponse(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*GetClientsResponse, error) { + rsp, err := c.GetClients(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetClientsResponse(rsp) +} + +// GetProjects3WithResponse request returning *GetProjects3Response +func (c *ClientWithResponses) GetProjects3WithResponse(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*GetProjects3Response, error) { + rsp, err := c.GetProjects3(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjects3Response(rsp) +} + +// GetProjectFavoritesWithResponse request returning *GetProjectFavoritesResponse +func (c *ClientWithResponses) GetProjectFavoritesWithResponse(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*GetProjectFavoritesResponse, error) { + rsp, err := c.GetProjectFavorites(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectFavoritesResponse(rsp) +} + +// GetTasks21WithResponse request returning *GetTasks21Response +func (c *ClientWithResponses) GetTasks21WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*GetTasks21Response, error) { + rsp, err := c.GetTasks21(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasks21Response(rsp) +} + +// RecalculateProjectStatus1WithResponse request returning *RecalculateProjectStatus1Response +func (c *ClientWithResponses) RecalculateProjectStatus1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatus1Response, error) { + rsp, err := c.RecalculateProjectStatus1(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRecalculateProjectStatus1Response(rsp) +} + +// GetProjectAndTaskWithBodyWithResponse request with arbitrary body returning *GetProjectAndTaskResponse +func (c *ClientWithResponses) GetProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error) { + rsp, err := c.GetProjectAndTaskWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectAndTaskResponse(rsp) +} + +func (c *ClientWithResponses) GetProjectAndTaskWithResponse(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error) { + rsp, err := c.GetProjectAndTask(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectAndTaskResponse(rsp) +} + +// DeleteMany2WithBodyWithResponse request with arbitrary body returning *DeleteMany2Response +func (c *ClientWithResponses) DeleteMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error) { + rsp, err := c.DeleteMany2WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteMany2Response(rsp) +} + +func (c *ClientWithResponses) DeleteMany2WithResponse(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error) { + rsp, err := c.DeleteMany2(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteMany2Response(rsp) +} + +// GetProjects2WithResponse request returning *GetProjects2Response +func (c *ClientWithResponses) GetProjects2WithResponse(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*GetProjects2Response, error) { + rsp, err := c.GetProjects2(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjects2Response(rsp) +} + +// UpdateMany1WithBodyWithResponse request with arbitrary body returning *UpdateMany1Response +func (c *ClientWithResponses) UpdateMany1WithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error) { + rsp, err := c.UpdateMany1WithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMany1Response(rsp) +} + +func (c *ClientWithResponses) UpdateMany1WithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error) { + rsp, err := c.UpdateMany1(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateMany1Response(rsp) +} + +// Create12WithBodyWithResponse request with arbitrary body returning *Create12Response +func (c *ClientWithResponses) Create12WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create12Response, error) { + rsp, err := c.Create12WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate12Response(rsp) +} + +func (c *ClientWithResponses) Create12WithResponse(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*Create12Response, error) { + rsp, err := c.Create12(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate12Response(rsp) +} + +// GetFilteredProjectsCountWithResponse request returning *GetFilteredProjectsCountResponse +func (c *ClientWithResponses) GetFilteredProjectsCountWithResponse(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*GetFilteredProjectsCountResponse, error) { + rsp, err := c.GetFilteredProjectsCount(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredProjectsCountResponse(rsp) +} + +// GetFilteredProjectsWithBodyWithResponse request with arbitrary body returning *GetFilteredProjectsResponse +func (c *ClientWithResponses) GetFilteredProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error) { + rsp, err := c.GetFilteredProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredProjectsResponse(rsp) +} + +func (c *ClientWithResponses) GetFilteredProjectsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error) { + rsp, err := c.GetFilteredProjects(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredProjectsResponse(rsp) +} + +// CreateFromTemplateWithBodyWithResponse request with arbitrary body returning *CreateFromTemplateResponse +func (c *ClientWithResponses) CreateFromTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error) { + rsp, err := c.CreateFromTemplateWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFromTemplateResponse(rsp) +} + +func (c *ClientWithResponses) CreateFromTemplateWithResponse(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error) { + rsp, err := c.CreateFromTemplate(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFromTemplateResponse(rsp) +} + +// GetProjectWithBodyWithResponse request with arbitrary body returning *GetProjectResponse +func (c *ClientWithResponses) GetProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) { + rsp, err := c.GetProjectWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectResponse(rsp) +} + +func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) { + rsp, err := c.GetProject(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectResponse(rsp) +} + +// GetLastUsedProjectWithResponse request returning *GetLastUsedProjectResponse +func (c *ClientWithResponses) GetLastUsedProjectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastUsedProjectResponse, error) { + rsp, err := c.GetLastUsedProject(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLastUsedProjectResponse(rsp) +} + +// LastUsedProject1WithResponse request returning *LastUsedProject1Response +func (c *ClientWithResponses) LastUsedProject1WithResponse(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*LastUsedProject1Response, error) { + rsp, err := c.LastUsedProject1(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseLastUsedProject1Response(rsp) +} + +// GetProjectsListWithResponse request returning *GetProjectsListResponse +func (c *ClientWithResponses) GetProjectsListWithResponse(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*GetProjectsListResponse, error) { + rsp, err := c.GetProjectsList(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectsListResponse(rsp) +} + +// HasManagerRole1WithResponse request returning *HasManagerRole1Response +func (c *ClientWithResponses) HasManagerRole1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasManagerRole1Response, error) { + rsp, err := c.HasManagerRole1(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHasManagerRole1Response(rsp) +} + +// GetProjectsForReportFilterWithBodyWithResponse request with arbitrary body returning *GetProjectsForReportFilterResponse +func (c *ClientWithResponses) GetProjectsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error) { + rsp, err := c.GetProjectsForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectsForReportFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetProjectsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error) { + rsp, err := c.GetProjectsForReportFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectsForReportFilterResponse(rsp) +} + +// GetProjectIdsForReportFilterWithBodyWithResponse request with arbitrary body returning *GetProjectIdsForReportFilterResponse +func (c *ClientWithResponses) GetProjectIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error) { + rsp, err := c.GetProjectIdsForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectIdsForReportFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetProjectIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error) { + rsp, err := c.GetProjectIdsForReportFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectIdsForReportFilterResponse(rsp) +} + +// GetTasksByIdsWithBodyWithResponse request with arbitrary body returning *GetTasksByIdsResponse +func (c *ClientWithResponses) GetTasksByIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error) { + rsp, err := c.GetTasksByIdsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksByIdsResponse(rsp) +} + +func (c *ClientWithResponses) GetTasksByIdsWithResponse(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error) { + rsp, err := c.GetTasksByIds(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksByIdsResponse(rsp) +} + +// GetAllTasksWithBodyWithResponse request with arbitrary body returning *GetAllTasksResponse +func (c *ClientWithResponses) GetAllTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error) { + rsp, err := c.GetAllTasksWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllTasksResponse(rsp) +} + +func (c *ClientWithResponses) GetAllTasksWithResponse(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error) { + rsp, err := c.GetAllTasks(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllTasksResponse(rsp) +} + +// GetTasksWithBodyWithResponse request with arbitrary body returning *GetTasksResponse +func (c *ClientWithResponses) GetTasksWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksResponse, error) { + rsp, err := c.GetTasksWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksResponse(rsp) +} + +func (c *ClientWithResponses) GetTasksWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksResponse, error) { + rsp, err := c.GetTasks(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksResponse(rsp) +} + +// GetTasksForReportFilterWithBodyWithResponse request with arbitrary body returning *GetTasksForReportFilterResponse +func (c *ClientWithResponses) GetTasksForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error) { + rsp, err := c.GetTasksForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksForReportFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetTasksForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error) { + rsp, err := c.GetTasksForReportFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksForReportFilterResponse(rsp) +} + +// GetTaskIdsForReportFilterWithBodyWithResponse request with arbitrary body returning *GetTaskIdsForReportFilterResponse +func (c *ClientWithResponses) GetTaskIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error) { + rsp, err := c.GetTaskIdsForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTaskIdsForReportFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetTaskIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error) { + rsp, err := c.GetTaskIdsForReportFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTaskIdsForReportFilterResponse(rsp) +} + +// GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse request with arbitrary body returning *GetTimeOffPoliciesAndHolidaysWithProjectsResponse +func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) { + rsp, err := c.GetTimeOffPoliciesAndHolidaysWithProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse(rsp) +} + +func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithProjectsWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) { + rsp, err := c.GetTimeOffPoliciesAndHolidaysWithProjects(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse(rsp) +} + +// GetLastUsedOfUserWithResponse request returning *GetLastUsedOfUserResponse +func (c *ClientWithResponses) GetLastUsedOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetLastUsedOfUserResponse, error) { + rsp, err := c.GetLastUsedOfUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLastUsedOfUserResponse(rsp) +} + +// GetPermissionsToUserForProjectsWithBodyWithResponse request with arbitrary body returning *GetPermissionsToUserForProjectsResponse +func (c *ClientWithResponses) GetPermissionsToUserForProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error) { + rsp, err := c.GetPermissionsToUserForProjectsWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPermissionsToUserForProjectsResponse(rsp) +} + +func (c *ClientWithResponses) GetPermissionsToUserForProjectsWithResponse(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error) { + rsp, err := c.GetPermissionsToUserForProjects(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPermissionsToUserForProjectsResponse(rsp) +} + +// Delete13WithResponse request returning *Delete13Response +func (c *ClientWithResponses) Delete13WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*Delete13Response, error) { + rsp, err := c.Delete13(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete13Response(rsp) +} + +// GetProject1WithResponse request returning *GetProject1Response +func (c *ClientWithResponses) GetProject1WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*GetProject1Response, error) { + rsp, err := c.GetProject1(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProject1Response(rsp) +} + +// Update14WithBodyWithResponse request with arbitrary body returning *Update14Response +func (c *ClientWithResponses) Update14WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update14Response, error) { + rsp, err := c.Update14WithBody(ctx, workspaceId, projectId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate14Response(rsp) +} + +func (c *ClientWithResponses) Update14WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*Update14Response, error) { + rsp, err := c.Update14(ctx, workspaceId, projectId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate14Response(rsp) +} + +// Update6WithBodyWithResponse request with arbitrary body returning *Update6Response +func (c *ClientWithResponses) Update6WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update6Response, error) { + rsp, err := c.Update6WithBody(ctx, workspaceId, projectId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate6Response(rsp) +} + +func (c *ClientWithResponses) Update6WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*Update6Response, error) { + rsp, err := c.Update6(ctx, workspaceId, projectId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate6Response(rsp) +} + +// SetCostRate1WithBodyWithResponse request with arbitrary body returning *SetCostRate1Response +func (c *ClientWithResponses) SetCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error) { + rsp, err := c.SetCostRate1WithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRate1Response(rsp) +} + +func (c *ClientWithResponses) SetCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error) { + rsp, err := c.SetCostRate1(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRate1Response(rsp) +} + +// UpdateEstimateWithBodyWithResponse request with arbitrary body returning *UpdateEstimateResponse +func (c *ClientWithResponses) UpdateEstimateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error) { + rsp, err := c.UpdateEstimateWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEstimateResponse(rsp) +} + +func (c *ClientWithResponses) UpdateEstimateWithResponse(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error) { + rsp, err := c.UpdateEstimate(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEstimateResponse(rsp) +} + +// SetHourlyRate1WithBodyWithResponse request with arbitrary body returning *SetHourlyRate1Response +func (c *ClientWithResponses) SetHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error) { + rsp, err := c.SetHourlyRate1WithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRate1Response(rsp) +} + +func (c *ClientWithResponses) SetHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error) { + rsp, err := c.SetHourlyRate1(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRate1Response(rsp) +} + +// HasManagerRoleWithResponse request returning *HasManagerRoleResponse +func (c *ClientWithResponses) HasManagerRoleWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HasManagerRoleResponse, error) { + rsp, err := c.HasManagerRole(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHasManagerRoleResponse(rsp) +} + +// GetAuthsForProjectWithResponse request returning *GetAuthsForProjectResponse +func (c *ClientWithResponses) GetAuthsForProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetAuthsForProjectResponse, error) { + rsp, err := c.GetAuthsForProject(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAuthsForProjectResponse(rsp) +} + +// RecalculateProjectStatusWithResponse request returning *RecalculateProjectStatusResponse +func (c *ClientWithResponses) RecalculateProjectStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatusResponse, error) { + rsp, err := c.RecalculateProjectStatus(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRecalculateProjectStatusResponse(rsp) +} + +// GetTasks1WithResponse request returning *GetTasks1Response +func (c *ClientWithResponses) GetTasks1WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasks1Response, error) { + rsp, err := c.GetTasks1(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasks1Response(rsp) +} + +// Create13WithBodyWithResponse request with arbitrary body returning *Create13Response +func (c *ClientWithResponses) Create13WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create13Response, error) { + rsp, err := c.Create13WithBody(ctx, workspaceId, projectId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate13Response(rsp) +} + +func (c *ClientWithResponses) Create13WithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*Create13Response, error) { + rsp, err := c.Create13(ctx, workspaceId, projectId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate13Response(rsp) +} + +// GetTasksAssignedToUserWithResponse request returning *GetTasksAssignedToUserResponse +func (c *ClientWithResponses) GetTasksAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasksAssignedToUserResponse, error) { + rsp, err := c.GetTasksAssignedToUser(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTasksAssignedToUserResponse(rsp) +} + +// GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse request with arbitrary body returning *GetTimeOffPoliciesAndHolidaysWithTasksResponse +func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) { + rsp, err := c.GetTimeOffPoliciesAndHolidaysWithTasksWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse(rsp) +} + +func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithTasksWithResponse(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) { + rsp, err := c.GetTimeOffPoliciesAndHolidaysWithTasks(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse(rsp) +} + +// Update7WithBodyWithResponse request with arbitrary body returning *Update7Response +func (c *ClientWithResponses) Update7WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update7Response, error) { + rsp, err := c.Update7WithBody(ctx, workspaceId, projectId, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate7Response(rsp) +} + +func (c *ClientWithResponses) Update7WithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*Update7Response, error) { + rsp, err := c.Update7(ctx, workspaceId, projectId, id, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate7Response(rsp) +} + +// SetCostRateWithBodyWithResponse request with arbitrary body returning *SetCostRateResponse +func (c *ClientWithResponses) SetCostRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error) { + rsp, err := c.SetCostRateWithBody(ctx, workspaceId, projectId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRateResponse(rsp) +} + +func (c *ClientWithResponses) SetCostRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error) { + rsp, err := c.SetCostRate(ctx, workspaceId, projectId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRateResponse(rsp) +} + +// SetHourlyRateWithBodyWithResponse request with arbitrary body returning *SetHourlyRateResponse +func (c *ClientWithResponses) SetHourlyRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error) { + rsp, err := c.SetHourlyRateWithBody(ctx, workspaceId, projectId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRateResponse(rsp) +} + +func (c *ClientWithResponses) SetHourlyRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error) { + rsp, err := c.SetHourlyRate(ctx, workspaceId, projectId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRateResponse(rsp) +} + +// Delete14WithResponse request returning *Delete14Response +func (c *ClientWithResponses) Delete14WithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete14Response, error) { + rsp, err := c.Delete14(ctx, workspaceId, projectId, taskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete14Response(rsp) +} + +// GetTaskAssignedToUserWithResponse request returning *GetTaskAssignedToUserResponse +func (c *ClientWithResponses) GetTaskAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*GetTaskAssignedToUserResponse, error) { + rsp, err := c.GetTaskAssignedToUser(ctx, workspaceId, projectId, taskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTaskAssignedToUserResponse(rsp) +} + +// AddUsers1WithBodyWithResponse request with arbitrary body returning *AddUsers1Response +func (c *ClientWithResponses) AddUsers1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsers1Response, error) { + rsp, err := c.AddUsers1WithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsers1Response(rsp) +} + +func (c *ClientWithResponses) AddUsers1WithResponse(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsers1Response, error) { + rsp, err := c.AddUsers1(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsers1Response(rsp) +} + +// GetStatusWithResponse request returning *GetStatusResponse +func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetStatusResponse, error) { + rsp, err := c.GetStatus(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStatusResponse(rsp) +} + +// RemoveUserGroupMembershipWithResponse request returning *RemoveUserGroupMembershipResponse +func (c *ClientWithResponses) RemoveUserGroupMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*RemoveUserGroupMembershipResponse, error) { + rsp, err := c.RemoveUserGroupMembership(ctx, workspaceId, projectId, usergroupId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveUserGroupMembershipResponse(rsp) +} + +// GetUsers4WithResponse request returning *GetUsers4Response +func (c *ClientWithResponses) GetUsers4WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*GetUsers4Response, error) { + rsp, err := c.GetUsers4(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsers4Response(rsp) +} + +// AddUsersCostRate1WithBodyWithResponse request with arbitrary body returning *AddUsersCostRate1Response +func (c *ClientWithResponses) AddUsersCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error) { + rsp, err := c.AddUsersCostRate1WithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersCostRate1Response(rsp) +} + +func (c *ClientWithResponses) AddUsersCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error) { + rsp, err := c.AddUsersCostRate1(ctx, workspaceId, projectId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersCostRate1Response(rsp) +} + +// AddUsersHourlyRate1WithBodyWithResponse request with arbitrary body returning *AddUsersHourlyRate1Response +func (c *ClientWithResponses) AddUsersHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error) { + rsp, err := c.AddUsersHourlyRate1WithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersHourlyRate1Response(rsp) +} + +func (c *ClientWithResponses) AddUsersHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error) { + rsp, err := c.AddUsersHourlyRate1(ctx, workspaceId, projectId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersHourlyRate1Response(rsp) +} + +// RemoveUserMembershipWithResponse request returning *RemoveUserMembershipResponse +func (c *ClientWithResponses) RemoveUserMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*RemoveUserMembershipResponse, error) { + rsp, err := c.RemoveUserMembership(ctx, workspaceId, projectId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveUserMembershipResponse(rsp) +} + +// RemovePermissionsToUserWithBodyWithResponse request with arbitrary body returning *RemovePermissionsToUserResponse +func (c *ClientWithResponses) RemovePermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error) { + rsp, err := c.RemovePermissionsToUserWithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemovePermissionsToUserResponse(rsp) +} + +func (c *ClientWithResponses) RemovePermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error) { + rsp, err := c.RemovePermissionsToUser(ctx, workspaceId, projectId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemovePermissionsToUserResponse(rsp) +} + +// GetPermissionsToUser1WithResponse request returning *GetPermissionsToUser1Response +func (c *ClientWithResponses) GetPermissionsToUser1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUser1Response, error) { + rsp, err := c.GetPermissionsToUser1(ctx, workspaceId, projectId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPermissionsToUser1Response(rsp) +} + +// AddPermissionsToUserWithBodyWithResponse request with arbitrary body returning *AddPermissionsToUserResponse +func (c *ClientWithResponses) AddPermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error) { + rsp, err := c.AddPermissionsToUserWithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddPermissionsToUserResponse(rsp) +} + +func (c *ClientWithResponses) AddPermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error) { + rsp, err := c.AddPermissionsToUser(ctx, workspaceId, projectId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddPermissionsToUserResponse(rsp) +} + +// DisconnectWithResponse request returning *DisconnectResponse +func (c *ClientWithResponses) DisconnectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*DisconnectResponse, error) { + rsp, err := c.Disconnect(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDisconnectResponse(rsp) +} + +// ConnectWithBodyWithResponse request with arbitrary body returning *ConnectResponse +func (c *ClientWithResponses) ConnectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectResponse, error) { + rsp, err := c.ConnectWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnectResponse(rsp) +} + +func (c *ClientWithResponses) ConnectWithResponse(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectResponse, error) { + rsp, err := c.Connect(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnectResponse(rsp) +} + +// Connect1WithResponse request returning *Connect1Response +func (c *ClientWithResponses) Connect1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*Connect1Response, error) { + rsp, err := c.Connect1(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnect1Response(rsp) +} + +// SyncClientsWithBodyWithResponse request with arbitrary body returning *SyncClientsResponse +func (c *ClientWithResponses) SyncClientsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error) { + rsp, err := c.SyncClientsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSyncClientsResponse(rsp) +} + +func (c *ClientWithResponses) SyncClientsWithResponse(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error) { + rsp, err := c.SyncClients(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSyncClientsResponse(rsp) +} + +// SyncProjectsWithBodyWithResponse request with arbitrary body returning *SyncProjectsResponse +func (c *ClientWithResponses) SyncProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error) { + rsp, err := c.SyncProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSyncProjectsResponse(rsp) +} + +func (c *ClientWithResponses) SyncProjectsWithResponse(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error) { + rsp, err := c.SyncProjects(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSyncProjectsResponse(rsp) +} + +// UpdateProjectsWithBodyWithResponse request with arbitrary body returning *UpdateProjectsResponse +func (c *ClientWithResponses) UpdateProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error) { + rsp, err := c.UpdateProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateProjectsWithResponse(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error) { + rsp, err := c.UpdateProjects(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectsResponse(rsp) +} + +// GetAllRegionsForUserAccountWithResponse request returning *GetAllRegionsForUserAccountResponse +func (c *ClientWithResponses) GetAllRegionsForUserAccountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllRegionsForUserAccountResponse, error) { + rsp, err := c.GetAllRegionsForUserAccount(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllRegionsForUserAccountResponse(rsp) +} + +// ListOfWorkspaceWithResponse request returning *ListOfWorkspaceResponse +func (c *ClientWithResponses) ListOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspaceResponse, error) { + rsp, err := c.ListOfWorkspace(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseListOfWorkspaceResponse(rsp) +} + +// Create11WithBodyWithResponse request with arbitrary body returning *Create11Response +func (c *ClientWithResponses) Create11WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create11Response, error) { + rsp, err := c.Create11WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate11Response(rsp) +} + +func (c *ClientWithResponses) Create11WithResponse(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*Create11Response, error) { + rsp, err := c.Create11(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate11Response(rsp) +} + +// OfWorkspaceIdAndUserIdWithResponse request returning *OfWorkspaceIdAndUserIdResponse +func (c *ClientWithResponses) OfWorkspaceIdAndUserIdWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*OfWorkspaceIdAndUserIdResponse, error) { + rsp, err := c.OfWorkspaceIdAndUserId(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseOfWorkspaceIdAndUserIdResponse(rsp) +} + +// Delete12WithResponse request returning *Delete12Response +func (c *ClientWithResponses) Delete12WithResponse(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*Delete12Response, error) { + rsp, err := c.Delete12(ctx, workspaceId, reminderId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete12Response(rsp) +} + +// Update5WithBodyWithResponse request with arbitrary body returning *Update5Response +func (c *ClientWithResponses) Update5WithBodyWithResponse(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update5Response, error) { + rsp, err := c.Update5WithBody(ctx, workspaceId, reminderId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate5Response(rsp) +} + +func (c *ClientWithResponses) Update5WithResponse(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*Update5Response, error) { + rsp, err := c.Update5(ctx, workspaceId, reminderId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate5Response(rsp) +} + +// GetDashboardInfoWithBodyWithResponse request with arbitrary body returning *GetDashboardInfoResponse +func (c *ClientWithResponses) GetDashboardInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error) { + rsp, err := c.GetDashboardInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDashboardInfoResponse(rsp) +} + +func (c *ClientWithResponses) GetDashboardInfoWithResponse(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error) { + rsp, err := c.GetDashboardInfo(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDashboardInfoResponse(rsp) +} + +// GetMyMostTrackedWithResponse request returning *GetMyMostTrackedResponse +func (c *ClientWithResponses) GetMyMostTrackedWithResponse(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*GetMyMostTrackedResponse, error) { + rsp, err := c.GetMyMostTracked(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMyMostTrackedResponse(rsp) +} + +// GetTeamActivitiesWithResponse request returning *GetTeamActivitiesResponse +func (c *ClientWithResponses) GetTeamActivitiesWithResponse(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*GetTeamActivitiesResponse, error) { + rsp, err := c.GetTeamActivities(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamActivitiesResponse(rsp) +} + +// GetAmountPreviewWithResponse request returning *GetAmountPreviewResponse +func (c *ClientWithResponses) GetAmountPreviewWithResponse(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*GetAmountPreviewResponse, error) { + rsp, err := c.GetAmountPreview(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAmountPreviewResponse(rsp) +} + +// GetDraftAssignmentsCountWithBodyWithResponse request with arbitrary body returning *GetDraftAssignmentsCountResponse +func (c *ClientWithResponses) GetDraftAssignmentsCountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error) { + rsp, err := c.GetDraftAssignmentsCountWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDraftAssignmentsCountResponse(rsp) +} + +func (c *ClientWithResponses) GetDraftAssignmentsCountWithResponse(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error) { + rsp, err := c.GetDraftAssignmentsCount(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDraftAssignmentsCountResponse(rsp) +} + +// GetProjectTotalsWithResponse request returning *GetProjectTotalsResponse +func (c *ClientWithResponses) GetProjectTotalsWithResponse(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsResponse, error) { + rsp, err := c.GetProjectTotals(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectTotalsResponse(rsp) +} + +// GetFilteredProjectTotalsWithBodyWithResponse request with arbitrary body returning *GetFilteredProjectTotalsResponse +func (c *ClientWithResponses) GetFilteredProjectTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error) { + rsp, err := c.GetFilteredProjectTotalsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredProjectTotalsResponse(rsp) +} + +func (c *ClientWithResponses) GetFilteredProjectTotalsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error) { + rsp, err := c.GetFilteredProjectTotals(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredProjectTotalsResponse(rsp) +} + +// GetProjectTotalsForSingleProjectWithResponse request returning *GetProjectTotalsForSingleProjectResponse +func (c *ClientWithResponses) GetProjectTotalsForSingleProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsForSingleProjectResponse, error) { + rsp, err := c.GetProjectTotalsForSingleProject(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectTotalsForSingleProjectResponse(rsp) +} + +// GetProjectsForUserWithResponse request returning *GetProjectsForUserResponse +func (c *ClientWithResponses) GetProjectsForUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*GetProjectsForUserResponse, error) { + rsp, err := c.GetProjectsForUser(ctx, workspaceId, projectId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectsForUserResponse(rsp) +} + +// PublishAssignmentsWithBodyWithResponse request with arbitrary body returning *PublishAssignmentsResponse +func (c *ClientWithResponses) PublishAssignmentsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error) { + rsp, err := c.PublishAssignmentsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePublishAssignmentsResponse(rsp) +} + +func (c *ClientWithResponses) PublishAssignmentsWithResponse(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error) { + rsp, err := c.PublishAssignments(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePublishAssignmentsResponse(rsp) +} + +// CreateRecurringWithBodyWithResponse request with arbitrary body returning *CreateRecurringResponse +func (c *ClientWithResponses) CreateRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error) { + rsp, err := c.CreateRecurringWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateRecurringResponse(rsp) +} + +func (c *ClientWithResponses) CreateRecurringWithResponse(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error) { + rsp, err := c.CreateRecurring(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateRecurringResponse(rsp) +} + +// Delete11WithResponse request returning *Delete11Response +func (c *ClientWithResponses) Delete11WithResponse(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*Delete11Response, error) { + rsp, err := c.Delete11(ctx, workspaceId, assignmentId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete11Response(rsp) +} + +// EditRecurringWithBodyWithResponse request with arbitrary body returning *EditRecurringResponse +func (c *ClientWithResponses) EditRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error) { + rsp, err := c.EditRecurringWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditRecurringResponse(rsp) +} + +func (c *ClientWithResponses) EditRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error) { + rsp, err := c.EditRecurring(ctx, workspaceId, assignmentId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditRecurringResponse(rsp) +} + +// EditPeriodForRecurringWithBodyWithResponse request with arbitrary body returning *EditPeriodForRecurringResponse +func (c *ClientWithResponses) EditPeriodForRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error) { + rsp, err := c.EditPeriodForRecurringWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditPeriodForRecurringResponse(rsp) +} + +func (c *ClientWithResponses) EditPeriodForRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error) { + rsp, err := c.EditPeriodForRecurring(ctx, workspaceId, assignmentId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditPeriodForRecurringResponse(rsp) +} + +// EditRecurringPeriodWithBodyWithResponse request with arbitrary body returning *EditRecurringPeriodResponse +func (c *ClientWithResponses) EditRecurringPeriodWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error) { + rsp, err := c.EditRecurringPeriodWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditRecurringPeriodResponse(rsp) +} + +func (c *ClientWithResponses) EditRecurringPeriodWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error) { + rsp, err := c.EditRecurringPeriod(ctx, workspaceId, assignmentId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditRecurringPeriodResponse(rsp) +} + +// GetUserTotalsWithBodyWithResponse request with arbitrary body returning *GetUserTotalsResponse +func (c *ClientWithResponses) GetUserTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error) { + rsp, err := c.GetUserTotalsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserTotalsResponse(rsp) +} + +func (c *ClientWithResponses) GetUserTotalsWithResponse(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error) { + rsp, err := c.GetUserTotals(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserTotalsResponse(rsp) +} + +// GetAssignmentsForUserWithResponse request returning *GetAssignmentsForUserResponse +func (c *ClientWithResponses) GetAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*GetAssignmentsForUserResponse, error) { + rsp, err := c.GetAssignmentsForUser(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAssignmentsForUserResponse(rsp) +} + +// GetFilteredAssignmentsForUserWithBodyWithResponse request with arbitrary body returning *GetFilteredAssignmentsForUserResponse +func (c *ClientWithResponses) GetFilteredAssignmentsForUserWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error) { + rsp, err := c.GetFilteredAssignmentsForUserWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredAssignmentsForUserResponse(rsp) +} + +func (c *ClientWithResponses) GetFilteredAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error) { + rsp, err := c.GetFilteredAssignmentsForUser(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFilteredAssignmentsForUserResponse(rsp) +} + +// GetUsers3WithResponse request returning *GetUsers3Response +func (c *ClientWithResponses) GetUsers3WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*GetUsers3Response, error) { + rsp, err := c.GetUsers3(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsers3Response(rsp) +} + +// GetProjects1WithResponse request returning *GetProjects1Response +func (c *ClientWithResponses) GetProjects1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*GetProjects1Response, error) { + rsp, err := c.GetProjects1(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjects1Response(rsp) +} + +// RemindToPublishWithResponse request returning *RemindToPublishResponse +func (c *ClientWithResponses) RemindToPublishWithResponse(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*RemindToPublishResponse, error) { + rsp, err := c.RemindToPublish(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemindToPublishResponse(rsp) +} + +// GetUserTotalsForSingleUserWithResponse request returning *GetUserTotalsForSingleUserResponse +func (c *ClientWithResponses) GetUserTotalsForSingleUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*GetUserTotalsForSingleUserResponse, error) { + rsp, err := c.GetUserTotalsForSingleUser(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserTotalsForSingleUserResponse(rsp) +} + +// Get3WithResponse request returning *Get3Response +func (c *ClientWithResponses) Get3WithResponse(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*Get3Response, error) { + rsp, err := c.Get3(ctx, workspaceId, assignmentId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGet3Response(rsp) +} + +// CopyAssignmentWithBodyWithResponse request with arbitrary body returning *CopyAssignmentResponse +func (c *ClientWithResponses) CopyAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error) { + rsp, err := c.CopyAssignmentWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCopyAssignmentResponse(rsp) +} + +func (c *ClientWithResponses) CopyAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error) { + rsp, err := c.CopyAssignment(ctx, workspaceId, assignmentId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCopyAssignmentResponse(rsp) +} + +// SplitAssignmentWithBodyWithResponse request with arbitrary body returning *SplitAssignmentResponse +func (c *ClientWithResponses) SplitAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error) { + rsp, err := c.SplitAssignmentWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSplitAssignmentResponse(rsp) +} + +func (c *ClientWithResponses) SplitAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error) { + rsp, err := c.SplitAssignment(ctx, workspaceId, assignmentId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSplitAssignmentResponse(rsp) +} + +// ShiftScheduleWithBodyWithResponse request with arbitrary body returning *ShiftScheduleResponse +func (c *ClientWithResponses) ShiftScheduleWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error) { + rsp, err := c.ShiftScheduleWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseShiftScheduleResponse(rsp) +} + +func (c *ClientWithResponses) ShiftScheduleWithResponse(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error) { + rsp, err := c.ShiftSchedule(ctx, workspaceId, projectId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseShiftScheduleResponse(rsp) +} + +// HideProjectWithResponse request returning *HideProjectResponse +func (c *ClientWithResponses) HideProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HideProjectResponse, error) { + rsp, err := c.HideProject(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHideProjectResponse(rsp) +} + +// ShowProjectWithResponse request returning *ShowProjectResponse +func (c *ClientWithResponses) ShowProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ShowProjectResponse, error) { + rsp, err := c.ShowProject(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseShowProjectResponse(rsp) +} + +// HideUserWithResponse request returning *HideUserResponse +func (c *ClientWithResponses) HideUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*HideUserResponse, error) { + rsp, err := c.HideUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseHideUserResponse(rsp) +} + +// ShowUserWithResponse request returning *ShowUserResponse +func (c *ClientWithResponses) ShowUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ShowUserResponse, error) { + rsp, err := c.ShowUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseShowUserResponse(rsp) +} + +// Create10WithBodyWithResponse request with arbitrary body returning *Create10Response +func (c *ClientWithResponses) Create10WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create10Response, error) { + rsp, err := c.Create10WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate10Response(rsp) +} + +func (c *ClientWithResponses) Create10WithResponse(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*Create10Response, error) { + rsp, err := c.Create10(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate10Response(rsp) +} + +// Delete10WithResponse request returning *Delete10Response +func (c *ClientWithResponses) Delete10WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Delete10Response, error) { + rsp, err := c.Delete10(ctx, workspaceId, milestoneId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete10Response(rsp) +} + +// Get2WithResponse request returning *Get2Response +func (c *ClientWithResponses) Get2WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Get2Response, error) { + rsp, err := c.Get2(ctx, workspaceId, milestoneId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGet2Response(rsp) +} + +// Edit1WithBodyWithResponse request with arbitrary body returning *Edit1Response +func (c *ClientWithResponses) Edit1WithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Edit1Response, error) { + rsp, err := c.Edit1WithBody(ctx, workspaceId, milestoneId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEdit1Response(rsp) +} + +func (c *ClientWithResponses) Edit1WithResponse(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*Edit1Response, error) { + rsp, err := c.Edit1(ctx, workspaceId, milestoneId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEdit1Response(rsp) +} + +// EditDateWithBodyWithResponse request with arbitrary body returning *EditDateResponse +func (c *ClientWithResponses) EditDateWithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDateResponse, error) { + rsp, err := c.EditDateWithBody(ctx, workspaceId, milestoneId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditDateResponse(rsp) +} + +func (c *ClientWithResponses) EditDateWithResponse(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDateResponse, error) { + rsp, err := c.EditDate(ctx, workspaceId, milestoneId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditDateResponse(rsp) +} + +// GetProjectsWithResponse request returning *GetProjectsResponse +func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) { + rsp, err := c.GetProjects(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetProjectsResponse(rsp) +} + +// GetUsers2WithResponse request returning *GetUsers2Response +func (c *ClientWithResponses) GetUsers2WithResponse(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*GetUsers2Response, error) { + rsp, err := c.GetUsers2(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsers2Response(rsp) +} + +// GetUsersAssignedToProjectWithResponse request returning *GetUsersAssignedToProjectResponse +func (c *ClientWithResponses) GetUsersAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAssignedToProjectResponse, error) { + rsp, err := c.GetUsersAssignedToProject(ctx, workspaceId, projectId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersAssignedToProjectResponse(rsp) +} + +// GetSidebarConfigWithResponse request returning *GetSidebarConfigResponse +func (c *ClientWithResponses) GetSidebarConfigWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetSidebarConfigResponse, error) { + rsp, err := c.GetSidebarConfig(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSidebarConfigResponse(rsp) +} + +// UpdateSidebarWithBodyWithResponse request with arbitrary body returning *UpdateSidebarResponse +func (c *ClientWithResponses) UpdateSidebarWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error) { + rsp, err := c.UpdateSidebarWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSidebarResponse(rsp) +} + +func (c *ClientWithResponses) UpdateSidebarWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error) { + rsp, err := c.UpdateSidebar(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateSidebarResponse(rsp) +} + +// FilterUsersByStatusWithBodyWithResponse request with arbitrary body returning *FilterUsersByStatusResponse +func (c *ClientWithResponses) FilterUsersByStatusWithBodyWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error) { + rsp, err := c.FilterUsersByStatusWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFilterUsersByStatusResponse(rsp) +} + +func (c *ClientWithResponses) FilterUsersByStatusWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error) { + rsp, err := c.FilterUsersByStatus(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseFilterUsersByStatusResponse(rsp) +} + +// Delete9WithBodyWithResponse request with arbitrary body returning *Delete9Response +func (c *ClientWithResponses) Delete9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Delete9Response, error) { + rsp, err := c.Delete9WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete9Response(rsp) +} + +func (c *ClientWithResponses) Delete9WithResponse(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*Delete9Response, error) { + rsp, err := c.Delete9(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete9Response(rsp) +} + +// StopWithBodyWithResponse request with arbitrary body returning *StopResponse +func (c *ClientWithResponses) StopWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopResponse, error) { + rsp, err := c.StopWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseStopResponse(rsp) +} + +func (c *ClientWithResponses) StopWithResponse(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*StopResponse, error) { + rsp, err := c.Stop(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseStopResponse(rsp) +} + +// StartWithBodyWithResponse request with arbitrary body returning *StartResponse +func (c *ClientWithResponses) StartWithBodyWithResponse(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartResponse, error) { + rsp, err := c.StartWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseStartResponse(rsp) +} + +func (c *ClientWithResponses) StartWithResponse(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*StartResponse, error) { + rsp, err := c.Start(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseStartResponse(rsp) +} + +// DeleteMany1WithBodyWithResponse request with arbitrary body returning *DeleteMany1Response +func (c *ClientWithResponses) DeleteMany1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error) { + rsp, err := c.DeleteMany1WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteMany1Response(rsp) +} + +func (c *ClientWithResponses) DeleteMany1WithResponse(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error) { + rsp, err := c.DeleteMany1(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteMany1Response(rsp) +} + +// GetTagsWithResponse request returning *GetTagsResponse +func (c *ClientWithResponses) GetTagsWithResponse(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error) { + rsp, err := c.GetTags(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTagsResponse(rsp) +} + +// UpdateManyWithBodyWithResponse request with arbitrary body returning *UpdateManyResponse +func (c *ClientWithResponses) UpdateManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error) { + rsp, err := c.UpdateManyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateManyResponse(rsp) +} + +func (c *ClientWithResponses) UpdateManyWithResponse(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error) { + rsp, err := c.UpdateMany(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateManyResponse(rsp) +} + +// Create9WithBodyWithResponse request with arbitrary body returning *Create9Response +func (c *ClientWithResponses) Create9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create9Response, error) { + rsp, err := c.Create9WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate9Response(rsp) +} + +func (c *ClientWithResponses) Create9WithResponse(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*Create9Response, error) { + rsp, err := c.Create9(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate9Response(rsp) +} + +// ConnectedToApprovedEntriesWithBodyWithResponse request with arbitrary body returning *ConnectedToApprovedEntriesResponse +func (c *ClientWithResponses) ConnectedToApprovedEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error) { + rsp, err := c.ConnectedToApprovedEntriesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnectedToApprovedEntriesResponse(rsp) +} + +func (c *ClientWithResponses) ConnectedToApprovedEntriesWithResponse(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error) { + rsp, err := c.ConnectedToApprovedEntries(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnectedToApprovedEntriesResponse(rsp) +} + +// GetTagsOfIdsWithBodyWithResponse request with arbitrary body returning *GetTagsOfIdsResponse +func (c *ClientWithResponses) GetTagsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error) { + rsp, err := c.GetTagsOfIdsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTagsOfIdsResponse(rsp) +} + +func (c *ClientWithResponses) GetTagsOfIdsWithResponse(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error) { + rsp, err := c.GetTagsOfIds(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTagsOfIdsResponse(rsp) +} + +// GetTagIdsByNameAndStatusWithResponse request returning *GetTagIdsByNameAndStatusResponse +func (c *ClientWithResponses) GetTagIdsByNameAndStatusWithResponse(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*GetTagIdsByNameAndStatusResponse, error) { + rsp, err := c.GetTagIdsByNameAndStatus(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTagIdsByNameAndStatusResponse(rsp) +} + +// Delete8WithResponse request returning *Delete8Response +func (c *ClientWithResponses) Delete8WithResponse(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*Delete8Response, error) { + rsp, err := c.Delete8(ctx, workspaceId, tagId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete8Response(rsp) +} + +// Update4WithBodyWithResponse request with arbitrary body returning *Update4Response +func (c *ClientWithResponses) Update4WithBodyWithResponse(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update4Response, error) { + rsp, err := c.Update4WithBody(ctx, workspaceId, tagId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate4Response(rsp) +} + +func (c *ClientWithResponses) Update4WithResponse(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*Update4Response, error) { + rsp, err := c.Update4(ctx, workspaceId, tagId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate4Response(rsp) +} + +// GetTemplatesWithResponse request returning *GetTemplatesResponse +func (c *ClientWithResponses) GetTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesResponse, error) { + rsp, err := c.GetTemplates(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTemplatesResponse(rsp) +} + +// Create8WithBodyWithResponse request with arbitrary body returning *Create8Response +func (c *ClientWithResponses) Create8WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create8Response, error) { + rsp, err := c.Create8WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate8Response(rsp) +} + +func (c *ClientWithResponses) Create8WithResponse(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*Create8Response, error) { + rsp, err := c.Create8(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate8Response(rsp) +} + +// Delete7WithResponse request returning *Delete7Response +func (c *ClientWithResponses) Delete7WithResponse(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*Delete7Response, error) { + rsp, err := c.Delete7(ctx, workspaceId, templateId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete7Response(rsp) +} + +// GetTemplateWithResponse request returning *GetTemplateResponse +func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) { + rsp, err := c.GetTemplate(ctx, workspaceId, templateId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTemplateResponse(rsp) +} + +// Update13WithBodyWithResponse request with arbitrary body returning *Update13Response +func (c *ClientWithResponses) Update13WithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update13Response, error) { + rsp, err := c.Update13WithBody(ctx, workspaceId, templateId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate13Response(rsp) +} + +func (c *ClientWithResponses) Update13WithResponse(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*Update13Response, error) { + rsp, err := c.Update13(ctx, workspaceId, templateId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate13Response(rsp) +} + +// ActivateWithBodyWithResponse request with arbitrary body returning *ActivateResponse +func (c *ClientWithResponses) ActivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateResponse, error) { + rsp, err := c.ActivateWithBody(ctx, workspaceId, templateId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseActivateResponse(rsp) +} + +func (c *ClientWithResponses) ActivateWithResponse(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateResponse, error) { + rsp, err := c.Activate(ctx, workspaceId, templateId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseActivateResponse(rsp) +} + +// DeactivateWithBodyWithResponse request with arbitrary body returning *DeactivateResponse +func (c *ClientWithResponses) DeactivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeactivateResponse, error) { + rsp, err := c.DeactivateWithBody(ctx, workspaceId, templateId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeactivateResponse(rsp) +} + +func (c *ClientWithResponses) DeactivateWithResponse(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateResponse, error) { + rsp, err := c.Deactivate(ctx, workspaceId, templateId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeactivateResponse(rsp) +} + +// CopyTimeEntriesWithBodyWithResponse request with arbitrary body returning *CopyTimeEntriesResponse +func (c *ClientWithResponses) CopyTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error) { + rsp, err := c.CopyTimeEntriesWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCopyTimeEntriesResponse(rsp) +} + +func (c *ClientWithResponses) CopyTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error) { + rsp, err := c.CopyTimeEntries(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCopyTimeEntriesResponse(rsp) +} + +// ContinueTimeEntryWithResponse request returning *ContinueTimeEntryResponse +func (c *ClientWithResponses) ContinueTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*ContinueTimeEntryResponse, error) { + rsp, err := c.ContinueTimeEntry(ctx, workspaceId, timeEntryId, reqEditors...) + if err != nil { + return nil, err + } + return ParseContinueTimeEntryResponse(rsp) +} + +// GetTeamMembersOfAdminWithResponse request returning *GetTeamMembersOfAdminResponse +func (c *ClientWithResponses) GetTeamMembersOfAdminWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfAdminResponse, error) { + rsp, err := c.GetTeamMembersOfAdmin(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamMembersOfAdminResponse(rsp) +} + +// GetBalancesForPolicyWithResponse request returning *GetBalancesForPolicyResponse +func (c *ClientWithResponses) GetBalancesForPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*GetBalancesForPolicyResponse, error) { + rsp, err := c.GetBalancesForPolicy(ctx, workspaceId, policyId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetBalancesForPolicyResponse(rsp) +} + +// UpdateBalanceWithBodyWithResponse request with arbitrary body returning *UpdateBalanceResponse +func (c *ClientWithResponses) UpdateBalanceWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error) { + rsp, err := c.UpdateBalanceWithBody(ctx, workspaceId, policyId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateBalanceResponse(rsp) +} + +func (c *ClientWithResponses) UpdateBalanceWithResponse(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error) { + rsp, err := c.UpdateBalance(ctx, workspaceId, policyId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateBalanceResponse(rsp) +} + +// GetBalancesForUserWithResponse request returning *GetBalancesForUserResponse +func (c *ClientWithResponses) GetBalancesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*GetBalancesForUserResponse, error) { + rsp, err := c.GetBalancesForUser(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetBalancesForUserResponse(rsp) +} + +// GetTeamMembersOfManagerWithResponse request returning *GetTeamMembersOfManagerResponse +func (c *ClientWithResponses) GetTeamMembersOfManagerWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfManagerResponse, error) { + rsp, err := c.GetTeamMembersOfManager(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamMembersOfManagerResponse(rsp) +} + +// FindPoliciesForWorkspaceWithResponse request returning *FindPoliciesForWorkspaceResponse +func (c *ClientWithResponses) FindPoliciesForWorkspaceWithResponse(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*FindPoliciesForWorkspaceResponse, error) { + rsp, err := c.FindPoliciesForWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindPoliciesForWorkspaceResponse(rsp) +} + +// CreatePolicyWithBodyWithResponse request with arbitrary body returning *CreatePolicyResponse +func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) { + rsp, err := c.CreatePolicyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePolicyResponse(rsp) +} + +func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) { + rsp, err := c.CreatePolicy(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreatePolicyResponse(rsp) +} + +// GetPolicyAssignmentForCurrentUserWithResponse request returning *GetPolicyAssignmentForCurrentUserResponse +func (c *ClientWithResponses) GetPolicyAssignmentForCurrentUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentForCurrentUserResponse, error) { + rsp, err := c.GetPolicyAssignmentForCurrentUser(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyAssignmentForCurrentUserResponse(rsp) +} + +// GetTeamAssignmentsDistributionWithResponse request returning *GetTeamAssignmentsDistributionResponse +func (c *ClientWithResponses) GetTeamAssignmentsDistributionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTeamAssignmentsDistributionResponse, error) { + rsp, err := c.GetTeamAssignmentsDistribution(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAssignmentsDistributionResponse(rsp) +} + +// GetPolicyAssignmentsForUserWithResponse request returning *GetPolicyAssignmentsForUserResponse +func (c *ClientWithResponses) GetPolicyAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentsForUserResponse, error) { + rsp, err := c.GetPolicyAssignmentsForUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyAssignmentsForUserResponse(rsp) +} + +// FindPoliciesForUserWithResponse request returning *FindPoliciesForUserResponse +func (c *ClientWithResponses) FindPoliciesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*FindPoliciesForUserResponse, error) { + rsp, err := c.FindPoliciesForUser(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseFindPoliciesForUserResponse(rsp) +} + +// DeletePolicyWithResponse request returning *DeletePolicyResponse +func (c *ClientWithResponses) DeletePolicyWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) { + rsp, err := c.DeletePolicy(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeletePolicyResponse(rsp) +} + +// UpdatePolicyWithBodyWithResponse request with arbitrary body returning *UpdatePolicyResponse +func (c *ClientWithResponses) UpdatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) { + rsp, err := c.UpdatePolicyWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePolicyResponse(rsp) +} + +func (c *ClientWithResponses) UpdatePolicyWithResponse(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) { + rsp, err := c.UpdatePolicy(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdatePolicyResponse(rsp) +} + +// ArchiveWithResponse request returning *ArchiveResponse +func (c *ClientWithResponses) ArchiveWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*ArchiveResponse, error) { + rsp, err := c.Archive(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseArchiveResponse(rsp) +} + +// RestoreWithResponse request returning *RestoreResponse +func (c *ClientWithResponses) RestoreWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RestoreResponse, error) { + rsp, err := c.Restore(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseRestoreResponse(rsp) +} + +// GetPolicyWithResponse request returning *GetPolicyResponse +func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) { + rsp, err := c.GetPolicy(ctx, workspaceId, policyId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyResponse(rsp) +} + +// Create7WithBodyWithResponse request with arbitrary body returning *Create7Response +func (c *ClientWithResponses) Create7WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create7Response, error) { + rsp, err := c.Create7WithBody(ctx, workspaceId, policyId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate7Response(rsp) +} + +func (c *ClientWithResponses) Create7WithResponse(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*Create7Response, error) { + rsp, err := c.Create7(ctx, workspaceId, policyId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate7Response(rsp) +} + +// Delete6WithResponse request returning *Delete6Response +func (c *ClientWithResponses) Delete6WithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*Delete6Response, error) { + rsp, err := c.Delete6(ctx, workspaceId, policyId, requestId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete6Response(rsp) +} + +// ApproveWithResponse request returning *ApproveResponse +func (c *ClientWithResponses) ApproveWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*ApproveResponse, error) { + rsp, err := c.Approve(ctx, workspaceId, policyId, requestId, reqEditors...) + if err != nil { + return nil, err + } + return ParseApproveResponse(rsp) +} + +// RejectWithBodyWithResponse request with arbitrary body returning *RejectResponse +func (c *ClientWithResponses) RejectWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RejectResponse, error) { + rsp, err := c.RejectWithBody(ctx, workspaceId, policyId, requestId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRejectResponse(rsp) +} + +func (c *ClientWithResponses) RejectWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*RejectResponse, error) { + rsp, err := c.Reject(ctx, workspaceId, policyId, requestId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRejectResponse(rsp) +} + +// CreateForOther1WithBodyWithResponse request with arbitrary body returning *CreateForOther1Response +func (c *ClientWithResponses) CreateForOther1WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error) { + rsp, err := c.CreateForOther1WithBody(ctx, workspaceId, policyId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOther1Response(rsp) +} + +func (c *ClientWithResponses) CreateForOther1WithResponse(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error) { + rsp, err := c.CreateForOther1(ctx, workspaceId, policyId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOther1Response(rsp) +} + +// Get1WithBodyWithResponse request with arbitrary body returning *Get1Response +func (c *ClientWithResponses) Get1WithBodyWithResponse(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Get1Response, error) { + rsp, err := c.Get1WithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGet1Response(rsp) +} + +func (c *ClientWithResponses) Get1WithResponse(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*Get1Response, error) { + rsp, err := c.Get1(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGet1Response(rsp) +} + +// GetTimeOffRequestByIdWithResponse request returning *GetTimeOffRequestByIdResponse +func (c *ClientWithResponses) GetTimeOffRequestByIdWithResponse(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*GetTimeOffRequestByIdResponse, error) { + rsp, err := c.GetTimeOffRequestById(ctx, workspaceId, requestId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeOffRequestByIdResponse(rsp) +} + +// GetAllUsersOfWorkspaceWithResponse request returning *GetAllUsersOfWorkspaceResponse +func (c *ClientWithResponses) GetAllUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetAllUsersOfWorkspaceResponse, error) { + rsp, err := c.GetAllUsersOfWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllUsersOfWorkspaceResponse(rsp) +} + +// GetUserGroupsOfWorkspaceWithResponse request returning *GetUserGroupsOfWorkspaceResponse +func (c *ClientWithResponses) GetUserGroupsOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUserGroupsOfWorkspaceResponse, error) { + rsp, err := c.GetUserGroupsOfWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupsOfWorkspaceResponse(rsp) +} + +// GetUsersOfWorkspaceWithResponse request returning *GetUsersOfWorkspaceResponse +func (c *ClientWithResponses) GetUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspaceResponse, error) { + rsp, err := c.GetUsersOfWorkspace(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersOfWorkspaceResponse(rsp) +} + +// GetWithBodyWithResponse request with arbitrary body returning *GetResponse +func (c *ClientWithResponses) GetWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetResponse, error) { + rsp, err := c.GetWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetResponse(rsp) +} + +func (c *ClientWithResponses) GetWithResponse(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*GetResponse, error) { + rsp, err := c.Get(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetResponse(rsp) +} + +// GetTimelineForReportsWithBodyWithResponse request with arbitrary body returning *GetTimelineForReportsResponse +func (c *ClientWithResponses) GetTimelineForReportsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error) { + rsp, err := c.GetTimelineForReportsWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimelineForReportsResponse(rsp) +} + +func (c *ClientWithResponses) GetTimelineForReportsWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error) { + rsp, err := c.GetTimelineForReports(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimelineForReportsResponse(rsp) +} + +// DeleteManyWithBodyWithResponse request with arbitrary body returning *DeleteManyResponse +func (c *ClientWithResponses) DeleteManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error) { + rsp, err := c.DeleteManyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteManyResponse(rsp) +} + +func (c *ClientWithResponses) DeleteManyWithResponse(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error) { + rsp, err := c.DeleteMany(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteManyResponse(rsp) +} + +// GetTimeEntriesBySearchValueWithResponse request returning *GetTimeEntriesBySearchValueResponse +func (c *ClientWithResponses) GetTimeEntriesBySearchValueWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesBySearchValueResponse, error) { + rsp, err := c.GetTimeEntriesBySearchValue(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntriesBySearchValueResponse(rsp) +} + +// Create6WithBodyWithResponse request with arbitrary body returning *Create6Response +func (c *ClientWithResponses) Create6WithBodyWithResponse(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create6Response, error) { + rsp, err := c.Create6WithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate6Response(rsp) +} + +func (c *ClientWithResponses) Create6WithResponse(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*Create6Response, error) { + rsp, err := c.Create6(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate6Response(rsp) +} + +// PatchTimeEntriesWithBodyWithResponse request with arbitrary body returning *PatchTimeEntriesResponse +func (c *ClientWithResponses) PatchTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error) { + rsp, err := c.PatchTimeEntriesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchTimeEntriesResponse(rsp) +} + +func (c *ClientWithResponses) PatchTimeEntriesWithResponse(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error) { + rsp, err := c.PatchTimeEntries(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchTimeEntriesResponse(rsp) +} + +// EndStartedWithBodyWithResponse request with arbitrary body returning *EndStartedResponse +func (c *ClientWithResponses) EndStartedWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndStartedResponse, error) { + rsp, err := c.EndStartedWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEndStartedResponse(rsp) +} + +func (c *ClientWithResponses) EndStartedWithResponse(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*EndStartedResponse, error) { + rsp, err := c.EndStarted(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEndStartedResponse(rsp) +} + +// GetMultipleTimeEntriesByIdWithResponse request returning *GetMultipleTimeEntriesByIdResponse +func (c *ClientWithResponses) GetMultipleTimeEntriesByIdWithResponse(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*GetMultipleTimeEntriesByIdResponse, error) { + rsp, err := c.GetMultipleTimeEntriesById(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetMultipleTimeEntriesByIdResponse(rsp) +} + +// CreateFull1WithBodyWithResponse request with arbitrary body returning *CreateFull1Response +func (c *ClientWithResponses) CreateFull1WithBodyWithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFull1Response, error) { + rsp, err := c.CreateFull1WithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFull1Response(rsp) +} + +func (c *ClientWithResponses) CreateFull1WithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFull1Response, error) { + rsp, err := c.CreateFull1(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFull1Response(rsp) +} + +// GetTimeEntryInProgressWithResponse request returning *GetTimeEntryInProgressResponse +func (c *ClientWithResponses) GetTimeEntryInProgressWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTimeEntryInProgressResponse, error) { + rsp, err := c.GetTimeEntryInProgress(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntryInProgressResponse(rsp) +} + +// UpdateInvoicedStatusWithBodyWithResponse request with arbitrary body returning *UpdateInvoicedStatusResponse +func (c *ClientWithResponses) UpdateInvoicedStatusWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error) { + rsp, err := c.UpdateInvoicedStatusWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoicedStatusResponse(rsp) +} + +func (c *ClientWithResponses) UpdateInvoicedStatusWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error) { + rsp, err := c.UpdateInvoicedStatus(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateInvoicedStatusResponse(rsp) +} + +// ListOfProjectWithResponse request returning *ListOfProjectResponse +func (c *ClientWithResponses) ListOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ListOfProjectResponse, error) { + rsp, err := c.ListOfProject(ctx, workspaceId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseListOfProjectResponse(rsp) +} + +// GetTimeEntriesRecentlyUsedWithResponse request returning *GetTimeEntriesRecentlyUsedResponse +func (c *ClientWithResponses) GetTimeEntriesRecentlyUsedWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesRecentlyUsedResponse, error) { + rsp, err := c.GetTimeEntriesRecentlyUsed(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntriesRecentlyUsedResponse(rsp) +} + +// RestoreTimeEntriesWithBodyWithResponse request with arbitrary body returning *RestoreTimeEntriesResponse +func (c *ClientWithResponses) RestoreTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error) { + rsp, err := c.RestoreTimeEntriesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRestoreTimeEntriesResponse(rsp) +} + +func (c *ClientWithResponses) RestoreTimeEntriesWithResponse(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error) { + rsp, err := c.RestoreTimeEntries(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRestoreTimeEntriesResponse(rsp) +} + +// CreateForManyWithBodyWithResponse request with arbitrary body returning *CreateForManyResponse +func (c *ClientWithResponses) CreateForManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error) { + rsp, err := c.CreateForManyWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForManyResponse(rsp) +} + +func (c *ClientWithResponses) CreateForManyWithResponse(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error) { + rsp, err := c.CreateForMany(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForManyResponse(rsp) +} + +// CreateForOthersWithBodyWithResponse request with arbitrary body returning *CreateForOthersResponse +func (c *ClientWithResponses) CreateForOthersWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error) { + rsp, err := c.CreateForOthersWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOthersResponse(rsp) +} + +func (c *ClientWithResponses) CreateForOthersWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error) { + rsp, err := c.CreateForOthers(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOthersResponse(rsp) +} + +// ListOfFullWithResponse request returning *ListOfFullResponse +func (c *ClientWithResponses) ListOfFullWithResponse(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*ListOfFullResponse, error) { + rsp, err := c.ListOfFull(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListOfFullResponse(rsp) +} + +// GetTimeEntriesWithResponse request returning *GetTimeEntriesResponse +func (c *ClientWithResponses) GetTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesResponse, error) { + rsp, err := c.GetTimeEntries(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntriesResponse(rsp) +} + +// AssertTimeEntriesExistInDateRangeWithResponse request returning *AssertTimeEntriesExistInDateRangeResponse +func (c *ClientWithResponses) AssertTimeEntriesExistInDateRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*AssertTimeEntriesExistInDateRangeResponse, error) { + rsp, err := c.AssertTimeEntriesExistInDateRange(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseAssertTimeEntriesExistInDateRangeResponse(rsp) +} + +// CreateFullWithBodyWithResponse request with arbitrary body returning *CreateFullResponse +func (c *ClientWithResponses) CreateFullWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFullResponse, error) { + rsp, err := c.CreateFullWithBody(ctx, workspaceId, userId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFullResponse(rsp) +} + +func (c *ClientWithResponses) CreateFullWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFullResponse, error) { + rsp, err := c.CreateFull(ctx, workspaceId, userId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFullResponse(rsp) +} + +// GetTimeEntriesInRangeWithResponse request returning *GetTimeEntriesInRangeResponse +func (c *ClientWithResponses) GetTimeEntriesInRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesInRangeResponse, error) { + rsp, err := c.GetTimeEntriesInRange(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntriesInRangeResponse(rsp) +} + +// GetTimeEntriesForTimesheetWithResponse request returning *GetTimeEntriesForTimesheetResponse +func (c *ClientWithResponses) GetTimeEntriesForTimesheetWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesForTimesheetResponse, error) { + rsp, err := c.GetTimeEntriesForTimesheet(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntriesForTimesheetResponse(rsp) +} + +// PatchWithBodyWithResponse request with arbitrary body returning *PatchResponse +func (c *ClientWithResponses) PatchWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchResponse, error) { + rsp, err := c.PatchWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchResponse(rsp) +} + +func (c *ClientWithResponses) PatchWithResponse(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchResponse, error) { + rsp, err := c.Patch(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchResponse(rsp) +} + +// Update3WithBodyWithResponse request with arbitrary body returning *Update3Response +func (c *ClientWithResponses) Update3WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update3Response, error) { + rsp, err := c.Update3WithBody(ctx, workspaceId, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate3Response(rsp) +} + +func (c *ClientWithResponses) Update3WithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*Update3Response, error) { + rsp, err := c.Update3(ctx, workspaceId, id, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate3Response(rsp) +} + +// GetTimeEntryAttributesWithResponse request returning *GetTimeEntryAttributesResponse +func (c *ClientWithResponses) GetTimeEntryAttributesWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*GetTimeEntryAttributesResponse, error) { + rsp, err := c.GetTimeEntryAttributes(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntryAttributesResponse(rsp) +} + +// CreateTimeEntryAttributeWithBodyWithResponse request with arbitrary body returning *CreateTimeEntryAttributeResponse +func (c *ClientWithResponses) CreateTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error) { + rsp, err := c.CreateTimeEntryAttributeWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTimeEntryAttributeResponse(rsp) +} + +func (c *ClientWithResponses) CreateTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error) { + rsp, err := c.CreateTimeEntryAttribute(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTimeEntryAttributeResponse(rsp) +} + +// DeleteTimeEntryAttributeWithBodyWithResponse request with arbitrary body returning *DeleteTimeEntryAttributeResponse +func (c *ClientWithResponses) DeleteTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error) { + rsp, err := c.DeleteTimeEntryAttributeWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteTimeEntryAttributeResponse(rsp) +} + +func (c *ClientWithResponses) DeleteTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error) { + rsp, err := c.DeleteTimeEntryAttribute(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteTimeEntryAttributeResponse(rsp) +} + +// UpdateBillableWithBodyWithResponse request with arbitrary body returning *UpdateBillableResponse +func (c *ClientWithResponses) UpdateBillableWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error) { + rsp, err := c.UpdateBillableWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateBillableResponse(rsp) +} + +func (c *ClientWithResponses) UpdateBillableWithResponse(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error) { + rsp, err := c.UpdateBillable(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateBillableResponse(rsp) +} + +// UpdateDescriptionWithBodyWithResponse request with arbitrary body returning *UpdateDescriptionResponse +func (c *ClientWithResponses) UpdateDescriptionWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error) { + rsp, err := c.UpdateDescriptionWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDescriptionResponse(rsp) +} + +func (c *ClientWithResponses) UpdateDescriptionWithResponse(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error) { + rsp, err := c.UpdateDescription(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateDescriptionResponse(rsp) +} + +// UpdateEndWithBodyWithResponse request with arbitrary body returning *UpdateEndResponse +func (c *ClientWithResponses) UpdateEndWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error) { + rsp, err := c.UpdateEndWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEndResponse(rsp) +} + +func (c *ClientWithResponses) UpdateEndWithResponse(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error) { + rsp, err := c.UpdateEnd(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateEndResponse(rsp) +} + +// UpdateFullWithBodyWithResponse request with arbitrary body returning *UpdateFullResponse +func (c *ClientWithResponses) UpdateFullWithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error) { + rsp, err := c.UpdateFullWithBody(ctx, workspaceId, id, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateFullResponse(rsp) +} + +func (c *ClientWithResponses) UpdateFullWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error) { + rsp, err := c.UpdateFull(ctx, workspaceId, id, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateFullResponse(rsp) +} + +// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse +func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { + rsp, err := c.UpdateProjectWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectResponse(rsp) +} + +func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) { + rsp, err := c.UpdateProject(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectResponse(rsp) +} + +// RemoveProjectWithResponse request returning *RemoveProjectResponse +func (c *ClientWithResponses) RemoveProjectWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveProjectResponse, error) { + rsp, err := c.RemoveProject(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveProjectResponse(rsp) +} + +// UpdateProjectAndTaskWithBodyWithResponse request with arbitrary body returning *UpdateProjectAndTaskResponse +func (c *ClientWithResponses) UpdateProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error) { + rsp, err := c.UpdateProjectAndTaskWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectAndTaskResponse(rsp) +} + +func (c *ClientWithResponses) UpdateProjectAndTaskWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error) { + rsp, err := c.UpdateProjectAndTask(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateProjectAndTaskResponse(rsp) +} + +// UpdateAndSplitWithBodyWithResponse request with arbitrary body returning *UpdateAndSplitResponse +func (c *ClientWithResponses) UpdateAndSplitWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error) { + rsp, err := c.UpdateAndSplitWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAndSplitResponse(rsp) +} + +func (c *ClientWithResponses) UpdateAndSplitWithResponse(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error) { + rsp, err := c.UpdateAndSplit(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateAndSplitResponse(rsp) +} + +// SplitTimeEntryWithBodyWithResponse request with arbitrary body returning *SplitTimeEntryResponse +func (c *ClientWithResponses) SplitTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error) { + rsp, err := c.SplitTimeEntryWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSplitTimeEntryResponse(rsp) +} + +func (c *ClientWithResponses) SplitTimeEntryWithResponse(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error) { + rsp, err := c.SplitTimeEntry(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSplitTimeEntryResponse(rsp) +} + +// UpdateStartWithBodyWithResponse request with arbitrary body returning *UpdateStartResponse +func (c *ClientWithResponses) UpdateStartWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error) { + rsp, err := c.UpdateStartWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStartResponse(rsp) +} + +func (c *ClientWithResponses) UpdateStartWithResponse(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error) { + rsp, err := c.UpdateStart(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateStartResponse(rsp) +} + +// UpdateTagsWithBodyWithResponse request with arbitrary body returning *UpdateTagsResponse +func (c *ClientWithResponses) UpdateTagsWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error) { + rsp, err := c.UpdateTagsWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTagsResponse(rsp) +} + +func (c *ClientWithResponses) UpdateTagsWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error) { + rsp, err := c.UpdateTags(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTagsResponse(rsp) +} + +// RemoveTaskWithResponse request returning *RemoveTaskResponse +func (c *ClientWithResponses) RemoveTaskWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveTaskResponse, error) { + rsp, err := c.RemoveTask(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveTaskResponse(rsp) +} + +// UpdateTimeIntervalWithBodyWithResponse request with arbitrary body returning *UpdateTimeIntervalResponse +func (c *ClientWithResponses) UpdateTimeIntervalWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error) { + rsp, err := c.UpdateTimeIntervalWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimeIntervalResponse(rsp) +} + +func (c *ClientWithResponses) UpdateTimeIntervalWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error) { + rsp, err := c.UpdateTimeInterval(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateTimeIntervalResponse(rsp) +} + +// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse +func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUserWithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserResponse(rsp) +} + +func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) { + rsp, err := c.UpdateUser(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserResponse(rsp) +} + +// Delete5WithResponse request returning *Delete5Response +func (c *ClientWithResponses) Delete5WithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*Delete5Response, error) { + rsp, err := c.Delete5(ctx, workspaceId, timeEntryId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete5Response(rsp) +} + +// UpdateCustomFieldWithBodyWithResponse request with arbitrary body returning *UpdateCustomFieldResponse +func (c *ClientWithResponses) UpdateCustomFieldWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) { + rsp, err := c.UpdateCustomFieldWithBody(ctx, workspaceId, timeEntryId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomFieldResponse(rsp) +} + +func (c *ClientWithResponses) UpdateCustomFieldWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) { + rsp, err := c.UpdateCustomField(ctx, workspaceId, timeEntryId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateCustomFieldResponse(rsp) +} + +// PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse request with arbitrary body returning *PenalizeCurrentTimerAndStartNewTimeEntryResponse +func (c *ClientWithResponses) PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) { + rsp, err := c.PenalizeCurrentTimerAndStartNewTimeEntryWithBody(ctx, workspaceId, timeEntryId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse(rsp) +} + +func (c *ClientWithResponses) PenalizeCurrentTimerAndStartNewTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) { + rsp, err := c.PenalizeCurrentTimerAndStartNewTimeEntry(ctx, workspaceId, timeEntryId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse(rsp) +} + +// TransferWorkspaceDeprecatedFlowWithBodyWithResponse request with arbitrary body returning *TransferWorkspaceDeprecatedFlowResponse +func (c *ClientWithResponses) TransferWorkspaceDeprecatedFlowWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error) { + rsp, err := c.TransferWorkspaceDeprecatedFlowWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTransferWorkspaceDeprecatedFlowResponse(rsp) +} + +func (c *ClientWithResponses) TransferWorkspaceDeprecatedFlowWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error) { + rsp, err := c.TransferWorkspaceDeprecatedFlow(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTransferWorkspaceDeprecatedFlowResponse(rsp) +} + +// TransferWorkspaceWithBodyWithResponse request with arbitrary body returning *TransferWorkspaceResponse +func (c *ClientWithResponses) TransferWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error) { + rsp, err := c.TransferWorkspaceWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTransferWorkspaceResponse(rsp) +} + +func (c *ClientWithResponses) TransferWorkspaceWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error) { + rsp, err := c.TransferWorkspace(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseTransferWorkspaceResponse(rsp) +} + +// GetTrialActivationDataWithResponse request returning *GetTrialActivationDataResponse +func (c *ClientWithResponses) GetTrialActivationDataWithResponse(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*GetTrialActivationDataResponse, error) { + rsp, err := c.GetTrialActivationData(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTrialActivationDataResponse(rsp) +} + +// RemoveMemberWithResponse request returning *RemoveMemberResponse +func (c *ClientWithResponses) RemoveMemberWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*RemoveMemberResponse, error) { + rsp, err := c.RemoveMember(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveMemberResponse(rsp) +} + +// CopyTimeEntryCalendarDragWithBodyWithResponse request with arbitrary body returning *CopyTimeEntryCalendarDragResponse +func (c *ClientWithResponses) CopyTimeEntryCalendarDragWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error) { + rsp, err := c.CopyTimeEntryCalendarDragWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCopyTimeEntryCalendarDragResponse(rsp) +} + +func (c *ClientWithResponses) CopyTimeEntryCalendarDragWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error) { + rsp, err := c.CopyTimeEntryCalendarDrag(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCopyTimeEntryCalendarDragResponse(rsp) +} + +// DuplicateTimeEntryWithResponse request returning *DuplicateTimeEntryResponse +func (c *ClientWithResponses) DuplicateTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*DuplicateTimeEntryResponse, error) { + rsp, err := c.DuplicateTimeEntry(ctx, workspaceId, userId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDuplicateTimeEntryResponse(rsp) +} + +// GetUserGroups1WithResponse request returning *GetUserGroups1Response +func (c *ClientWithResponses) GetUserGroups1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUserGroups1Response, error) { + rsp, err := c.GetUserGroups1(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroups1Response(rsp) +} + +// Create5WithBodyWithResponse request with arbitrary body returning *Create5Response +func (c *ClientWithResponses) Create5WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create5Response, error) { + rsp, err := c.Create5WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate5Response(rsp) +} + +func (c *ClientWithResponses) Create5WithResponse(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*Create5Response, error) { + rsp, err := c.Create5(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate5Response(rsp) +} + +// GetUserGroups2WithResponse request returning *GetUserGroups2Response +func (c *ClientWithResponses) GetUserGroups2WithResponse(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*GetUserGroups2Response, error) { + rsp, err := c.GetUserGroups2(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroups2Response(rsp) +} + +// GetUserGroupNamesWithBodyWithResponse request with arbitrary body returning *GetUserGroupNamesResponse +func (c *ClientWithResponses) GetUserGroupNamesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error) { + rsp, err := c.GetUserGroupNamesWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupNamesResponse(rsp) +} + +func (c *ClientWithResponses) GetUserGroupNamesWithResponse(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error) { + rsp, err := c.GetUserGroupNames(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupNamesResponse(rsp) +} + +// GetUsersForReportFilter1WithResponse request returning *GetUsersForReportFilter1Response +func (c *ClientWithResponses) GetUsersForReportFilter1WithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*GetUsersForReportFilter1Response, error) { + rsp, err := c.GetUsersForReportFilter1(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForReportFilter1Response(rsp) +} + +// GetUserGroupForReportFilterPostWithBodyWithResponse request with arbitrary body returning *GetUserGroupForReportFilterPostResponse +func (c *ClientWithResponses) GetUserGroupForReportFilterPostWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error) { + rsp, err := c.GetUserGroupForReportFilterPostWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupForReportFilterPostResponse(rsp) +} + +func (c *ClientWithResponses) GetUserGroupForReportFilterPostWithResponse(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error) { + rsp, err := c.GetUserGroupForReportFilterPost(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupForReportFilterPostResponse(rsp) +} + +// GetUsersForAttendanceReportFilterWithBodyWithResponse request with arbitrary body returning *GetUsersForAttendanceReportFilterResponse +func (c *ClientWithResponses) GetUsersForAttendanceReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error) { + rsp, err := c.GetUsersForAttendanceReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForAttendanceReportFilterResponse(rsp) +} + +func (c *ClientWithResponses) GetUsersForAttendanceReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error) { + rsp, err := c.GetUsersForAttendanceReportFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersForAttendanceReportFilterResponse(rsp) +} + +// GetUserGroupIdsByNameWithResponse request returning *GetUserGroupIdsByNameResponse +func (c *ClientWithResponses) GetUserGroupIdsByNameWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*GetUserGroupIdsByNameResponse, error) { + rsp, err := c.GetUserGroupIdsByName(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupIdsByNameResponse(rsp) +} + +// GetUserGroupsWithBodyWithResponse request with arbitrary body returning *GetUserGroupsResponse +func (c *ClientWithResponses) GetUserGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error) { + rsp, err := c.GetUserGroupsWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupsResponse(rsp) +} + +func (c *ClientWithResponses) GetUserGroupsWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error) { + rsp, err := c.GetUserGroups(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserGroupsResponse(rsp) +} + +// RemoveUserWithBodyWithResponse request with arbitrary body returning *RemoveUserResponse +func (c *ClientWithResponses) RemoveUserWithBodyWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error) { + rsp, err := c.RemoveUserWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveUserResponse(rsp) +} + +func (c *ClientWithResponses) RemoveUserWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error) { + rsp, err := c.RemoveUser(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveUserResponse(rsp) +} + +// AddUsersToUserGroupsFilterWithBodyWithResponse request with arbitrary body returning *AddUsersToUserGroupsFilterResponse +func (c *ClientWithResponses) AddUsersToUserGroupsFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error) { + rsp, err := c.AddUsersToUserGroupsFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersToUserGroupsFilterResponse(rsp) +} + +func (c *ClientWithResponses) AddUsersToUserGroupsFilterWithResponse(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error) { + rsp, err := c.AddUsersToUserGroupsFilter(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersToUserGroupsFilterResponse(rsp) +} + +// Delete4WithResponse request returning *Delete4Response +func (c *ClientWithResponses) Delete4WithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*Delete4Response, error) { + rsp, err := c.Delete4(ctx, workspaceId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete4Response(rsp) +} + +// Update2WithBodyWithResponse request with arbitrary body returning *Update2Response +func (c *ClientWithResponses) Update2WithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update2Response, error) { + rsp, err := c.Update2WithBody(ctx, workspaceId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate2Response(rsp) +} + +func (c *ClientWithResponses) Update2WithResponse(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*Update2Response, error) { + rsp, err := c.Update2(ctx, workspaceId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate2Response(rsp) +} + +// GetUsersWithBodyWithResponse request with arbitrary body returning *GetUsersResponse +func (c *ClientWithResponses) GetUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) { + rsp, err := c.GetUsersWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersResponse(rsp) +} + +func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) { + rsp, err := c.GetUsers(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersResponse(rsp) +} + +// GetUsers1WithResponse request returning *GetUsers1Response +func (c *ClientWithResponses) GetUsers1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsers1Response, error) { + rsp, err := c.GetUsers1(ctx, workspaceId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsers1Response(rsp) +} + +// AddUsersWithBodyWithResponse request with arbitrary body returning *AddUsersResponse +func (c *ClientWithResponses) AddUsersWithBodyWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersResponse, error) { + rsp, err := c.AddUsersWithBody(ctx, workspaceId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersResponse(rsp) +} + +func (c *ClientWithResponses) AddUsersWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersResponse, error) { + rsp, err := c.AddUsers(ctx, workspaceId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseAddUsersResponse(rsp) +} + +// GetExpensesForUsersWithResponse request returning *GetExpensesForUsersResponse +func (c *ClientWithResponses) GetExpensesForUsersWithResponse(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*GetExpensesForUsersResponse, error) { + rsp, err := c.GetExpensesForUsers(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetExpensesForUsersResponse(rsp) +} + +// SetMembershipsWithBodyWithResponse request with arbitrary body returning *SetMembershipsResponse +func (c *ClientWithResponses) SetMembershipsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error) { + rsp, err := c.SetMembershipsWithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetMembershipsResponse(rsp) +} + +func (c *ClientWithResponses) SetMembershipsWithResponse(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error) { + rsp, err := c.SetMemberships(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetMembershipsResponse(rsp) +} + +// ResendInviteWithResponse request returning *ResendInviteResponse +func (c *ClientWithResponses) ResendInviteWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ResendInviteResponse, error) { + rsp, err := c.ResendInvite(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseResendInviteResponse(rsp) +} + +// CreateDeprecatedWithBodyWithResponse request with arbitrary body returning *CreateDeprecatedResponse +func (c *ClientWithResponses) CreateDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error) { + rsp, err := c.CreateDeprecatedWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateDeprecatedResponse(rsp) +} + +func (c *ClientWithResponses) CreateDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error) { + rsp, err := c.CreateDeprecated(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateDeprecatedResponse(rsp) +} + +// GetRequestsByUserWithResponse request returning *GetRequestsByUserResponse +func (c *ClientWithResponses) GetRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetRequestsByUserResponse, error) { + rsp, err := c.GetRequestsByUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRequestsByUserResponse(rsp) +} + +// GetApprovedTotalsWithBodyWithResponse request with arbitrary body returning *GetApprovedTotalsResponse +func (c *ClientWithResponses) GetApprovedTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error) { + rsp, err := c.GetApprovedTotalsWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovedTotalsResponse(rsp) +} + +func (c *ClientWithResponses) GetApprovedTotalsWithResponse(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error) { + rsp, err := c.GetApprovedTotals(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetApprovedTotalsResponse(rsp) +} + +// CreateForOtherDeprecatedWithBodyWithResponse request with arbitrary body returning *CreateForOtherDeprecatedResponse +func (c *ClientWithResponses) CreateForOtherDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error) { + rsp, err := c.CreateForOtherDeprecatedWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOtherDeprecatedResponse(rsp) +} + +func (c *ClientWithResponses) CreateForOtherDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error) { + rsp, err := c.CreateForOtherDeprecated(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOtherDeprecatedResponse(rsp) +} + +// GetPreviewWithBodyWithResponse request with arbitrary body returning *GetPreviewResponse +func (c *ClientWithResponses) GetPreviewWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error) { + rsp, err := c.GetPreviewWithBody(ctx, workspaceId, userId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPreviewResponse(rsp) +} + +func (c *ClientWithResponses) GetPreviewWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error) { + rsp, err := c.GetPreview(ctx, workspaceId, userId, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPreviewResponse(rsp) +} + +// GetTimeEntryStatusWithResponse request returning *GetTimeEntryStatusResponse +func (c *ClientWithResponses) GetTimeEntryStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryStatusResponse, error) { + rsp, err := c.GetTimeEntryStatus(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntryStatusResponse(rsp) +} + +// GetTimeEntryWeekStatusWithResponse request returning *GetTimeEntryWeekStatusResponse +func (c *ClientWithResponses) GetTimeEntryWeekStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryWeekStatusResponse, error) { + rsp, err := c.GetTimeEntryWeekStatus(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTimeEntryWeekStatusResponse(rsp) +} + +// GetWeeklyRequestsByUserWithResponse request returning *GetWeeklyRequestsByUserResponse +func (c *ClientWithResponses) GetWeeklyRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeeklyRequestsByUserResponse, error) { + rsp, err := c.GetWeeklyRequestsByUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWeeklyRequestsByUserResponse(rsp) +} + +// WithdrawAllOfUserWithResponse request returning *WithdrawAllOfUserResponse +func (c *ClientWithResponses) WithdrawAllOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfUserResponse, error) { + rsp, err := c.WithdrawAllOfUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseWithdrawAllOfUserResponse(rsp) +} + +// WithdrawAllOfWorkspaceDeprecatedWithResponse request returning *WithdrawAllOfWorkspaceDeprecatedResponse +func (c *ClientWithResponses) WithdrawAllOfWorkspaceDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceDeprecatedResponse, error) { + rsp, err := c.WithdrawAllOfWorkspaceDeprecated(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseWithdrawAllOfWorkspaceDeprecatedResponse(rsp) +} + +// WithdrawWeeklyOfUserWithResponse request returning *WithdrawWeeklyOfUserResponse +func (c *ClientWithResponses) WithdrawWeeklyOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawWeeklyOfUserResponse, error) { + rsp, err := c.WithdrawWeeklyOfUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseWithdrawWeeklyOfUserResponse(rsp) +} + +// SetCostRateForUser1WithBodyWithResponse request with arbitrary body returning *SetCostRateForUser1Response +func (c *ClientWithResponses) SetCostRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error) { + rsp, err := c.SetCostRateForUser1WithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRateForUser1Response(rsp) +} + +func (c *ClientWithResponses) SetCostRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error) { + rsp, err := c.SetCostRateForUser1(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetCostRateForUser1Response(rsp) +} + +// UpsertUserCustomFieldValueWithBodyWithResponse request with arbitrary body returning *UpsertUserCustomFieldValueResponse +func (c *ClientWithResponses) UpsertUserCustomFieldValueWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error) { + rsp, err := c.UpsertUserCustomFieldValueWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpsertUserCustomFieldValueResponse(rsp) +} + +func (c *ClientWithResponses) UpsertUserCustomFieldValueWithResponse(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error) { + rsp, err := c.UpsertUserCustomFieldValue(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpsertUserCustomFieldValueResponse(rsp) +} + +// GetFavoriteEntriesWithResponse request returning *GetFavoriteEntriesResponse +func (c *ClientWithResponses) GetFavoriteEntriesWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetFavoriteEntriesResponse, error) { + rsp, err := c.GetFavoriteEntries(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetFavoriteEntriesResponse(rsp) +} + +// CreateFavoriteTimeEntryWithBodyWithResponse request with arbitrary body returning *CreateFavoriteTimeEntryResponse +func (c *ClientWithResponses) CreateFavoriteTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error) { + rsp, err := c.CreateFavoriteTimeEntryWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFavoriteTimeEntryResponse(rsp) +} + +func (c *ClientWithResponses) CreateFavoriteTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error) { + rsp, err := c.CreateFavoriteTimeEntry(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateFavoriteTimeEntryResponse(rsp) +} + +// ReorderInvoiceItemWithBodyWithResponse request with arbitrary body returning *ReorderInvoiceItemResponse +func (c *ClientWithResponses) ReorderInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error) { + rsp, err := c.ReorderInvoiceItemWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReorderInvoiceItemResponse(rsp) +} + +func (c *ClientWithResponses) ReorderInvoiceItemWithResponse(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error) { + rsp, err := c.ReorderInvoiceItem(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReorderInvoiceItemResponse(rsp) +} + +// Delete3WithResponse request returning *Delete3Response +func (c *ClientWithResponses) Delete3WithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*Delete3Response, error) { + rsp, err := c.Delete3(ctx, workspaceId, userId, id, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete3Response(rsp) +} + +// Update1WithBodyWithResponse request with arbitrary body returning *Update1Response +func (c *ClientWithResponses) Update1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update1Response, error) { + rsp, err := c.Update1WithBody(ctx, workspaceId, userId, id, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate1Response(rsp) +} + +func (c *ClientWithResponses) Update1WithResponse(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*Update1Response, error) { + rsp, err := c.Update1(ctx, workspaceId, userId, id, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdate1Response(rsp) +} + +// GetHolidays1WithResponse request returning *GetHolidays1Response +func (c *ClientWithResponses) GetHolidays1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*GetHolidays1Response, error) { + rsp, err := c.GetHolidays1(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetHolidays1Response(rsp) +} + +// SetHourlyRateForUser1WithBodyWithResponse request with arbitrary body returning *SetHourlyRateForUser1Response +func (c *ClientWithResponses) SetHourlyRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error) { + rsp, err := c.SetHourlyRateForUser1WithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRateForUser1Response(rsp) +} + +func (c *ClientWithResponses) SetHourlyRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error) { + rsp, err := c.SetHourlyRateForUser1(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseSetHourlyRateForUser1Response(rsp) +} + +// GetPermissionsToUserWithResponse request returning *GetPermissionsToUserResponse +func (c *ClientWithResponses) GetPermissionsToUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUserResponse, error) { + rsp, err := c.GetPermissionsToUser(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPermissionsToUserResponse(rsp) +} + +// RemoveFavoriteProjectWithResponse request returning *RemoveFavoriteProjectResponse +func (c *ClientWithResponses) RemoveFavoriteProjectWithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveFavoriteProjectResponse, error) { + rsp, err := c.RemoveFavoriteProject(ctx, workspaceId, userId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseRemoveFavoriteProjectResponse(rsp) +} + +// Delete2WithResponse request returning *Delete2Response +func (c *ClientWithResponses) Delete2WithResponse(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*Delete2Response, error) { + rsp, err := c.Delete2(ctx, workspaceId, userId, projectFavoritesId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete2Response(rsp) +} + +// Create4WithResponse request returning *Create4Response +func (c *ClientWithResponses) Create4WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*Create4Response, error) { + rsp, err := c.Create4(ctx, workspaceId, userId, projectId, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate4Response(rsp) +} + +// Delete1WithResponse request returning *Delete1Response +func (c *ClientWithResponses) Delete1WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete1Response, error) { + rsp, err := c.Delete1(ctx, workspaceId, userId, projectId, taskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDelete1Response(rsp) +} + +// Create3WithResponse request returning *Create3Response +func (c *ClientWithResponses) Create3WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Create3Response, error) { + rsp, err := c.Create3(ctx, workspaceId, userId, projectId, taskId, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate3Response(rsp) +} + +// ReSubmitWithBodyWithResponse request with arbitrary body returning *ReSubmitResponse +func (c *ClientWithResponses) ReSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error) { + rsp, err := c.ReSubmitWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReSubmitResponse(rsp) +} + +func (c *ClientWithResponses) ReSubmitWithResponse(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error) { + rsp, err := c.ReSubmit(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseReSubmitResponse(rsp) +} + +// GetUserRolesWithResponse request returning *GetUserRolesResponse +func (c *ClientWithResponses) GetUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*GetUserRolesResponse, error) { + rsp, err := c.GetUserRoles(ctx, workspaceId, userId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserRolesResponse(rsp) +} + +// UpdateUserRolesWithBodyWithResponse request with arbitrary body returning *UpdateUserRolesResponse +func (c *ClientWithResponses) UpdateUserRolesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error) { + rsp, err := c.UpdateUserRolesWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserRolesResponse(rsp) +} + +func (c *ClientWithResponses) UpdateUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error) { + rsp, err := c.UpdateUserRoles(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateUserRolesResponse(rsp) +} + +// Create2WithBodyWithResponse request with arbitrary body returning *Create2Response +func (c *ClientWithResponses) Create2WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create2Response, error) { + rsp, err := c.Create2WithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate2Response(rsp) +} + +func (c *ClientWithResponses) Create2WithResponse(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*Create2Response, error) { + rsp, err := c.Create2(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate2Response(rsp) +} + +// CreateForOtherWithBodyWithResponse request with arbitrary body returning *CreateForOtherResponse +func (c *ClientWithResponses) CreateForOtherWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error) { + rsp, err := c.CreateForOtherWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOtherResponse(rsp) +} + +func (c *ClientWithResponses) CreateForOtherWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error) { + rsp, err := c.CreateForOther(ctx, workspaceId, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateForOtherResponse(rsp) +} + +// GetWorkCapacityWithResponse request returning *GetWorkCapacityResponse +func (c *ClientWithResponses) GetWorkCapacityWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityResponse, error) { + rsp, err := c.GetWorkCapacity(ctx, workspaceId, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkCapacityResponse(rsp) +} + +// GetWebhooksWithResponse request returning *GetWebhooksResponse +func (c *ClientWithResponses) GetWebhooksWithResponse(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*GetWebhooksResponse, error) { + rsp, err := c.GetWebhooks(ctx, workspaceId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWebhooksResponse(rsp) +} + +// Create1WithBodyWithResponse request with arbitrary body returning *Create1Response +func (c *ClientWithResponses) Create1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create1Response, error) { + rsp, err := c.Create1WithBody(ctx, workspaceId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate1Response(rsp) +} + +func (c *ClientWithResponses) Create1WithResponse(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*Create1Response, error) { + rsp, err := c.Create1(ctx, workspaceId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreate1Response(rsp) +} + +// DeleteWithResponse request returning *DeleteResponse +func (c *ClientWithResponses) DeleteWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*DeleteResponse, error) { + rsp, err := c.Delete(ctx, workspaceId, webhookId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteResponse(rsp) +} + +// GetWebhookWithResponse request returning *GetWebhookResponse +func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error) { + rsp, err := c.GetWebhook(ctx, workspaceId, webhookId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWebhookResponse(rsp) +} + +// UpdateWithBodyWithResponse request with arbitrary body returning *UpdateResponse +func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error) { + rsp, err := c.UpdateWithBody(ctx, workspaceId, webhookId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateResponse(rsp) +} + +func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error) { + rsp, err := c.Update(ctx, workspaceId, webhookId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateResponse(rsp) +} + +// GetLogsForWebhook1WithResponse request returning *GetLogsForWebhook1Response +func (c *ClientWithResponses) GetLogsForWebhook1WithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*GetLogsForWebhook1Response, error) { + rsp, err := c.GetLogsForWebhook1(ctx, workspaceId, webhookId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLogsForWebhook1Response(rsp) +} + +// GetLogCountWithResponse request returning *GetLogCountResponse +func (c *ClientWithResponses) GetLogCountWithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*GetLogCountResponse, error) { + rsp, err := c.GetLogCount(ctx, workspaceId, webhookId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLogCountResponse(rsp) +} + +// TriggerResendEventForWebhookWithResponse request returning *TriggerResendEventForWebhookResponse +func (c *ClientWithResponses) TriggerResendEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*TriggerResendEventForWebhookResponse, error) { + rsp, err := c.TriggerResendEventForWebhook(ctx, workspaceId, webhookId, webhookLogId, reqEditors...) + if err != nil { + return nil, err + } + return ParseTriggerResendEventForWebhookResponse(rsp) +} + +// TriggerTestEventForWebhookWithResponse request returning *TriggerTestEventForWebhookResponse +func (c *ClientWithResponses) TriggerTestEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*TriggerTestEventForWebhookResponse, error) { + rsp, err := c.TriggerTestEventForWebhook(ctx, workspaceId, webhookId, reqEditors...) + if err != nil { + return nil, err + } + return ParseTriggerTestEventForWebhookResponse(rsp) +} + +// GenerateNewTokenWithResponse request returning *GenerateNewTokenResponse +func (c *ClientWithResponses) GenerateNewTokenWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GenerateNewTokenResponse, error) { + rsp, err := c.GenerateNewToken(ctx, workspaceId, webhookId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGenerateNewTokenResponse(rsp) +} + +// ParseGetInitialDataResponse parses an HTTP response from a GetInitialDataWithResponse call +func ParseGetInitialDataResponse(rsp *http.Response) (*GetInitialDataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInitialDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceEmailLinkDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDownloadReportResponse parses an HTTP response from a DownloadReportWithResponse call +func ParseDownloadReportResponse(rsp *http.Response) (*DownloadReportResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DownloadReportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest openapi_types.File + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseResetPinResponse parses an HTTP response from a ResetPinWithResponse call +func ParseResetPinResponse(rsp *http.Response) (*ResetPinResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ResetPinResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseValidatePinResponse parses an HTTP response from a ValidatePinWithResponse call +func ParseValidatePinResponse(rsp *http.Response) (*ValidatePinResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ValidatePinResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceEmailLinkPinValidationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSmtpConfigurationResponse parses an HTTP response from a UpdateSmtpConfigurationWithResponse call +func ParseUpdateSmtpConfigurationResponse(rsp *http.Response) (*UpdateSmtpConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSmtpConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SMTPConfigurationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDisableAccessToEntitiesInTransferResponse parses an HTTP response from a DisableAccessToEntitiesInTransferWithResponse call +func ParseDisableAccessToEntitiesInTransferResponse(rsp *http.Response) (*DisableAccessToEntitiesInTransferResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DisableAccessToEntitiesInTransferResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest WorkspaceTransferAccessDisabledDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseEnableAccessToEntitiesInTransferResponse parses an HTTP response from a EnableAccessToEntitiesInTransferWithResponse call +func ParseEnableAccessToEntitiesInTransferResponse(rsp *http.Response) (*EnableAccessToEntitiesInTransferResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EnableAccessToEntitiesInTransferResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUsersExistResponse parses an HTTP response from a UsersExistWithResponse call +func ParseUsersExistResponse(rsp *http.Response) (*UsersExistResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UsersExistResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHandleCleanupOnSourceRegionResponse parses an HTTP response from a HandleCleanupOnSourceRegionWithResponse call +func ParseHandleCleanupOnSourceRegionResponse(rsp *http.Response) (*HandleCleanupOnSourceRegionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HandleCleanupOnSourceRegionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseHandleTransferCompletedOnSourceRegionResponse parses an HTTP response from a HandleTransferCompletedOnSourceRegionWithResponse call +func ParseHandleTransferCompletedOnSourceRegionResponse(rsp *http.Response) (*HandleTransferCompletedOnSourceRegionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HandleTransferCompletedOnSourceRegionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseHandleTransferCompletedFailureResponse parses an HTTP response from a HandleTransferCompletedFailureWithResponse call +func ParseHandleTransferCompletedFailureResponse(rsp *http.Response) (*HandleTransferCompletedFailureResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HandleTransferCompletedFailureResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseHandleTransferCompletedSuccessResponse parses an HTTP response from a HandleTransferCompletedSuccessWithResponse call +func ParseHandleTransferCompletedSuccessResponse(rsp *http.Response) (*HandleTransferCompletedSuccessResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HandleTransferCompletedSuccessResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAllUsersResponse parses an HTTP response from a GetAllUsersWithResponse call +func ParseGetAllUsersResponse(rsp *http.Response) (*GetAllUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UsersDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserInfoResponse parses an HTTP response from a GetUserInfoWithResponse call +func ParseGetUserInfoResponse(rsp *http.Response) (*GetUserInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TeamMemberInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserMembershipsAndInvitesResponse parses an HTTP response from a GetUserMembershipsAndInvitesWithResponse call +func ParseGetUserMembershipsAndInvitesResponse(rsp *http.Response) (*GetUserMembershipsAndInvitesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserMembershipsAndInvitesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserMembershipAndInviteDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCheckForNewsletterSubscriptionResponse parses an HTTP response from a CheckForNewsletterSubscriptionWithResponse call +func ParseCheckForNewsletterSubscriptionResponse(rsp *http.Response) (*CheckForNewsletterSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CheckForNewsletterSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddNotificationsResponse parses an HTTP response from a AddNotificationsWithResponse call +func ParseAddNotificationsResponse(rsp *http.Response) (*AddNotificationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddNotificationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetNewsResponse parses an HTTP response from a GetNewsWithResponse call +func ParseGetNewsResponse(rsp *http.Response) (*GetNewsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetNewsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []NewsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteNewsResponse parses an HTTP response from a DeleteNewsWithResponse call +func ParseDeleteNewsResponse(rsp *http.Response) (*DeleteNewsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteNewsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUpdateNewsResponse parses an HTTP response from a UpdateNewsWithResponse call +func ParseUpdateNewsResponse(rsp *http.Response) (*UpdateNewsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateNewsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseSearchAllUsersResponse parses an HTTP response from a SearchAllUsersWithResponse call +func ParseSearchAllUsersResponse(rsp *http.Response) (*SearchAllUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SearchAllUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UsersDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseNumberOfUsersRegisteredResponse parses an HTTP response from a NumberOfUsersRegisteredWithResponse call +func ParseNumberOfUsersRegisteredResponse(rsp *http.Response) (*NumberOfUsersRegisteredResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &NumberOfUsersRegisteredResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersOnWorkspaceResponse parses an HTTP response from a GetUsersOnWorkspaceWithResponse call +func ParseGetUsersOnWorkspaceResponse(rsp *http.Response) (*GetUsersOnWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOnWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UsersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseBulkEditUsersResponse parses an HTTP response from a BulkEditUsersWithResponse call +func ParseBulkEditUsersResponse(rsp *http.Response) (*BulkEditUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &BulkEditUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetUsersOfWorkspace5Response parses an HTTP response from a GetUsersOfWorkspace5WithResponse call +func ParseGetUsersOfWorkspace5Response(rsp *http.Response) (*GetUsersOfWorkspace5Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOfWorkspace5Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserListAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInfoResponse parses an HTTP response from a GetInfoWithResponse call +func ParseGetInfoResponse(rsp *http.Response) (*GetInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TeamMemberInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetMembersInfoResponse parses an HTTP response from a GetMembersInfoWithResponse call +func ParseGetMembersInfoResponse(rsp *http.Response) (*GetMembersInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetMembersInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TeamMemberInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserNamesResponse parses an HTTP response from a GetUserNamesWithResponse call +func ParseGetUserNamesResponse(rsp *http.Response) (*GetUserNamesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserNamesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []EntityIdNameDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFindPoliciesToBeApprovedByUserResponse parses an HTTP response from a FindPoliciesToBeApprovedByUserWithResponse call +func ParseFindPoliciesToBeApprovedByUserResponse(rsp *http.Response) (*FindPoliciesToBeApprovedByUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindPoliciesToBeApprovedByUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersAndUsersFromUserGroupsAssignedToProjectResponse parses an HTTP response from a GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse call +func ParseGetUsersAndUsersFromUserGroupsAssignedToProjectResponse(rsp *http.Response) (*GetUsersAndUsersFromUserGroupsAssignedToProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersAndUsersFromUserGroupsAssignedToProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersForProjectMembersFilterResponse parses an HTTP response from a GetUsersForProjectMembersFilterWithResponse call +func ParseGetUsersForProjectMembersFilterResponse(rsp *http.Response) (*GetUsersForProjectMembersFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersForProjectMembersFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersForAttendanceReportFilter1Response parses an HTTP response from a GetUsersForAttendanceReportFilter1WithResponse call +func ParseGetUsersForAttendanceReportFilter1Response(rsp *http.Response) (*GetUsersForAttendanceReportFilter1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersForAttendanceReportFilter1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersOfWorkspace4Response parses an HTTP response from a GetUsersOfWorkspace4WithResponse call +func ParseGetUsersOfWorkspace4Response(rsp *http.Response) (*GetUsersOfWorkspace4Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOfWorkspace4Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersForReportFilterOldResponse parses an HTTP response from a GetUsersForReportFilterOldWithResponse call +func ParseGetUsersForReportFilterOldResponse(rsp *http.Response) (*GetUsersForReportFilterOldResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersForReportFilterOldResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersForReportFilterResponse parses an HTTP response from a GetUsersForReportFilterWithResponse call +func ParseGetUsersForReportFilterResponse(rsp *http.Response) (*GetUsersForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersOfUserGroupResponse parses an HTTP response from a GetUsersOfUserGroupWithResponse call +func ParseGetUsersOfUserGroupResponse(rsp *http.Response) (*GetUsersOfUserGroupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOfUserGroupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersOfWorkspace3Response parses an HTTP response from a GetUsersOfWorkspace3WithResponse call +func ParseGetUsersOfWorkspace3Response(rsp *http.Response) (*GetUsersOfWorkspace3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOfWorkspace3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersOfWorkspace2Response parses an HTTP response from a GetUsersOfWorkspace2WithResponse call +func ParseGetUsersOfWorkspace2Response(rsp *http.Response) (*GetUsersOfWorkspace2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOfWorkspace2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TeamMembersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call +func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateTimeTrackingSettings1Response parses an HTTP response from a UpdateTimeTrackingSettings1WithResponse call +func ParseUpdateTimeTrackingSettings1Response(rsp *http.Response) (*UpdateTimeTrackingSettings1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTimeTrackingSettings1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateDashboardSelectionResponse parses an HTTP response from a UpdateDashboardSelectionWithResponse call +func ParseUpdateDashboardSelectionResponse(rsp *http.Response) (*UpdateDashboardSelectionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateDashboardSelectionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetDefaultWorkspaceResponse parses an HTTP response from a SetDefaultWorkspaceWithResponse call +func ParseSetDefaultWorkspaceResponse(rsp *http.Response) (*SetDefaultWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetDefaultWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call +func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseChangeEmailResponse parses an HTTP response from a ChangeEmailWithResponse call +func ParseChangeEmailResponse(rsp *http.Response) (*ChangeEmailResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ChangeEmailResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseHasPendingEmailChangeResponse parses an HTTP response from a HasPendingEmailChangeWithResponse call +func ParseHasPendingEmailChangeResponse(rsp *http.Response) (*HasPendingEmailChangeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HasPendingEmailChangeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PendingEmailChangeResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateLangResponse parses an HTTP response from a UpdateLangWithResponse call +func ParseUpdateLangResponse(rsp *http.Response) (*UpdateLangResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateLangResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseMarkAsRead1Response parses an HTTP response from a MarkAsRead1WithResponse call +func ParseMarkAsRead1Response(rsp *http.Response) (*MarkAsRead1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &MarkAsRead1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseMarkAsReadResponse parses an HTTP response from a MarkAsReadWithResponse call +func ParseMarkAsReadResponse(rsp *http.Response) (*MarkAsReadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &MarkAsReadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseChangeNameAdminResponse parses an HTTP response from a ChangeNameAdminWithResponse call +func ParseChangeNameAdminResponse(rsp *http.Response) (*ChangeNameAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ChangeNameAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetNewsForUserResponse parses an HTTP response from a GetNewsForUserWithResponse call +func ParseGetNewsForUserResponse(rsp *http.Response) (*GetNewsForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetNewsForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []NewsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseReadNewsResponse parses an HTTP response from a ReadNewsWithResponse call +func ParseReadNewsResponse(rsp *http.Response) (*ReadNewsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ReadNewsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetNotificationsResponse parses an HTTP response from a GetNotificationsWithResponse call +func ParseGetNotificationsResponse(rsp *http.Response) (*GetNotificationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetNotificationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []NotificationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdatePictureResponse parses an HTTP response from a UpdatePictureWithResponse call +func ParseUpdatePictureResponse(rsp *http.Response) (*UpdatePictureResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdatePictureResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateNameAndProfilePictureResponse parses an HTTP response from a UpdateNameAndProfilePictureWithResponse call +func ParseUpdateNameAndProfilePictureResponse(rsp *http.Response) (*UpdateNameAndProfilePictureResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateNameAndProfilePictureResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UsersNameAndProfilePictureDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSettingsResponse parses an HTTP response from a UpdateSettingsWithResponse call +func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSummaryReportSettingsResponse parses an HTTP response from a UpdateSummaryReportSettingsWithResponse call +func ParseUpdateSummaryReportSettingsResponse(rsp *http.Response) (*UpdateSummaryReportSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSummaryReportSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateTimeTrackingSettingsResponse parses an HTTP response from a UpdateTimeTrackingSettingsWithResponse call +func ParseUpdateTimeTrackingSettingsResponse(rsp *http.Response) (*UpdateTimeTrackingSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTimeTrackingSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateTimezoneResponse parses an HTTP response from a UpdateTimezoneWithResponse call +func ParseUpdateTimezoneResponse(rsp *http.Response) (*UpdateTimezoneResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTimezoneResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetVerificationCampaignNotificationsResponse parses an HTTP response from a GetVerificationCampaignNotificationsWithResponse call +func ParseGetVerificationCampaignNotificationsResponse(rsp *http.Response) (*GetVerificationCampaignNotificationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetVerificationCampaignNotificationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []NotificationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseMarkNotificationsAsReadResponse parses an HTTP response from a MarkNotificationsAsReadWithResponse call +func ParseMarkNotificationsAsReadResponse(rsp *http.Response) (*MarkNotificationsAsReadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &MarkNotificationsAsReadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetWorkCapacityForUserResponse parses an HTTP response from a GetWorkCapacityForUserWithResponse call +func ParseGetWorkCapacityForUserResponse(rsp *http.Response) (*GetWorkCapacityForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkCapacityForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserCapacityDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersWorkingDaysResponse parses an HTTP response from a GetUsersWorkingDaysWithResponse call +func ParseGetUsersWorkingDaysResponse(rsp *http.Response) (*GetUsersWorkingDaysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersWorkingDaysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []GetUsersWorkingDays200 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUploadImageResponse parses an HTTP response from a UploadImageWithResponse call +func ParseUploadImageResponse(rsp *http.Response) (*UploadImageResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UploadImageResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UploadFileResponseV1 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAllUnfinishedWalkthroughTypesResponse parses an HTTP response from a GetAllUnfinishedWalkthroughTypesWithResponse call +func ParseGetAllUnfinishedWalkthroughTypesResponse(rsp *http.Response) (*GetAllUnfinishedWalkthroughTypesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllUnfinishedWalkthroughTypesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WalkthroughDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFinishWalkthroughResponse parses an HTTP response from a FinishWalkthroughWithResponse call +func ParseFinishWalkthroughResponse(rsp *http.Response) (*FinishWalkthroughResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FinishWalkthroughResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOwnerEmailByWorkspaceIdResponse parses an HTTP response from a GetOwnerEmailByWorkspaceIdWithResponse call +func ParseGetOwnerEmailByWorkspaceIdResponse(rsp *http.Response) (*GetOwnerEmailByWorkspaceIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOwnerEmailByWorkspaceIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWorkspacesOfUserResponse parses an HTTP response from a GetWorkspacesOfUserWithResponse call +func ParseGetWorkspacesOfUserResponse(rsp *http.Response) (*GetWorkspacesOfUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkspacesOfUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []WorkspaceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateResponse parses an HTTP response from a CreateWithResponse call +func ParseCreateResponse(rsp *http.Response) (*CreateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetWorkspaceInfoResponse parses an HTTP response from a GetWorkspaceInfoWithResponse call +func ParseGetWorkspaceInfoResponse(rsp *http.Response) (*GetWorkspaceInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkspaceInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []WorkspaceSubscriptionInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseInsertLegacyPlanNotificationsResponse parses an HTTP response from a InsertLegacyPlanNotificationsWithResponse call +func ParseInsertLegacyPlanNotificationsResponse(rsp *http.Response) (*InsertLegacyPlanNotificationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &InsertLegacyPlanNotificationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetPermissionsToUserForWorkspacesResponse parses an HTTP response from a GetPermissionsToUserForWorkspacesWithResponse call +func ParseGetPermissionsToUserForWorkspacesResponse(rsp *http.Response) (*GetPermissionsToUserForWorkspacesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPermissionsToUserForWorkspacesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseLeaveWorkspaceResponse parses an HTTP response from a LeaveWorkspaceWithResponse call +func ParseLeaveWorkspaceResponse(rsp *http.Response) (*LeaveWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &LeaveWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetWorkspaceByIdResponse parses an HTTP response from a GetWorkspaceByIdWithResponse call +func ParseGetWorkspaceByIdResponse(rsp *http.Response) (*GetWorkspaceByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkspaceByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateWorkspaceResponse parses an HTTP response from a UpdateWorkspaceWithResponse call +func ParseUpdateWorkspaceResponse(rsp *http.Response) (*UpdateWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetABTestingResponse parses an HTTP response from a GetABTestingWithResponse call +func ParseGetABTestingResponse(rsp *http.Response) (*GetABTestingResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetABTestingResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ABTestingDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetActiveMembersResponse parses an HTTP response from a GetActiveMembersWithResponse call +func ParseGetActiveMembersResponse(rsp *http.Response) (*GetActiveMembersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetActiveMembersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ActiveMembersDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUninstallResponse parses an HTTP response from a UninstallWithResponse call +func ParseUninstallResponse(rsp *http.Response) (*UninstallResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UninstallResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetInstalledAddonsResponse parses an HTTP response from a GetInstalledAddonsWithResponse call +func ParseGetInstalledAddonsResponse(rsp *http.Response) (*GetInstalledAddonsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInstalledAddonsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AddonDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseInstallResponse parses an HTTP response from a InstallWithResponse call +func ParseInstallResponse(rsp *http.Response) (*InstallResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &InstallResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AddonDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetInstalledAddonsIdNamePairResponse parses an HTTP response from a GetInstalledAddonsIdNamePairWithResponse call +func ParseGetInstalledAddonsIdNamePairResponse(rsp *http.Response) (*GetInstalledAddonsIdNamePairResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInstalledAddonsIdNamePairResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []IdNamePairDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInstalledAddonsByKeysResponse parses an HTTP response from a GetInstalledAddonsByKeysWithResponse call +func ParseGetInstalledAddonsByKeysResponse(rsp *http.Response) (*GetInstalledAddonsByKeysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInstalledAddonsByKeysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []IdNamePairDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUninstall1Response parses an HTTP response from a Uninstall1WithResponse call +func ParseUninstall1Response(rsp *http.Response) (*Uninstall1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Uninstall1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAddonByIdResponse parses an HTTP response from a GetAddonByIdWithResponse call +func ParseGetAddonByIdResponse(rsp *http.Response) (*GetAddonByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddonByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AddonDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSettings1Response parses an HTTP response from a UpdateSettings1WithResponse call +func ParseUpdateSettings1Response(rsp *http.Response) (*UpdateSettings1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSettings1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AddonDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateStatus3Response parses an HTTP response from a UpdateStatus3WithResponse call +func ParseUpdateStatus3Response(rsp *http.Response) (*UpdateStatus3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateStatus3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AddonDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAddonUserJWTResponse parses an HTTP response from a GetAddonUserJWTWithResponse call +func ParseGetAddonUserJWTResponse(rsp *http.Response) (*GetAddonUserJWTResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddonUserJWTResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAddonWebhooksResponse parses an HTTP response from a GetAddonWebhooksWithResponse call +func ParseGetAddonWebhooksResponse(rsp *http.Response) (*GetAddonWebhooksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAddonWebhooksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WebhooksDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveUninstalledAddonResponse parses an HTTP response from a RemoveUninstalledAddonWithResponse call +func ParseRemoveUninstalledAddonResponse(rsp *http.Response) (*RemoveUninstalledAddonResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveUninstalledAddonResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseListOfWorkspace1Response parses an HTTP response from a ListOfWorkspace1WithResponse call +func ParseListOfWorkspace1Response(rsp *http.Response) (*ListOfWorkspace1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOfWorkspace1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AlertDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate20Response parses an HTTP response from a Create20WithResponse call +func ParseCreate20Response(rsp *http.Response) (*Create20Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create20Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest AlertDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDelete18Response parses an HTTP response from a Delete18WithResponse call +func ParseDelete18Response(rsp *http.Response) (*Delete18Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete18Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AlertDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate11Response parses an HTTP response from a Update11WithResponse call +func ParseUpdate11Response(rsp *http.Response) (*Update11Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update11Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AlertDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAllowedUpdatesResponse parses an HTTP response from a GetAllowedUpdatesWithResponse call +func ParseGetAllowedUpdatesResponse(rsp *http.Response) (*GetAllowedUpdatesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllowedUpdatesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AllowedUpdates + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseApproveRequestsResponse parses an HTTP response from a ApproveRequestsWithResponse call +func ParseApproveRequestsResponse(rsp *http.Response) (*ApproveRequestsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ApproveRequestsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCountResponse parses an HTTP response from a CountWithResponse call +func ParseCountResponse(rsp *http.Response) (*CountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHasPendingResponse parses an HTTP response from a HasPendingWithResponse call +func ParseHasPendingResponse(rsp *http.Response) (*HasPendingResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HasPendingResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemindManagersToApproveResponse parses an HTTP response from a RemindManagersToApproveWithResponse call +func ParseRemindManagersToApproveResponse(rsp *http.Response) (*RemindManagersToApproveResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemindManagersToApproveResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseRemindUsersToSubmitResponse parses an HTTP response from a RemindUsersToSubmitWithResponse call +func ParseRemindUsersToSubmitResponse(rsp *http.Response) (*RemindUsersToSubmitResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemindUsersToSubmitResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetApprovalGroupsResponse parses an HTTP response from a GetApprovalGroupsWithResponse call +func ParseGetApprovalGroupsResponse(rsp *http.Response) (*GetApprovalGroupsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApprovalGroupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ApprovalGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUnsubmittedSummariesResponse parses an HTTP response from a GetUnsubmittedSummariesWithResponse call +func ParseGetUnsubmittedSummariesResponse(rsp *http.Response) (*GetUnsubmittedSummariesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUnsubmittedSummariesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UnsubmittedSummaryGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseWithdrawAllOfWorkspaceResponse parses an HTTP response from a WithdrawAllOfWorkspaceWithResponse call +func ParseWithdrawAllOfWorkspaceResponse(rsp *http.Response) (*WithdrawAllOfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WithdrawAllOfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetRequestsByWorkspaceResponse parses an HTTP response from a GetRequestsByWorkspaceWithResponse call +func ParseGetRequestsByWorkspaceResponse(rsp *http.Response) (*GetRequestsByWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRequestsByWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ApprovalInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetApprovalRequestResponse parses an HTTP response from a GetApprovalRequestWithResponse call +func ParseGetApprovalRequestResponse(rsp *http.Response) (*GetApprovalRequestResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApprovalRequestResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateStatus2Response parses an HTTP response from a UpdateStatus2WithResponse call +func ParseUpdateStatus2Response(rsp *http.Response) (*UpdateStatus2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateStatus2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetApprovalDashboardResponse parses an HTTP response from a GetApprovalDashboardWithResponse call +func ParseGetApprovalDashboardResponse(rsp *http.Response) (*GetApprovalDashboardResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApprovalDashboardResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalDashboardDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetApprovalDetailsResponse parses an HTTP response from a GetApprovalDetailsWithResponse call +func ParseGetApprovalDetailsResponse(rsp *http.Response) (*GetApprovalDetailsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApprovalDetailsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalDetailsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFetchCustomAttributesResponse parses an HTTP response from a FetchCustomAttributesWithResponse call +func ParseFetchCustomAttributesResponse(rsp *http.Response) (*FetchCustomAttributesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FetchCustomAttributesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CustomAttributeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCheckWorkspaceTransferPossibilityResponse parses an HTTP response from a CheckWorkspaceTransferPossibilityWithResponse call +func ParseCheckWorkspaceTransferPossibilityResponse(rsp *http.Response) (*CheckWorkspaceTransferPossibilityResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CheckWorkspaceTransferPossibilityResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceTransferPossibleDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteMany3Response parses an HTTP response from a DeleteMany3WithResponse call +func ParseDeleteMany3Response(rsp *http.Response) (*DeleteMany3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteMany3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClients1Response parses an HTTP response from a GetClients1WithResponse call +func ParseGetClients1Response(rsp *http.Response) (*GetClients1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClients1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateMany2Response parses an HTTP response from a UpdateMany2WithResponse call +func ParseUpdateMany2Response(rsp *http.Response) (*UpdateMany2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateMany2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientWithCurrencyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate19Response parses an HTTP response from a Create19WithResponse call +func ParseCreate19Response(rsp *http.Response) (*Create19Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create19Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetArchivePermissionsResponse parses an HTTP response from a GetArchivePermissionsWithResponse call +func ParseGetArchivePermissionsResponse(rsp *http.Response) (*GetArchivePermissionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetArchivePermissionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ArchivePermissionDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHaveRelatedTasksResponse parses an HTTP response from a HaveRelatedTasksWithResponse call +func ParseHaveRelatedTasksResponse(rsp *http.Response) (*HaveRelatedTasksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HaveRelatedTasksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientsOfIdsResponse parses an HTTP response from a GetClientsOfIdsWithResponse call +func ParseGetClientsOfIdsResponse(rsp *http.Response) (*GetClientsOfIdsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientsOfIdsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientsForInvoiceFilter1Response parses an HTTP response from a GetClientsForInvoiceFilter1WithResponse call +func ParseGetClientsForInvoiceFilter1Response(rsp *http.Response) (*GetClientsForInvoiceFilter1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientsForInvoiceFilter1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClients2Response parses an HTTP response from a GetClients2WithResponse call +func ParseGetClients2Response(rsp *http.Response) (*GetClients2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClients2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientsForReportFilterResponse parses an HTTP response from a GetClientsForReportFilterWithResponse call +func ParseGetClientsForReportFilterResponse(rsp *http.Response) (*GetClientsForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientsForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientIdsForReportFilterResponse parses an HTTP response from a GetClientIdsForReportFilterWithResponse call +func ParseGetClientIdsForReportFilterResponse(rsp *http.Response) (*GetClientIdsForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientIdsForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeOffPoliciesAndHolidaysForClientResponse parses an HTTP response from a GetTimeOffPoliciesAndHolidaysForClientWithResponse call +func ParseGetTimeOffPoliciesAndHolidaysForClientResponse(rsp *http.Response) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeOffPoliciesAndHolidaysForClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffPolicyHolidayForClients + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete17Response parses an HTTP response from a Delete17WithResponse call +func ParseDelete17Response(rsp *http.Response) (*Delete17Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete17Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientResponse parses an HTTP response from a GetClientWithResponse call +func ParseGetClientResponse(rsp *http.Response) (*GetClientResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectsArchivePermissionsResponse parses an HTTP response from a GetProjectsArchivePermissionsWithResponse call +func ParseGetProjectsArchivePermissionsResponse(rsp *http.Response) (*GetProjectsArchivePermissionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectsArchivePermissionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate10Response parses an HTTP response from a Update10WithResponse call +func ParseUpdate10Response(rsp *http.Response) (*Update10Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update10Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ClientWithCurrencyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetCostRate2Response parses an HTTP response from a SetCostRate2WithResponse call +func ParseSetCostRate2Response(rsp *http.Response) (*SetCostRate2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetCostRate2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetCouponResponse parses an HTTP response from a GetCouponWithResponse call +func ParseGetCouponResponse(rsp *http.Response) (*GetCouponResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCouponResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SubscriptionCouponDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWorkspaceCurrenciesResponse parses an HTTP response from a GetWorkspaceCurrenciesWithResponse call +func ParseGetWorkspaceCurrenciesResponse(rsp *http.Response) (*GetWorkspaceCurrenciesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkspaceCurrenciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CurrencyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateCurrencyResponse parses an HTTP response from a CreateCurrencyWithResponse call +func ParseCreateCurrencyResponse(rsp *http.Response) (*CreateCurrencyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateCurrencyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CurrencyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseRemoveCurrencyResponse parses an HTTP response from a RemoveCurrencyWithResponse call +func ParseRemoveCurrencyResponse(rsp *http.Response) (*RemoveCurrencyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveCurrencyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetCurrencyResponse parses an HTTP response from a GetCurrencyWithResponse call +func ParseGetCurrencyResponse(rsp *http.Response) (*GetCurrencyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCurrencyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateCurrencyCodeResponse parses an HTTP response from a UpdateCurrencyCodeWithResponse call +func ParseUpdateCurrencyCodeResponse(rsp *http.Response) (*UpdateCurrencyCodeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCurrencyCodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CurrencyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetCurrencyResponse parses an HTTP response from a SetCurrencyWithResponse call +func ParseSetCurrencyResponse(rsp *http.Response) (*SetCurrencyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetCurrencyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseOfWorkspaceResponse parses an HTTP response from a OfWorkspaceWithResponse call +func ParseOfWorkspaceResponse(rsp *http.Response) (*OfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &OfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CustomFieldDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate18Response parses an HTTP response from a Create18WithResponse call +func ParseCreate18Response(rsp *http.Response) (*Create18Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create18Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CustomFieldDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseOfWorkspaceWithRequiredAvailabilityResponse parses an HTTP response from a OfWorkspaceWithRequiredAvailabilityWithResponse call +func ParseOfWorkspaceWithRequiredAvailabilityResponse(rsp *http.Response) (*OfWorkspaceWithRequiredAvailabilityResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &OfWorkspaceWithRequiredAvailabilityResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CustomFieldRequiredAvailabilityDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete16Response parses an HTTP response from a Delete16WithResponse call +func ParseDelete16Response(rsp *http.Response) (*Delete16Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete16Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseEditResponse parses an HTTP response from a EditWithResponse call +func ParseEditResponse(rsp *http.Response) (*EditResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomFieldDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveDefaultValueOfProjectResponse parses an HTTP response from a RemoveDefaultValueOfProjectWithResponse call +func ParseRemoveDefaultValueOfProjectResponse(rsp *http.Response) (*RemoveDefaultValueOfProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveDefaultValueOfProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomFieldDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditDefaultValuesResponse parses an HTTP response from a EditDefaultValuesWithResponse call +func ParseEditDefaultValuesResponse(rsp *http.Response) (*EditDefaultValuesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditDefaultValuesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomFieldDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOfProjectResponse parses an HTTP response from a GetOfProjectWithResponse call +func ParseGetOfProjectResponse(rsp *http.Response) (*GetOfProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOfProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CustomFieldDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateCustomLabelsResponse parses an HTTP response from a UpdateCustomLabelsWithResponse call +func ParseUpdateCustomLabelsResponse(rsp *http.Response) (*UpdateCustomLabelsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCustomLabelsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddEmailResponse parses an HTTP response from a AddEmailWithResponse call +func ParseAddEmailResponse(rsp *http.Response) (*AddEmailResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddEmailResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDeleteManyExpensesResponse parses an HTTP response from a DeleteManyExpensesWithResponse call +func ParseDeleteManyExpensesResponse(rsp *http.Response) (*DeleteManyExpensesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteManyExpensesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetExpensesResponse parses an HTTP response from a GetExpensesWithResponse call +func ParseGetExpensesResponse(rsp *http.Response) (*GetExpensesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetExpensesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpensesAndTotalsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateExpenseResponse parses an HTTP response from a CreateExpenseWithResponse call +func ParseCreateExpenseResponse(rsp *http.Response) (*CreateExpenseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateExpenseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ExpenseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetCategoriesResponse parses an HTTP response from a GetCategoriesWithResponse call +func ParseGetCategoriesResponse(rsp *http.Response) (*GetCategoriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCategoriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpenseCategoriesWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate17Response parses an HTTP response from a Create17WithResponse call +func ParseCreate17Response(rsp *http.Response) (*Create17Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create17Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ExpenseCategoryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetCategoriesByIdsResponse parses an HTTP response from a GetCategoriesByIdsWithResponse call +func ParseGetCategoriesByIdsResponse(rsp *http.Response) (*GetCategoriesByIdsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCategoriesByIdsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ExpenseCategoryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteCategoryResponse parses an HTTP response from a DeleteCategoryWithResponse call +func ParseDeleteCategoryResponse(rsp *http.Response) (*DeleteCategoryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteCategoryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUpdateCategoryResponse parses an HTTP response from a UpdateCategoryWithResponse call +func ParseUpdateCategoryResponse(rsp *http.Response) (*UpdateCategoryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCategoryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpenseCategoryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateStatus1Response parses an HTTP response from a UpdateStatus1WithResponse call +func ParseUpdateStatus1Response(rsp *http.Response) (*UpdateStatus1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateStatus1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpenseCategoryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetExpensesInDateRangeResponse parses an HTTP response from a GetExpensesInDateRangeWithResponse call +func ParseGetExpensesInDateRangeResponse(rsp *http.Response) (*GetExpensesInDateRangeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetExpensesInDateRangeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ExpenseHydratedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateInvoicedStatus1Response parses an HTTP response from a UpdateInvoicedStatus1WithResponse call +func ParseUpdateInvoicedStatus1Response(rsp *http.Response) (*UpdateInvoicedStatus1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateInvoicedStatus1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseRestoreManyExpensesResponse parses an HTTP response from a RestoreManyExpensesWithResponse call +func ParseRestoreManyExpensesResponse(rsp *http.Response) (*RestoreManyExpensesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RestoreManyExpensesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ExpenseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteExpenseResponse parses an HTTP response from a DeleteExpenseWithResponse call +func ParseDeleteExpenseResponse(rsp *http.Response) (*DeleteExpenseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteExpenseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpenseDeletedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetExpenseResponse parses an HTTP response from a GetExpenseWithResponse call +func ParseGetExpenseResponse(rsp *http.Response) (*GetExpenseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetExpenseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpenseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateExpenseResponse parses an HTTP response from a UpdateExpenseWithResponse call +func ParseUpdateExpenseResponse(rsp *http.Response) (*UpdateExpenseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateExpenseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ExpenseWithApprovalRequestUpdatedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDownloadFileResponse parses an HTTP response from a DownloadFileWithResponse call +func ParseDownloadFileResponse(rsp *http.Response) (*DownloadFileResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DownloadFileResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []byte + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseImportFileDataResponse parses an HTTP response from a ImportFileDataWithResponse call +func ParseImportFileDataResponse(rsp *http.Response) (*ImportFileDataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ImportFileDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCheckUsersForImportResponse parses an HTTP response from a CheckUsersForImportWithResponse call +func ParseCheckUsersForImportResponse(rsp *http.Response) (*CheckUsersForImportResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CheckUsersForImportResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CheckUsersResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetHolidaysResponse parses an HTTP response from a GetHolidaysWithResponse call +func ParseGetHolidaysResponse(rsp *http.Response) (*GetHolidaysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetHolidaysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []HolidayDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate16Response parses an HTTP response from a Create16WithResponse call +func ParseCreate16Response(rsp *http.Response) (*Create16Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create16Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest HolidayDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete15Response parses an HTTP response from a Delete15WithResponse call +func ParseDelete15Response(rsp *http.Response) (*Delete15Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete15Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest HolidayDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate9Response parses an HTTP response from a Update9WithResponse call +func ParseUpdate9Response(rsp *http.Response) (*Update9Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update9Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest HolidayDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetHourlyRate2Response parses an HTTP response from a SetHourlyRate2WithResponse call +func ParseSetHourlyRate2Response(rsp *http.Response) (*SetHourlyRate2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetHourlyRate2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvitedEmailsInfoResponse parses an HTTP response from a GetInvitedEmailsInfoWithResponse call +func ParseGetInvitedEmailsInfoResponse(rsp *http.Response) (*GetInvitedEmailsInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvitedEmailsInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvitedEmailsInfo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoiceEmailTemplatesResponse parses an HTTP response from a GetInvoiceEmailTemplatesWithResponse call +func ParseGetInvoiceEmailTemplatesResponse(rsp *http.Response) (*GetInvoiceEmailTemplatesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoiceEmailTemplatesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []InvoiceEmailTemplateDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpsertInvoiceEmailTemplateResponse parses an HTTP response from a UpsertInvoiceEmailTemplateWithResponse call +func ParseUpsertInvoiceEmailTemplateResponse(rsp *http.Response) (*UpsertInvoiceEmailTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpsertInvoiceEmailTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceEmailTemplateDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoiceEmailDataResponse parses an HTTP response from a GetInvoiceEmailDataWithResponse call +func ParseGetInvoiceEmailDataResponse(rsp *http.Response) (*GetInvoiceEmailDataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoiceEmailDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceEmailDataDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSendInvoiceEmailResponse parses an HTTP response from a SendInvoiceEmailWithResponse call +func ParseSendInvoiceEmailResponse(rsp *http.Response) (*SendInvoiceEmailResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SendInvoiceEmailResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCreateInvoiceResponse parses an HTTP response from a CreateInvoiceWithResponse call +func ParseCreateInvoiceResponse(rsp *http.Response) (*CreateInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CreateInvoiceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetAllCompaniesResponse parses an HTTP response from a GetAllCompaniesWithResponse call +func ParseGetAllCompaniesResponse(rsp *http.Response) (*GetAllCompaniesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllCompaniesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CompanyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateCompanyResponse parses an HTTP response from a CreateCompanyWithResponse call +func ParseCreateCompanyResponse(rsp *http.Response) (*CreateCompanyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateCompanyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CompanyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseUpdateCompaniesInWorkspaceResponse parses an HTTP response from a UpdateCompaniesInWorkspaceWithResponse call +func ParseUpdateCompaniesInWorkspaceResponse(rsp *http.Response) (*UpdateCompaniesInWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCompaniesInWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCountAllCompaniesResponse parses an HTTP response from a CountAllCompaniesWithResponse call +func ParseCountAllCompaniesResponse(rsp *http.Response) (*CountAllCompaniesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CountAllCompaniesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientsForInvoiceFilterResponse parses an HTTP response from a GetClientsForInvoiceFilterWithResponse call +func ParseGetClientsForInvoiceFilterResponse(rsp *http.Response) (*GetClientsForInvoiceFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientsForInvoiceFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CompanyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteCompanyResponse parses an HTTP response from a DeleteCompanyWithResponse call +func ParseDeleteCompanyResponse(rsp *http.Response) (*DeleteCompanyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteCompanyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetCompanyByIdResponse parses an HTTP response from a GetCompanyByIdWithResponse call +func ParseGetCompanyByIdResponse(rsp *http.Response) (*GetCompanyByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCompanyByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CompanyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateCompanyResponse parses an HTTP response from a UpdateCompanyWithResponse call +func ParseUpdateCompanyResponse(rsp *http.Response) (*UpdateCompanyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCompanyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CompanyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoicesInfoResponse parses an HTTP response from a GetInvoicesInfoWithResponse call +func ParseGetInvoicesInfoResponse(rsp *http.Response) (*GetInvoicesInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoicesInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceInfoResponseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoiceItemTypesResponse parses an HTTP response from a GetInvoiceItemTypesWithResponse call +func ParseGetInvoiceItemTypesResponse(rsp *http.Response) (*GetInvoiceItemTypesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoiceItemTypesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []InvoiceItemTypeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateInvoiceItemTypeResponse parses an HTTP response from a CreateInvoiceItemTypeWithResponse call +func ParseCreateInvoiceItemTypeResponse(rsp *http.Response) (*CreateInvoiceItemTypeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateInvoiceItemTypeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CreateInvoiceItemTypeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDeleteInvoiceItemTypeResponse parses an HTTP response from a DeleteInvoiceItemTypeWithResponse call +func ParseDeleteInvoiceItemTypeResponse(rsp *http.Response) (*DeleteInvoiceItemTypeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteInvoiceItemTypeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUpdateInvoiceItemTypeResponse parses an HTTP response from a UpdateInvoiceItemTypeWithResponse call +func ParseUpdateInvoiceItemTypeResponse(rsp *http.Response) (*UpdateInvoiceItemTypeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateInvoiceItemTypeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceItemTypeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetNextInvoiceNumberResponse parses an HTTP response from a GetNextInvoiceNumberWithResponse call +func ParseGetNextInvoiceNumberResponse(rsp *http.Response) (*GetNextInvoiceNumberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetNextInvoiceNumberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NextInvoiceNumberDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoicePermissionsResponse parses an HTTP response from a GetInvoicePermissionsWithResponse call +func ParseGetInvoicePermissionsResponse(rsp *http.Response) (*GetInvoicePermissionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoicePermissionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoicePermissionsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateInvoicePermissionsResponse parses an HTTP response from a UpdateInvoicePermissionsWithResponse call +func ParseUpdateInvoicePermissionsResponse(rsp *http.Response) (*UpdateInvoicePermissionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateInvoicePermissionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCanUserManageInvoicesResponse parses an HTTP response from a CanUserManageInvoicesWithResponse call +func ParseCanUserManageInvoicesResponse(rsp *http.Response) (*CanUserManageInvoicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CanUserManageInvoicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoiceSettingsResponse parses an HTTP response from a GetInvoiceSettingsWithResponse call +func ParseGetInvoiceSettingsResponse(rsp *http.Response) (*GetInvoiceSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoiceSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceSettingsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateInvoiceSettingsResponse parses an HTTP response from a UpdateInvoiceSettingsWithResponse call +func ParseUpdateInvoiceSettingsResponse(rsp *http.Response) (*UpdateInvoiceSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateInvoiceSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDeleteInvoiceResponse parses an HTTP response from a DeleteInvoiceWithResponse call +func ParseDeleteInvoiceResponse(rsp *http.Response) (*DeleteInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call +func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateInvoiceResponse parses an HTTP response from a UpdateInvoiceWithResponse call +func ParseUpdateInvoiceResponse(rsp *http.Response) (*UpdateInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDuplicateInvoiceResponse parses an HTTP response from a DuplicateInvoiceWithResponse call +func ParseDuplicateInvoiceResponse(rsp *http.Response) (*DuplicateInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DuplicateInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseExportInvoiceResponse parses an HTTP response from a ExportInvoiceWithResponse call +func ParseExportInvoiceResponse(rsp *http.Response) (*ExportInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ExportInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []byte + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseImportTimeAndExpensesResponse parses an HTTP response from a ImportTimeAndExpensesWithResponse call +func ParseImportTimeAndExpensesResponse(rsp *http.Response) (*ImportTimeAndExpensesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ImportTimeAndExpensesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddInvoiceItemResponse parses an HTTP response from a AddInvoiceItemWithResponse call +func ParseAddInvoiceItemResponse(rsp *http.Response) (*AddInvoiceItemResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddInvoiceItemResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceItemDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseReorderInvoiceItem1Response parses an HTTP response from a ReorderInvoiceItem1WithResponse call +func ParseReorderInvoiceItem1Response(rsp *http.Response) (*ReorderInvoiceItem1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ReorderInvoiceItem1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []InvoiceItemDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditInvoiceItemResponse parses an HTTP response from a EditInvoiceItemWithResponse call +func ParseEditInvoiceItemResponse(rsp *http.Response) (*EditInvoiceItemResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditInvoiceItemResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteInvoiceItemsResponse parses an HTTP response from a DeleteInvoiceItemsWithResponse call +func ParseDeleteInvoiceItemsResponse(rsp *http.Response) (*DeleteInvoiceItemsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteInvoiceItemsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPaymentsForInvoiceResponse parses an HTTP response from a GetPaymentsForInvoiceWithResponse call +func ParseGetPaymentsForInvoiceResponse(rsp *http.Response) (*GetPaymentsForInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPaymentsForInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []InvoicePaymentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateInvoicePaymentResponse parses an HTTP response from a CreateInvoicePaymentWithResponse call +func ParseCreateInvoicePaymentResponse(rsp *http.Response) (*CreateInvoicePaymentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateInvoicePaymentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDeletePaymentByIdResponse parses an HTTP response from a DeletePaymentByIdWithResponse call +func ParseDeletePaymentByIdResponse(rsp *http.Response) (*DeletePaymentByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeletePaymentByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest InvoiceOverviewDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseChangeInvoiceStatusResponse parses an HTTP response from a ChangeInvoiceStatusWithResponse call +func ParseChangeInvoiceStatusResponse(rsp *http.Response) (*ChangeInvoiceStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ChangeInvoiceStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseAuthorizationCheckResponse parses an HTTP response from a AuthorizationCheckWithResponse call +func ParseAuthorizationCheckResponse(rsp *http.Response) (*AuthorizationCheckResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AuthorizationCheckResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseIsAvailableResponse parses an HTTP response from a IsAvailableWithResponse call +func ParseIsAvailableResponse(rsp *http.Response) (*IsAvailableResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &IsAvailableResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseIsAvailable1Response parses an HTTP response from a IsAvailable1WithResponse call +func ParseIsAvailable1Response(rsp *http.Response) (*IsAvailable1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &IsAvailable1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGeneratePinCodeResponse parses an HTTP response from a GeneratePinCodeWithResponse call +func ParseGeneratePinCodeResponse(rsp *http.Response) (*GeneratePinCodeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GeneratePinCodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PinCodeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGeneratePinCodeForUserResponse parses an HTTP response from a GeneratePinCodeForUserWithResponse call +func ParseGeneratePinCodeForUserResponse(rsp *http.Response) (*GeneratePinCodeForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GeneratePinCodeForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PinCodeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserPinCodeResponse parses an HTTP response from a GetUserPinCodeWithResponse call +func ParseGetUserPinCodeResponse(rsp *http.Response) (*GetUserPinCodeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserPinCodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest KioskUserPinCodeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdatePinCodeResponse parses an HTTP response from a UpdatePinCodeWithResponse call +func ParseUpdatePinCodeResponse(rsp *http.Response) (*UpdatePinCodeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdatePinCodeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetKiosksOfWorkspaceResponse parses an HTTP response from a GetKiosksOfWorkspaceWithResponse call +func ParseGetKiosksOfWorkspaceResponse(rsp *http.Response) (*GetKiosksOfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetKiosksOfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest KioskHydratedWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate15Response parses an HTTP response from a Create15WithResponse call +func ParseCreate15Response(rsp *http.Response) (*Create15Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create15Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest KioskDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseUpdateBreakDefaultsResponse parses an HTTP response from a UpdateBreakDefaultsWithResponse call +func ParseUpdateBreakDefaultsResponse(rsp *http.Response) (*UpdateBreakDefaultsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateBreakDefaultsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []KioskDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTotalCountOfKiosksOnWorkspaceResponse parses an HTTP response from a GetTotalCountOfKiosksOnWorkspaceWithResponse call +func ParseGetTotalCountOfKiosksOnWorkspaceResponse(rsp *http.Response) (*GetTotalCountOfKiosksOnWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTotalCountOfKiosksOnWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateDefaultsResponse parses an HTTP response from a UpdateDefaultsWithResponse call +func ParseUpdateDefaultsResponse(rsp *http.Response) (*UpdateDefaultsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateDefaultsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []KioskDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHasActiveKiosksResponse parses an HTTP response from a HasActiveKiosksWithResponse call +func ParseHasActiveKiosksResponse(rsp *http.Response) (*HasActiveKiosksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HasActiveKiosksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWithProjectResponse parses an HTTP response from a GetWithProjectWithResponse call +func ParseGetWithProjectResponse(rsp *http.Response) (*GetWithProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWithProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []EntityIdNameDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWithTaskResponse parses an HTTP response from a GetWithTaskWithResponse call +func ParseGetWithTaskResponse(rsp *http.Response) (*GetWithTaskResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWithTaskResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []EntityIdNameDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetForReportFilterResponse parses an HTTP response from a GetForReportFilterWithResponse call +func ParseGetForReportFilterResponse(rsp *http.Response) (*GetForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []EntityIdNameDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWithoutDefaultsResponse parses an HTTP response from a GetWithoutDefaultsWithResponse call +func ParseGetWithoutDefaultsResponse(rsp *http.Response) (*GetWithoutDefaultsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWithoutDefaultsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []KioskDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteKioskResponse parses an HTTP response from a DeleteKioskWithResponse call +func ParseDeleteKioskResponse(rsp *http.Response) (*DeleteKioskResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteKioskResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetKioskByIdResponse parses an HTTP response from a GetKioskByIdWithResponse call +func ParseGetKioskByIdResponse(rsp *http.Response) (*GetKioskByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetKioskByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest KioskHydratedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate8Response parses an HTTP response from a Update8WithResponse call +func ParseUpdate8Response(rsp *http.Response) (*Update8Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update8Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest KioskDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseExportAssigneesResponse parses an HTTP response from a ExportAssigneesWithResponse call +func ParseExportAssigneesResponse(rsp *http.Response) (*ExportAssigneesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ExportAssigneesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []byte + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHasEntryInProgressResponse parses an HTTP response from a HasEntryInProgressWithResponse call +func ParseHasEntryInProgressResponse(rsp *http.Response) (*HasEntryInProgressResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HasEntryInProgressResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateStatusResponse parses an HTTP response from a UpdateStatusWithResponse call +func ParseUpdateStatusResponse(rsp *http.Response) (*UpdateStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest KioskDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAcknowledgeLegacyPlanNotificationsResponse parses an HTTP response from a AcknowledgeLegacyPlanNotificationsWithResponse call +func ParseAcknowledgeLegacyPlanNotificationsResponse(rsp *http.Response) (*AcknowledgeLegacyPlanNotificationsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AcknowledgeLegacyPlanNotificationsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetLegacyPlanUpgradeDataResponse parses an HTTP response from a GetLegacyPlanUpgradeDataWithResponse call +func ParseGetLegacyPlanUpgradeDataResponse(rsp *http.Response) (*GetLegacyPlanUpgradeDataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLegacyPlanUpgradeDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LegacyPlanUpgradeDataDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddLimitedUsersResponse parses an HTTP response from a AddLimitedUsersWithResponse call +func ParseAddLimitedUsersResponse(rsp *http.Response) (*AddLimitedUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddLimitedUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLimitedUsersCountResponse parses an HTTP response from a GetLimitedUsersCountWithResponse call +func ParseGetLimitedUsersCountResponse(rsp *http.Response) (*GetLimitedUsersCountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLimitedUsersCountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int32 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetMemberProfileResponse parses an HTTP response from a GetMemberProfileWithResponse call +func ParseGetMemberProfileResponse(rsp *http.Response) (*GetMemberProfileResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetMemberProfileResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MemberProfileDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateMemberProfileResponse parses an HTTP response from a UpdateMemberProfileWithResponse call +func ParseUpdateMemberProfileResponse(rsp *http.Response) (*UpdateMemberProfileResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateMemberProfileResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MemberProfileDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateMemberProfileWithAdditionalDataResponse parses an HTTP response from a UpdateMemberProfileWithAdditionalDataWithResponse call +func ParseUpdateMemberProfileWithAdditionalDataResponse(rsp *http.Response) (*UpdateMemberProfileWithAdditionalDataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateMemberProfileWithAdditionalDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MemberProfileDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateMemberSettingsResponse parses an HTTP response from a UpdateMemberSettingsWithResponse call +func ParseUpdateMemberSettingsResponse(rsp *http.Response) (*UpdateMemberSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateMemberSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MemberProfileDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWeekStartResponse parses an HTTP response from a GetWeekStartWithResponse call +func ParseGetWeekStartResponse(rsp *http.Response) (*GetWeekStartResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWeekStartResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetWeekStart200 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateMemberWorkingDaysAndCapacityResponse parses an HTTP response from a UpdateMemberWorkingDaysAndCapacityWithResponse call +func ParseUpdateMemberWorkingDaysAndCapacityResponse(rsp *http.Response) (*UpdateMemberWorkingDaysAndCapacityResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateMemberWorkingDaysAndCapacityResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MemberProfileDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetMembersCountResponse parses an HTTP response from a GetMembersCountWithResponse call +func ParseGetMembersCountResponse(rsp *http.Response) (*GetMembersCountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetMembersCountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MembersCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFindNotInvitedEmailsInResponse parses an HTTP response from a FindNotInvitedEmailsInWithResponse call +func ParseFindNotInvitedEmailsInResponse(rsp *http.Response) (*FindNotInvitedEmailsInResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindNotInvitedEmailsInResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call +func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate14Response parses an HTTP response from a Create14WithResponse call +func ParseCreate14Response(rsp *http.Response) (*Create14Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create14Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrganizationNameResponse parses an HTTP response from a GetOrganizationNameWithResponse call +func ParseGetOrganizationNameResponse(rsp *http.Response) (*GetOrganizationNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrganizationNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationNameDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCheckAvailabilityOfDomainNameResponse parses an HTTP response from a CheckAvailabilityOfDomainNameWithResponse call +func ParseCheckAvailabilityOfDomainNameResponse(rsp *http.Response) (*CheckAvailabilityOfDomainNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CheckAvailabilityOfDomainNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call +func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call +func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateOrganizationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OrganizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLoginSettingsResponse parses an HTTP response from a GetLoginSettingsWithResponse call +func ParseGetLoginSettingsResponse(rsp *http.Response) (*GetLoginSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLoginSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest LoginSettingsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteOAuth2ConfigurationResponse parses an HTTP response from a DeleteOAuth2ConfigurationWithResponse call +func ParseDeleteOAuth2ConfigurationResponse(rsp *http.Response) (*DeleteOAuth2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOAuth2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrganizationOAuth2ConfigurationResponse parses an HTTP response from a GetOrganizationOAuth2ConfigurationWithResponse call +func ParseGetOrganizationOAuth2ConfigurationResponse(rsp *http.Response) (*GetOrganizationOAuth2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrganizationOAuth2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OAuth2ConfigurationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateOAuth2Configuration1Response parses an HTTP response from a UpdateOAuth2Configuration1WithResponse call +func ParseUpdateOAuth2Configuration1Response(rsp *http.Response) (*UpdateOAuth2Configuration1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateOAuth2Configuration1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OAuth2ConfigurationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTestOAuth2ConfigurationResponse parses an HTTP response from a TestOAuth2ConfigurationWithResponse call +func ParseTestOAuth2ConfigurationResponse(rsp *http.Response) (*TestOAuth2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TestOAuth2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteSAML2ConfigurationResponse parses an HTTP response from a DeleteSAML2ConfigurationWithResponse call +func ParseDeleteSAML2ConfigurationResponse(rsp *http.Response) (*DeleteSAML2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteSAML2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrganizationSAML2ConfigurationResponse parses an HTTP response from a GetOrganizationSAML2ConfigurationWithResponse call +func ParseGetOrganizationSAML2ConfigurationResponse(rsp *http.Response) (*GetOrganizationSAML2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrganizationSAML2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SAML2ConfigurationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSAML2ConfigurationResponse parses an HTTP response from a UpdateSAML2ConfigurationWithResponse call +func ParseUpdateSAML2ConfigurationResponse(rsp *http.Response) (*UpdateSAML2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSAML2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SAML2ConfigurationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTestSAML2ConfigurationResponse parses an HTTP response from a TestSAML2ConfigurationWithResponse call +func ParseTestSAML2ConfigurationResponse(rsp *http.Response) (*TestSAML2ConfigurationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TestSAML2ConfigurationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAllOrganizationsOfUserResponse parses an HTTP response from a GetAllOrganizationsOfUserWithResponse call +func ParseGetAllOrganizationsOfUserResponse(rsp *http.Response) (*GetAllOrganizationsOfUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllOrganizationsOfUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWorkspaceOwnerResponse parses an HTTP response from a GetWorkspaceOwnerWithResponse call +func ParseGetWorkspaceOwnerResponse(rsp *http.Response) (*GetWorkspaceOwnerResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkspaceOwnerResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OwnerIdResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTransferOwnershipResponse parses an HTTP response from a TransferOwnershipWithResponse call +func ParseTransferOwnershipResponse(rsp *http.Response) (*TransferOwnershipResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TransferOwnershipResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetWorkspaceOwnerTimeZoneResponse parses an HTTP response from a GetWorkspaceOwnerTimeZoneWithResponse call +func ParseGetWorkspaceOwnerTimeZoneResponse(rsp *http.Response) (*GetWorkspaceOwnerTimeZoneResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkspaceOwnerTimeZoneResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest OwnerTimeZoneResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCancelSubscriptionResponse parses an HTTP response from a CancelSubscriptionWithResponse call +func ParseCancelSubscriptionResponse(rsp *http.Response) (*CancelSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CancelSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseConfirmPaymentResponse parses an HTTP response from a ConfirmPaymentWithResponse call +func ParseConfirmPaymentResponse(rsp *http.Response) (*ConfirmPaymentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ConfirmPaymentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetCustomerInfoResponse parses an HTTP response from a GetCustomerInfoWithResponse call +func ParseGetCustomerInfoResponse(rsp *http.Response) (*GetCustomerInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCustomerInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomerInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateCustomerResponse parses an HTTP response from a CreateCustomerWithResponse call +func ParseCreateCustomerResponse(rsp *http.Response) (*CreateCustomerResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateCustomerResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomerDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call +func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCustomerResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseEditInvoiceInformationResponse parses an HTTP response from a EditInvoiceInformationWithResponse call +func ParseEditInvoiceInformationResponse(rsp *http.Response) (*EditInvoiceInformationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditInvoiceInformationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomerBillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditPaymentInformationResponse parses an HTTP response from a EditPaymentInformationWithResponse call +func ParseEditPaymentInformationResponse(rsp *http.Response) (*EditPaymentInformationResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditPaymentInformationResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomerPaymentInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseExtendTrialResponse parses an HTTP response from a ExtendTrialWithResponse call +func ParseExtendTrialResponse(rsp *http.Response) (*ExtendTrialResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ExtendTrialResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetFeatureSubscriptionsResponse parses an HTTP response from a GetFeatureSubscriptionsWithResponse call +func ParseGetFeatureSubscriptionsResponse(rsp *http.Response) (*GetFeatureSubscriptionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFeatureSubscriptionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []FeatureSubscriptionsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseInitialUpgradeResponse parses an HTTP response from a InitialUpgradeWithResponse call +func ParseInitialUpgradeResponse(rsp *http.Response) (*InitialUpgradeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &InitialUpgradeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UpgradePriceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoiceInfoResponse parses an HTTP response from a GetInvoiceInfoWithResponse call +func ParseGetInvoiceInfoResponse(rsp *http.Response) (*GetInvoiceInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoiceInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomerBillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoicesResponse parses an HTTP response from a GetInvoicesWithResponse call +func ParseGetInvoicesResponse(rsp *http.Response) (*GetInvoicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []StripeInvoiceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoicesCountResponse parses an HTTP response from a GetInvoicesCountWithResponse call +func ParseGetInvoicesCountResponse(rsp *http.Response) (*GetInvoicesCountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoicesCountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLastOpenInvoiceResponse parses an HTTP response from a GetLastOpenInvoiceWithResponse call +func ParseGetLastOpenInvoiceResponse(rsp *http.Response) (*GetLastOpenInvoiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLastOpenInvoiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest StripeInvoicePayDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetInvoicesListResponse parses an HTTP response from a GetInvoicesListWithResponse call +func ParseGetInvoicesListResponse(rsp *http.Response) (*GetInvoicesListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInvoicesListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest StripeInvoicesDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPaymentDateResponse parses an HTTP response from a GetPaymentDateWithResponse call +func ParseGetPaymentDateResponse(rsp *http.Response) (*GetPaymentDateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPaymentDateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPaymentInfoResponse parses an HTTP response from a GetPaymentInfoWithResponse call +func ParseGetPaymentInfoResponse(rsp *http.Response) (*GetPaymentInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPaymentInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomerPaymentInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateSetupIntentForPaymentMethodResponse parses an HTTP response from a CreateSetupIntentForPaymentMethodWithResponse call +func ParseCreateSetupIntentForPaymentMethodResponse(rsp *http.Response) (*CreateSetupIntentForPaymentMethodResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSetupIntentForPaymentMethodResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SetupIntentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePreviewUpgradeResponse parses an HTTP response from a PreviewUpgradeWithResponse call +func ParsePreviewUpgradeResponse(rsp *http.Response) (*PreviewUpgradeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PreviewUpgradeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UpgradePriceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseReactivateSubscriptionResponse parses an HTTP response from a ReactivateSubscriptionWithResponse call +func ParseReactivateSubscriptionResponse(rsp *http.Response) (*ReactivateSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ReactivateSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetScheduledInvoiceInfoResponse parses an HTTP response from a GetScheduledInvoiceInfoWithResponse call +func ParseGetScheduledInvoiceInfoResponse(rsp *http.Response) (*GetScheduledInvoiceInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetScheduledInvoiceInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest NextCustomerInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateUserSeatsResponse parses an HTTP response from a UpdateUserSeatsWithResponse call +func ParseUpdateUserSeatsResponse(rsp *http.Response) (*UpdateUserSeatsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateUserSeatsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateSetupIntentForInitialSubscriptionResponse parses an HTTP response from a CreateSetupIntentForInitialSubscriptionWithResponse call +func ParseCreateSetupIntentForInitialSubscriptionResponse(rsp *http.Response) (*CreateSetupIntentForInitialSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSetupIntentForInitialSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SetupIntentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call +func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call +func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillingInformationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpgradePreCheckResponse parses an HTTP response from a UpgradePreCheckWithResponse call +func ParseUpgradePreCheckResponse(rsp *http.Response) (*UpgradePreCheckResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpgradePreCheckResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UpgradePreCheckDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteSubscriptionResponse parses an HTTP response from a DeleteSubscriptionWithResponse call +func ParseDeleteSubscriptionResponse(rsp *http.Response) (*DeleteSubscriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteSubscriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseTerminateTrialResponse parses an HTTP response from a TerminateTrialWithResponse call +func ParseTerminateTrialResponse(rsp *http.Response) (*TerminateTrialResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TerminateTrialResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseStartTrialResponse parses an HTTP response from a StartTrialWithResponse call +func ParseStartTrialResponse(rsp *http.Response) (*StartTrialResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &StartTrialResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseWasRegionalEverAllowedResponse parses an HTTP response from a WasRegionalEverAllowedWithResponse call +func ParseWasRegionalEverAllowedResponse(rsp *http.Response) (*WasRegionalEverAllowedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WasRegionalEverAllowedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFindForUserAndPolicyResponse parses an HTTP response from a FindForUserAndPolicyWithResponse call +func ParseFindForUserAndPolicyResponse(rsp *http.Response) (*FindForUserAndPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindForUserAndPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []BalanceHistoryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetClientsResponse parses an HTTP response from a GetClientsWithResponse call +func ParseGetClientsResponse(rsp *http.Response) (*GetClientsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetClientsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectsByClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjects3Response parses an HTTP response from a GetProjects3WithResponse call +func ParseGetProjects3Response(rsp *http.Response) (*GetProjects3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjects3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectFavoritesResponse parses an HTTP response from a GetProjectFavoritesWithResponse call +func ParseGetProjectFavoritesResponse(rsp *http.Response) (*GetProjectFavoritesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectFavoritesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTasks21Response parses an HTTP response from a GetTasks21WithResponse call +func ParseGetTasks21Response(rsp *http.Response) (*GetTasks21Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTasks21Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TaskFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRecalculateProjectStatus1Response parses an HTTP response from a RecalculateProjectStatus1WithResponse call +func ParseRecalculateProjectStatus1Response(rsp *http.Response) (*RecalculateProjectStatus1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RecalculateProjectStatus1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetProjectAndTaskResponse parses an HTTP response from a GetProjectAndTaskWithResponse call +func ParseGetProjectAndTaskResponse(rsp *http.Response) (*GetProjectAndTaskResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectAndTaskResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TaskWithProjectDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDeleteMany2Response parses an HTTP response from a DeleteMany2WithResponse call +func ParseDeleteMany2Response(rsp *http.Response) (*DeleteMany2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteMany2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjects2Response parses an HTTP response from a GetProjects2WithResponse call +func ParseGetProjects2Response(rsp *http.Response) (*GetProjects2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjects2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PageProjectDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateMany1Response parses an HTTP response from a UpdateMany1WithResponse call +func ParseUpdateMany1Response(rsp *http.Response) (*UpdateMany1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateMany1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BulkProjectEditDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate12Response parses an HTTP response from a Create12WithResponse call +func ParseCreate12Response(rsp *http.Response) (*Create12Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create12Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ProjectFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetFilteredProjectsCountResponse parses an HTTP response from a GetFilteredProjectsCountWithResponse call +func ParseGetFilteredProjectsCountResponse(rsp *http.Response) (*GetFilteredProjectsCountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFilteredProjectsCountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int32 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetFilteredProjectsResponse parses an HTTP response from a GetFilteredProjectsWithResponse call +func ParseGetFilteredProjectsResponse(rsp *http.Response) (*GetFilteredProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFilteredProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PageProjectDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateFromTemplateResponse parses an HTTP response from a CreateFromTemplateWithResponse call +func ParseCreateFromTemplateResponse(rsp *http.Response) (*CreateFromTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateFromTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ProjectFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call +func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLastUsedProjectResponse parses an HTTP response from a GetLastUsedProjectWithResponse call +func ParseGetLastUsedProjectResponse(rsp *http.Response) (*GetLastUsedProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLastUsedProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseLastUsedProject1Response parses an HTTP response from a LastUsedProject1WithResponse call +func ParseLastUsedProject1Response(rsp *http.Response) (*LastUsedProject1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &LastUsedProject1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + union json.RawMessage + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectsListResponse parses an HTTP response from a GetProjectsListWithResponse call +func ParseGetProjectsListResponse(rsp *http.Response) (*GetProjectsListResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectsListResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHasManagerRole1Response parses an HTTP response from a HasManagerRole1WithResponse call +func ParseHasManagerRole1Response(rsp *http.Response) (*HasManagerRole1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HasManagerRole1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectsForReportFilterResponse parses an HTTP response from a GetProjectsForReportFilterWithResponse call +func ParseGetProjectsForReportFilterResponse(rsp *http.Response) (*GetProjectsForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectsForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectIdsForReportFilterResponse parses an HTTP response from a GetProjectIdsForReportFilterWithResponse call +func ParseGetProjectIdsForReportFilterResponse(rsp *http.Response) (*GetProjectIdsForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectIdsForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTasksByIdsResponse parses an HTTP response from a GetTasksByIdsWithResponse call +func ParseGetTasksByIdsResponse(rsp *http.Response) (*GetTasksByIdsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTasksByIdsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAllTasksResponse parses an HTTP response from a GetAllTasksWithResponse call +func ParseGetAllTasksResponse(rsp *http.Response) (*GetAllTasksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllTasksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTasksResponse parses an HTTP response from a GetTasksWithResponse call +func ParseGetTasksResponse(rsp *http.Response) (*GetTasksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTasksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTasksForReportFilterResponse parses an HTTP response from a GetTasksForReportFilterWithResponse call +func ParseGetTasksForReportFilterResponse(rsp *http.Response) (*GetTasksForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTasksForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TasksGroupedByProjectIdDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTaskIdsForReportFilterResponse parses an HTTP response from a GetTaskIdsForReportFilterWithResponse call +func ParseGetTaskIdsForReportFilterResponse(rsp *http.Response) (*GetTaskIdsForReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTaskIdsForReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse parses an HTTP response from a GetTimeOffPoliciesAndHolidaysWithProjectsWithResponse call +func ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse(rsp *http.Response) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeOffPoliciesAndHolidaysWithProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffPolicyHolidayForProjects + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLastUsedOfUserResponse parses an HTTP response from a GetLastUsedOfUserWithResponse call +func ParseGetLastUsedOfUserResponse(rsp *http.Response) (*GetLastUsedOfUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLastUsedOfUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPermissionsToUserForProjectsResponse parses an HTTP response from a GetPermissionsToUserForProjectsWithResponse call +func ParseGetPermissionsToUserForProjectsResponse(rsp *http.Response) (*GetPermissionsToUserForProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPermissionsToUserForProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete13Response parses an HTTP response from a Delete13WithResponse call +func ParseDelete13Response(rsp *http.Response) (*Delete13Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete13Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProject1Response parses an HTTP response from a GetProject1WithResponse call +func ParseGetProject1Response(rsp *http.Response) (*GetProject1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProject1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate14Response parses an HTTP response from a Update14WithResponse call +func ParseUpdate14Response(rsp *http.Response) (*Update14Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update14Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate6Response parses an HTTP response from a Update6WithResponse call +func ParseUpdate6Response(rsp *http.Response) (*Update6Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update6Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetCostRate1Response parses an HTTP response from a SetCostRate1WithResponse call +func ParseSetCostRate1Response(rsp *http.Response) (*SetCostRate1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetCostRate1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateEstimateResponse parses an HTTP response from a UpdateEstimateWithResponse call +func ParseUpdateEstimateResponse(rsp *http.Response) (*UpdateEstimateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateEstimateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetHourlyRate1Response parses an HTTP response from a SetHourlyRate1WithResponse call +func ParseSetHourlyRate1Response(rsp *http.Response) (*SetHourlyRate1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetHourlyRate1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHasManagerRoleResponse parses an HTTP response from a HasManagerRoleWithResponse call +func ParseHasManagerRoleResponse(rsp *http.Response) (*HasManagerRoleResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HasManagerRoleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAuthsForProjectResponse parses an HTTP response from a GetAuthsForProjectWithResponse call +func ParseGetAuthsForProjectResponse(rsp *http.Response) (*GetAuthsForProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAuthsForProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRecalculateProjectStatusResponse parses an HTTP response from a RecalculateProjectStatusWithResponse call +func ParseRecalculateProjectStatusResponse(rsp *http.Response) (*RecalculateProjectStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RecalculateProjectStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetTasks1Response parses an HTTP response from a GetTasks1WithResponse call +func ParseGetTasks1Response(rsp *http.Response) (*GetTasks1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTasks1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate13Response parses an HTTP response from a Create13WithResponse call +func ParseCreate13Response(rsp *http.Response) (*Create13Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create13Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetTasksAssignedToUserResponse parses an HTTP response from a GetTasksAssignedToUserWithResponse call +func ParseGetTasksAssignedToUserResponse(rsp *http.Response) (*GetTasksAssignedToUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTasksAssignedToUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse parses an HTTP response from a GetTimeOffPoliciesAndHolidaysWithTasksWithResponse call +func ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse(rsp *http.Response) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeOffPoliciesAndHolidaysWithTasksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffPolicyHolidayForTasks + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate7Response parses an HTTP response from a Update7WithResponse call +func ParseUpdate7Response(rsp *http.Response) (*Update7Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update7Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetCostRateResponse parses an HTTP response from a SetCostRateWithResponse call +func ParseSetCostRateResponse(rsp *http.Response) (*SetCostRateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetCostRateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetHourlyRateResponse parses an HTTP response from a SetHourlyRateWithResponse call +func ParseSetHourlyRateResponse(rsp *http.Response) (*SetHourlyRateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetHourlyRateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete14Response parses an HTTP response from a Delete14WithResponse call +func ParseDelete14Response(rsp *http.Response) (*Delete14Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete14Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTaskAssignedToUserResponse parses an HTTP response from a GetTaskAssignedToUserWithResponse call +func ParseGetTaskAssignedToUserResponse(rsp *http.Response) (*GetTaskAssignedToUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTaskAssignedToUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TaskDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddUsers1Response parses an HTTP response from a AddUsers1WithResponse call +func ParseAddUsers1Response(rsp *http.Response) (*AddUsers1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddUsers1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetStatusResponse parses an HTTP response from a GetStatusWithResponse call +func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectStatus + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveUserGroupMembershipResponse parses an HTTP response from a RemoveUserGroupMembershipWithResponse call +func ParseRemoveUserGroupMembershipResponse(rsp *http.Response) (*RemoveUserGroupMembershipResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveUserGroupMembershipResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsers4Response parses an HTTP response from a GetUsers4WithResponse call +func ParseGetUsers4Response(rsp *http.Response) (*GetUsers4Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsers4Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddUsersCostRate1Response parses an HTTP response from a AddUsersCostRate1WithResponse call +func ParseAddUsersCostRate1Response(rsp *http.Response) (*AddUsersCostRate1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddUsersCostRate1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddUsersHourlyRate1Response parses an HTTP response from a AddUsersHourlyRate1WithResponse call +func ParseAddUsersHourlyRate1Response(rsp *http.Response) (*AddUsersHourlyRate1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddUsersHourlyRate1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveUserMembershipResponse parses an HTTP response from a RemoveUserMembershipWithResponse call +func ParseRemoveUserMembershipResponse(rsp *http.Response) (*RemoveUserMembershipResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveUserMembershipResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemovePermissionsToUserResponse parses an HTTP response from a RemovePermissionsToUserWithResponse call +func ParseRemovePermissionsToUserResponse(rsp *http.Response) (*RemovePermissionsToUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemovePermissionsToUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPermissionsToUser1Response parses an HTTP response from a GetPermissionsToUser1WithResponse call +func ParseGetPermissionsToUser1Response(rsp *http.Response) (*GetPermissionsToUser1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPermissionsToUser1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddPermissionsToUserResponse parses an HTTP response from a AddPermissionsToUserWithResponse call +func ParseAddPermissionsToUserResponse(rsp *http.Response) (*AddPermissionsToUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddPermissionsToUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDisconnectResponse parses an HTTP response from a DisconnectWithResponse call +func ParseDisconnectResponse(rsp *http.Response) (*DisconnectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DisconnectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseConnectResponse parses an HTTP response from a ConnectWithResponse call +func ParseConnectResponse(rsp *http.Response) (*ConnectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ConnectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PumbleInitialConnectionDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseConnect1Response parses an HTTP response from a Connect1WithResponse call +func ParseConnect1Response(rsp *http.Response) (*Connect1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Connect1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PumbleConnectedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSyncClientsResponse parses an HTTP response from a SyncClientsWithResponse call +func ParseSyncClientsResponse(rsp *http.Response) (*SyncClientsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SyncClientsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest []ClientDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseSyncProjectsResponse parses an HTTP response from a SyncProjectsWithResponse call +func ParseSyncProjectsResponse(rsp *http.Response) (*SyncProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SyncProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest []ProjectDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseUpdateProjectsResponse parses an HTTP response from a UpdateProjectsWithResponse call +func ParseUpdateProjectsResponse(rsp *http.Response) (*UpdateProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAllRegionsForUserAccountResponse parses an HTTP response from a GetAllRegionsForUserAccountWithResponse call +func ParseGetAllRegionsForUserAccountResponse(rsp *http.Response) (*GetAllRegionsForUserAccountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllRegionsForUserAccountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []RegionDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseListOfWorkspaceResponse parses an HTTP response from a ListOfWorkspaceWithResponse call +func ParseListOfWorkspaceResponse(rsp *http.Response) (*ListOfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ReminderDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate11Response parses an HTTP response from a Create11WithResponse call +func ParseCreate11Response(rsp *http.Response) (*Create11Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create11Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ReminderDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseOfWorkspaceIdAndUserIdResponse parses an HTTP response from a OfWorkspaceIdAndUserIdWithResponse call +func ParseOfWorkspaceIdAndUserIdResponse(rsp *http.Response) (*OfWorkspaceIdAndUserIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &OfWorkspaceIdAndUserIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ReminderDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete12Response parses an HTTP response from a Delete12WithResponse call +func ParseDelete12Response(rsp *http.Response) (*Delete12Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete12Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUpdate5Response parses an HTTP response from a Update5WithResponse call +func ParseUpdate5Response(rsp *http.Response) (*Update5Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update5Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReminderDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetDashboardInfoResponse parses an HTTP response from a GetDashboardInfoWithResponse call +func ParseGetDashboardInfoResponse(rsp *http.Response) (*GetDashboardInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDashboardInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MainReportDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetMyMostTrackedResponse parses an HTTP response from a GetMyMostTrackedWithResponse call +func ParseGetMyMostTrackedResponse(rsp *http.Response) (*GetMyMostTrackedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetMyMostTrackedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []MostTrackedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTeamActivitiesResponse parses an HTTP response from a GetTeamActivitiesWithResponse call +func ParseGetTeamActivitiesResponse(rsp *http.Response) (*GetTeamActivitiesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamActivitiesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TeamActivityDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAmountPreviewResponse parses an HTTP response from a GetAmountPreviewWithResponse call +func ParseGetAmountPreviewResponse(rsp *http.Response) (*GetAmountPreviewResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAmountPreviewResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BillableAndCostAmountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetDraftAssignmentsCountResponse parses an HTTP response from a GetDraftAssignmentsCountWithResponse call +func ParseGetDraftAssignmentsCountResponse(rsp *http.Response) (*GetDraftAssignmentsCountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDraftAssignmentsCountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest DraftAssignmentsCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectTotalsResponse parses an HTTP response from a GetProjectTotalsWithResponse call +func ParseGetProjectTotalsResponse(rsp *http.Response) (*GetProjectTotalsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectTotalsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []SchedulingProjectsTotalsWithoutBillableDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetFilteredProjectTotalsResponse parses an HTTP response from a GetFilteredProjectTotalsWithResponse call +func ParseGetFilteredProjectTotalsResponse(rsp *http.Response) (*GetFilteredProjectTotalsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFilteredProjectTotalsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []SchedulingProjectsTotalsWithoutBillableDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectTotalsForSingleProjectResponse parses an HTTP response from a GetProjectTotalsForSingleProjectWithResponse call +func ParseGetProjectTotalsForSingleProjectResponse(rsp *http.Response) (*GetProjectTotalsForSingleProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectTotalsForSingleProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchedulingProjectsTotalsWithoutBillableDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectsForUserResponse parses an HTTP response from a GetProjectsForUserWithResponse call +func ParseGetProjectsForUserResponse(rsp *http.Response) (*GetProjectsForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectsForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchedulingProjectsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePublishAssignmentsResponse parses an HTTP response from a PublishAssignmentsWithResponse call +func ParsePublishAssignmentsResponse(rsp *http.Response) (*PublishAssignmentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PublishAssignmentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCreateRecurringResponse parses an HTTP response from a CreateRecurringWithResponse call +func ParseCreateRecurringResponse(rsp *http.Response) (*CreateRecurringResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateRecurringResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDelete11Response parses an HTTP response from a Delete11WithResponse call +func ParseDelete11Response(rsp *http.Response) (*Delete11Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete11Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditRecurringResponse parses an HTTP response from a EditRecurringWithResponse call +func ParseEditRecurringResponse(rsp *http.Response) (*EditRecurringResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditRecurringResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditPeriodForRecurringResponse parses an HTTP response from a EditPeriodForRecurringWithResponse call +func ParseEditPeriodForRecurringResponse(rsp *http.Response) (*EditPeriodForRecurringResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditPeriodForRecurringResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditRecurringPeriodResponse parses an HTTP response from a EditRecurringPeriodWithResponse call +func ParseEditRecurringPeriodResponse(rsp *http.Response) (*EditRecurringPeriodResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditRecurringPeriodResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserTotalsResponse parses an HTTP response from a GetUserTotalsWithResponse call +func ParseGetUserTotalsResponse(rsp *http.Response) (*GetUserTotalsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserTotalsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []SchedulingUsersTotalsWithoutBillableDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAssignmentsForUserResponse parses an HTTP response from a GetAssignmentsForUserWithResponse call +func ParseGetAssignmentsForUserResponse(rsp *http.Response) (*GetAssignmentsForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAssignmentsForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentHydratedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetFilteredAssignmentsForUserResponse parses an HTTP response from a GetFilteredAssignmentsForUserWithResponse call +func ParseGetFilteredAssignmentsForUserResponse(rsp *http.Response) (*GetFilteredAssignmentsForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFilteredAssignmentsForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentHydratedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsers3Response parses an HTTP response from a GetUsers3WithResponse call +func ParseGetUsers3Response(rsp *http.Response) (*GetUsers3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsers3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchedulingUsersBaseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjects1Response parses an HTTP response from a GetProjects1WithResponse call +func ParseGetProjects1Response(rsp *http.Response) (*GetProjects1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjects1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchedulingProjectsBaseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemindToPublishResponse parses an HTTP response from a RemindToPublishWithResponse call +func ParseRemindToPublishResponse(rsp *http.Response) (*RemindToPublishResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemindToPublishResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetUserTotalsForSingleUserResponse parses an HTTP response from a GetUserTotalsForSingleUserWithResponse call +func ParseGetUserTotalsForSingleUserResponse(rsp *http.Response) (*GetUserTotalsForSingleUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserTotalsForSingleUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SchedulingUsersBaseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGet3Response parses an HTTP response from a Get3WithResponse call +func ParseGet3Response(rsp *http.Response) (*Get3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Get3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCopyAssignmentResponse parses an HTTP response from a CopyAssignmentWithResponse call +func ParseCopyAssignmentResponse(rsp *http.Response) (*CopyAssignmentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CopyAssignmentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSplitAssignmentResponse parses an HTTP response from a SplitAssignmentWithResponse call +func ParseSplitAssignmentResponse(rsp *http.Response) (*SplitAssignmentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SplitAssignmentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseShiftScheduleResponse parses an HTTP response from a ShiftScheduleWithResponse call +func ParseShiftScheduleResponse(rsp *http.Response) (*ShiftScheduleResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ShiftScheduleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AssignmentDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseHideProjectResponse parses an HTTP response from a HideProjectWithResponse call +func ParseHideProjectResponse(rsp *http.Response) (*HideProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HideProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseShowProjectResponse parses an HTTP response from a ShowProjectWithResponse call +func ParseShowProjectResponse(rsp *http.Response) (*ShowProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ShowProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseHideUserResponse parses an HTTP response from a HideUserWithResponse call +func ParseHideUserResponse(rsp *http.Response) (*HideUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &HideUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseShowUserResponse parses an HTTP response from a ShowUserWithResponse call +func ParseShowUserResponse(rsp *http.Response) (*ShowUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ShowUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCreate10Response parses an HTTP response from a Create10WithResponse call +func ParseCreate10Response(rsp *http.Response) (*Create10Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create10Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest MilestoneDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDelete10Response parses an HTTP response from a Delete10WithResponse call +func ParseDelete10Response(rsp *http.Response) (*Delete10Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete10Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MilestoneDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGet2Response parses an HTTP response from a Get2WithResponse call +func ParseGet2Response(rsp *http.Response) (*Get2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Get2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MilestoneDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEdit1Response parses an HTTP response from a Edit1WithResponse call +func ParseEdit1Response(rsp *http.Response) (*Edit1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Edit1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MilestoneDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditDateResponse parses an HTTP response from a EditDateWithResponse call +func ParseEditDateResponse(rsp *http.Response) (*EditDateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditDateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MilestoneDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call +func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetProjectsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ProjectFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsers2Response parses an HTTP response from a GetUsers2WithResponse call +func ParseGetUsers2Response(rsp *http.Response) (*GetUsers2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsers2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersAssignedToProjectResponse parses an HTTP response from a GetUsersAssignedToProjectWithResponse call +func ParseGetUsersAssignedToProjectResponse(rsp *http.Response) (*GetUsersAssignedToProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersAssignedToProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetSidebarConfigResponse parses an HTTP response from a GetSidebarConfigWithResponse call +func ParseGetSidebarConfigResponse(rsp *http.Response) (*GetSidebarConfigResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSidebarConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SidebarResponseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateSidebarResponse parses an HTTP response from a UpdateSidebarWithResponse call +func ParseUpdateSidebarResponse(rsp *http.Response) (*UpdateSidebarResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateSidebarResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest SidebarResponseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFilterUsersByStatusResponse parses an HTTP response from a FilterUsersByStatusWithResponse call +func ParseFilterUsersByStatusResponse(rsp *http.Response) (*FilterUsersByStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FilterUsersByStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PtoTeamMemberDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete9Response parses an HTTP response from a Delete9WithResponse call +func ParseDelete9Response(rsp *http.Response) (*Delete9Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete9Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseStopResponse parses an HTTP response from a StopWithResponse call +func ParseStopResponse(rsp *http.Response) (*StopResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &StopResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseStartResponse parses an HTTP response from a StartWithResponse call +func ParseStartResponse(rsp *http.Response) (*StartResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &StartResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDeleteMany1Response parses an HTTP response from a DeleteMany1WithResponse call +func ParseDeleteMany1Response(rsp *http.Response) (*DeleteMany1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteMany1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTagsResponse parses an HTTP response from a GetTagsWithResponse call +func ParseGetTagsResponse(rsp *http.Response) (*GetTagsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTagsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateManyResponse parses an HTTP response from a UpdateManyWithResponse call +func ParseUpdateManyResponse(rsp *http.Response) (*UpdateManyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateManyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate9Response parses an HTTP response from a Create9WithResponse call +func ParseCreate9Response(rsp *http.Response) (*Create9Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create9Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseConnectedToApprovedEntriesResponse parses an HTTP response from a ConnectedToApprovedEntriesWithResponse call +func ParseConnectedToApprovedEntriesResponse(rsp *http.Response) (*ConnectedToApprovedEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ConnectedToApprovedEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTagsOfIdsResponse parses an HTTP response from a GetTagsOfIdsWithResponse call +func ParseGetTagsOfIdsResponse(rsp *http.Response) (*GetTagsOfIdsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTagsOfIdsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTagIdsByNameAndStatusResponse parses an HTTP response from a GetTagIdsByNameAndStatusWithResponse call +func ParseGetTagIdsByNameAndStatusResponse(rsp *http.Response) (*GetTagIdsByNameAndStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTagIdsByNameAndStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete8Response parses an HTTP response from a Delete8WithResponse call +func ParseDelete8Response(rsp *http.Response) (*Delete8Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete8Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate4Response parses an HTTP response from a Update4WithResponse call +func ParseUpdate4Response(rsp *http.Response) (*Update4Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update4Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TagDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTemplatesResponse parses an HTTP response from a GetTemplatesWithResponse call +func ParseGetTemplatesResponse(rsp *http.Response) (*GetTemplatesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTemplatesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TemplateFullWithEntitiesFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate8Response parses an HTTP response from a Create8WithResponse call +func ParseCreate8Response(rsp *http.Response) (*Create8Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create8Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TemplateDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete7Response parses an HTTP response from a Delete7WithResponse call +func ParseDelete7Response(rsp *http.Response) (*Delete7Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete7Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TemplateDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call +func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTemplateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TemplateDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate13Response parses an HTTP response from a Update13WithResponse call +func ParseUpdate13Response(rsp *http.Response) (*Update13Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update13Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TemplateDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseActivateResponse parses an HTTP response from a ActivateWithResponse call +func ParseActivateResponse(rsp *http.Response) (*ActivateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ActivateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CopiedEntriesDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeactivateResponse parses an HTTP response from a DeactivateWithResponse call +func ParseDeactivateResponse(rsp *http.Response) (*DeactivateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeactivateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCopyTimeEntriesResponse parses an HTTP response from a CopyTimeEntriesWithResponse call +func ParseCopyTimeEntriesResponse(rsp *http.Response) (*CopyTimeEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CopyTimeEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CopiedEntriesDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseContinueTimeEntryResponse parses an HTTP response from a ContinueTimeEntryWithResponse call +func ParseContinueTimeEntryResponse(rsp *http.Response) (*ContinueTimeEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ContinueTimeEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetTeamMembersOfAdminResponse parses an HTTP response from a GetTeamMembersOfAdminWithResponse call +func ParseGetTeamMembersOfAdminResponse(rsp *http.Response) (*GetTeamMembersOfAdminResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamMembersOfAdminResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PtoTeamMembersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetBalancesForPolicyResponse parses an HTTP response from a GetBalancesForPolicyWithResponse call +func ParseGetBalancesForPolicyResponse(rsp *http.Response) (*GetBalancesForPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetBalancesForPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BalancesWithCount + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateBalanceResponse parses an HTTP response from a UpdateBalanceWithResponse call +func ParseUpdateBalanceResponse(rsp *http.Response) (*UpdateBalanceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateBalanceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetBalancesForUserResponse parses an HTTP response from a GetBalancesForUserWithResponse call +func ParseGetBalancesForUserResponse(rsp *http.Response) (*GetBalancesForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetBalancesForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest BalancesWithCount + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTeamMembersOfManagerResponse parses an HTTP response from a GetTeamMembersOfManagerWithResponse call +func ParseGetTeamMembersOfManagerResponse(rsp *http.Response) (*GetTeamMembersOfManagerResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamMembersOfManagerResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PtoTeamMembersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFindPoliciesForWorkspaceResponse parses an HTTP response from a FindPoliciesForWorkspaceWithResponse call +func ParseFindPoliciesForWorkspaceResponse(rsp *http.Response) (*FindPoliciesForWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindPoliciesForWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreatePolicyResponse parses an HTTP response from a CreatePolicyWithResponse call +func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreatePolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetPolicyAssignmentForCurrentUserResponse parses an HTTP response from a GetPolicyAssignmentForCurrentUserWithResponse call +func ParseGetPolicyAssignmentForCurrentUserResponse(rsp *http.Response) (*GetPolicyAssignmentForCurrentUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPolicyAssignmentForCurrentUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PolicyAssignmentFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTeamAssignmentsDistributionResponse parses an HTTP response from a GetTeamAssignmentsDistributionWithResponse call +func ParseGetTeamAssignmentsDistributionResponse(rsp *http.Response) (*GetTeamAssignmentsDistributionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAssignmentsDistributionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TeamPolicyAssignmentsDistribution + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPolicyAssignmentsForUserResponse parses an HTTP response from a GetPolicyAssignmentsForUserWithResponse call +func ParseGetPolicyAssignmentsForUserResponse(rsp *http.Response) (*GetPolicyAssignmentsForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPolicyAssignmentsForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PolicyAssignmentFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseFindPoliciesForUserResponse parses an HTTP response from a FindPoliciesForUserWithResponse call +func ParseFindPoliciesForUserResponse(rsp *http.Response) (*FindPoliciesForUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &FindPoliciesForUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeletePolicyResponse parses an HTTP response from a DeletePolicyWithResponse call +func ParseDeletePolicyResponse(rsp *http.Response) (*DeletePolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeletePolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseUpdatePolicyResponse parses an HTTP response from a UpdatePolicyWithResponse call +func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdatePolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseArchiveResponse parses an HTTP response from a ArchiveWithResponse call +func ParseArchiveResponse(rsp *http.Response) (*ArchiveResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ArchiveResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRestoreResponse parses an HTTP response from a RestoreWithResponse call +func ParseRestoreResponse(rsp *http.Response) (*RestoreResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RestoreResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call +func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PolicyDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate7Response parses an HTTP response from a Create7WithResponse call +func ParseCreate7Response(rsp *http.Response) (*Create7Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create7Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete6Response parses an HTTP response from a Delete6WithResponse call +func ParseDelete6Response(rsp *http.Response) (*Delete6Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete6Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseApproveResponse parses an HTTP response from a ApproveWithResponse call +func ParseApproveResponse(rsp *http.Response) (*ApproveResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ApproveResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRejectResponse parses an HTTP response from a RejectWithResponse call +func ParseRejectResponse(rsp *http.Response) (*RejectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RejectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateForOther1Response parses an HTTP response from a CreateForOther1WithResponse call +func ParseCreateForOther1Response(rsp *http.Response) (*CreateForOther1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateForOther1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGet1Response parses an HTTP response from a Get1WithResponse call +func ParseGet1Response(rsp *http.Response) (*Get1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Get1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestsWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeOffRequestByIdResponse parses an HTTP response from a GetTimeOffRequestByIdWithResponse call +func ParseGetTimeOffRequestByIdResponse(rsp *http.Response) (*GetTimeOffRequestByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeOffRequestByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeOffRequestFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAllUsersOfWorkspaceResponse parses an HTTP response from a GetAllUsersOfWorkspaceWithResponse call +func ParseGetAllUsersOfWorkspaceResponse(rsp *http.Response) (*GetAllUsersOfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllUsersOfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PtoTeamMembersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserGroupsOfWorkspaceResponse parses an HTTP response from a GetUserGroupsOfWorkspaceWithResponse call +func ParseGetUserGroupsOfWorkspaceResponse(rsp *http.Response) (*GetUserGroupsOfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroupsOfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PtoTeamMembersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersOfWorkspaceResponse parses an HTTP response from a GetUsersOfWorkspaceWithResponse call +func ParseGetUsersOfWorkspaceResponse(rsp *http.Response) (*GetUsersOfWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersOfWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest PtoTeamMembersAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetResponse parses an HTTP response from a GetWithResponse call +func ParseGetResponse(rsp *http.Response) (*GetResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimelineUsersDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimelineForReportsResponse parses an HTTP response from a GetTimelineForReportsWithResponse call +func ParseGetTimelineForReportsResponse(rsp *http.Response) (*GetTimelineForReportsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimelineForReportsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimelineUsersDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteManyResponse parses an HTTP response from a DeleteManyWithResponse call +func ParseDeleteManyResponse(rsp *http.Response) (*DeleteManyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteManyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryUpdatedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntriesBySearchValueResponse parses an HTTP response from a GetTimeEntriesBySearchValueWithResponse call +func ParseGetTimeEntriesBySearchValueResponse(rsp *http.Response) (*GetTimeEntriesBySearchValueResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntriesBySearchValueResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryRecentlyUsedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate6Response parses an HTTP response from a Create6WithResponse call +func ParseCreate6Response(rsp *http.Response) (*Create6Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create6Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParsePatchTimeEntriesResponse parses an HTTP response from a PatchTimeEntriesWithResponse call +func ParsePatchTimeEntriesResponse(rsp *http.Response) (*PatchTimeEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchTimeEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEndStartedResponse parses an HTTP response from a EndStartedWithResponse call +func ParseEndStartedResponse(rsp *http.Response) (*EndStartedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EndStartedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetMultipleTimeEntriesByIdResponse parses an HTTP response from a GetMultipleTimeEntriesByIdWithResponse call +func ParseGetMultipleTimeEntriesByIdResponse(rsp *http.Response) (*GetMultipleTimeEntriesByIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetMultipleTimeEntriesByIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateFull1Response parses an HTTP response from a CreateFull1WithResponse call +func ParseCreateFull1Response(rsp *http.Response) (*CreateFull1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateFull1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntryInProgressResponse parses an HTTP response from a GetTimeEntryInProgressWithResponse call +func ParseGetTimeEntryInProgressResponse(rsp *http.Response) (*GetTimeEntryInProgressResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntryInProgressResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateInvoicedStatusResponse parses an HTTP response from a UpdateInvoicedStatusWithResponse call +func ParseUpdateInvoicedStatusResponse(rsp *http.Response) (*UpdateInvoicedStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateInvoicedStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseListOfProjectResponse parses an HTTP response from a ListOfProjectWithResponse call +func ParseListOfProjectResponse(rsp *http.Response) (*ListOfProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOfProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntriesRecentlyUsedResponse parses an HTTP response from a GetTimeEntriesRecentlyUsedWithResponse call +func ParseGetTimeEntriesRecentlyUsedResponse(rsp *http.Response) (*GetTimeEntriesRecentlyUsedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntriesRecentlyUsedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryRecentlyUsedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRestoreTimeEntriesResponse parses an HTTP response from a RestoreTimeEntriesWithResponse call +func ParseRestoreTimeEntriesResponse(rsp *http.Response) (*RestoreTimeEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RestoreTimeEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateForManyResponse parses an HTTP response from a CreateForManyWithResponse call +func ParseCreateForManyResponse(rsp *http.Response) (*CreateForManyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateForManyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryWithUsernameDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateForOthersResponse parses an HTTP response from a CreateForOthersWithResponse call +func ParseCreateForOthersResponse(rsp *http.Response) (*CreateForOthersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateForOthersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntrySummaryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseListOfFullResponse parses an HTTP response from a ListOfFullWithResponse call +func ParseListOfFullResponse(rsp *http.Response) (*ListOfFullResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListOfFullResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TeamMemberInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntriesResponse parses an HTTP response from a GetTimeEntriesWithResponse call +func ParseGetTimeEntriesResponse(rsp *http.Response) (*GetTimeEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAssertTimeEntriesExistInDateRangeResponse parses an HTTP response from a AssertTimeEntriesExistInDateRangeWithResponse call +func ParseAssertTimeEntriesExistInDateRangeResponse(rsp *http.Response) (*AssertTimeEntriesExistInDateRangeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AssertTimeEntriesExistInDateRangeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCreateFullResponse parses an HTTP response from a CreateFullWithResponse call +func ParseCreateFullResponse(rsp *http.Response) (*CreateFullResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateFullResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntriesInRangeResponse parses an HTTP response from a GetTimeEntriesInRangeWithResponse call +func ParseGetTimeEntriesInRangeResponse(rsp *http.Response) (*GetTimeEntriesInRangeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntriesInRangeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntriesForTimesheetResponse parses an HTTP response from a GetTimeEntriesForTimesheetWithResponse call +func ParseGetTimeEntriesForTimesheetResponse(rsp *http.Response) (*GetTimeEntriesForTimesheetResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntriesForTimesheetResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchResponse parses an HTTP response from a PatchWithResponse call +func ParsePatchResponse(rsp *http.Response) (*PatchResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryUpdatedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate3Response parses an HTTP response from a Update3WithResponse call +func ParseUpdate3Response(rsp *http.Response) (*Update3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntryAttributesResponse parses an HTTP response from a GetTimeEntryAttributesWithResponse call +func ParseGetTimeEntryAttributesResponse(rsp *http.Response) (*GetTimeEntryAttributesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntryAttributesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []CustomAttributeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateTimeEntryAttributeResponse parses an HTTP response from a CreateTimeEntryAttributeWithResponse call +func ParseCreateTimeEntryAttributeResponse(rsp *http.Response) (*CreateTimeEntryAttributeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateTimeEntryAttributeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CustomAttributeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDeleteTimeEntryAttributeResponse parses an HTTP response from a DeleteTimeEntryAttributeWithResponse call +func ParseDeleteTimeEntryAttributeResponse(rsp *http.Response) (*DeleteTimeEntryAttributeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteTimeEntryAttributeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest CustomAttributeDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateBillableResponse parses an HTTP response from a UpdateBillableWithResponse call +func ParseUpdateBillableResponse(rsp *http.Response) (*UpdateBillableResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateBillableResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateDescriptionResponse parses an HTTP response from a UpdateDescriptionWithResponse call +func ParseUpdateDescriptionResponse(rsp *http.Response) (*UpdateDescriptionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateDescriptionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateEndResponse parses an HTTP response from a UpdateEndWithResponse call +func ParseUpdateEndResponse(rsp *http.Response) (*UpdateEndResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateEndResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateFullResponse parses an HTTP response from a UpdateFullWithResponse call +func ParseUpdateFullResponse(rsp *http.Response) (*UpdateFullResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateFullResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call +func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveProjectResponse parses an HTTP response from a RemoveProjectWithResponse call +func ParseRemoveProjectResponse(rsp *http.Response) (*RemoveProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateProjectAndTaskResponse parses an HTTP response from a UpdateProjectAndTaskWithResponse call +func ParseUpdateProjectAndTaskResponse(rsp *http.Response) (*UpdateProjectAndTaskResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateProjectAndTaskResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateAndSplitResponse parses an HTTP response from a UpdateAndSplitWithResponse call +func ParseUpdateAndSplitResponse(rsp *http.Response) (*UpdateAndSplitResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateAndSplitResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSplitTimeEntryResponse parses an HTTP response from a SplitTimeEntryWithResponse call +func ParseSplitTimeEntryResponse(rsp *http.Response) (*SplitTimeEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SplitTimeEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest []TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseUpdateStartResponse parses an HTTP response from a UpdateStartWithResponse call +func ParseUpdateStartResponse(rsp *http.Response) (*UpdateStartResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateStartResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateTagsResponse parses an HTTP response from a UpdateTagsWithResponse call +func ParseUpdateTagsResponse(rsp *http.Response) (*UpdateTagsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTagsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveTaskResponse parses an HTTP response from a RemoveTaskWithResponse call +func ParseRemoveTaskResponse(rsp *http.Response) (*RemoveTaskResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveTaskResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateTimeIntervalResponse parses an HTTP response from a UpdateTimeIntervalWithResponse call +func ParseUpdateTimeIntervalResponse(rsp *http.Response) (*UpdateTimeIntervalResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateTimeIntervalResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryUpdatedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call +func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete5Response parses an HTTP response from a Delete5WithResponse call +func ParseDelete5Response(rsp *http.Response) (*Delete5Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete5Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryUpdatedDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateCustomFieldResponse parses an HTTP response from a UpdateCustomFieldWithResponse call +func ParseUpdateCustomFieldResponse(rsp *http.Response) (*UpdateCustomFieldResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateCustomFieldResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest CustomFieldValueDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse parses an HTTP response from a PenalizeCurrentTimerAndStartNewTimeEntryWithResponse call +func ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse(rsp *http.Response) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PenalizeCurrentTimerAndStartNewTimeEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTransferWorkspaceDeprecatedFlowResponse parses an HTTP response from a TransferWorkspaceDeprecatedFlowWithResponse call +func ParseTransferWorkspaceDeprecatedFlowResponse(rsp *http.Response) (*TransferWorkspaceDeprecatedFlowResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TransferWorkspaceDeprecatedFlowResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceTransferDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTransferWorkspaceResponse parses an HTTP response from a TransferWorkspaceWithResponse call +func ParseTransferWorkspaceResponse(rsp *http.Response) (*TransferWorkspaceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TransferWorkspaceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceTransferDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTrialActivationDataResponse parses an HTTP response from a GetTrialActivationDataWithResponse call +func ParseGetTrialActivationDataResponse(rsp *http.Response) (*GetTrialActivationDataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTrialActivationDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TrialActivationDataDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveMemberResponse parses an HTTP response from a RemoveMemberWithResponse call +func ParseRemoveMemberResponse(rsp *http.Response) (*RemoveMemberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveMemberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCopyTimeEntryCalendarDragResponse parses an HTTP response from a CopyTimeEntryCalendarDragWithResponse call +func ParseCopyTimeEntryCalendarDragResponse(rsp *http.Response) (*CopyTimeEntryCalendarDragResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CopyTimeEntryCalendarDragResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDuplicateTimeEntryResponse parses an HTTP response from a DuplicateTimeEntryWithResponse call +func ParseDuplicateTimeEntryResponse(rsp *http.Response) (*DuplicateTimeEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DuplicateTimeEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest TimeEntryDtoImpl + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetUserGroups1Response parses an HTTP response from a GetUserGroups1WithResponse call +func ParseGetUserGroups1Response(rsp *http.Response) (*GetUserGroups1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroups1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate5Response parses an HTTP response from a Create5WithResponse call +func ParseCreate5Response(rsp *http.Response) (*Create5Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create5Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetUserGroups2Response parses an HTTP response from a GetUserGroups2WithResponse call +func ParseGetUserGroups2Response(rsp *http.Response) (*GetUserGroups2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroups2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GroupsAndCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserGroupNamesResponse parses an HTTP response from a GetUserGroupNamesWithResponse call +func ParseGetUserGroupNamesResponse(rsp *http.Response) (*GetUserGroupNamesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroupNamesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersForReportFilter1Response parses an HTTP response from a GetUsersForReportFilter1WithResponse call +func ParseGetUsersForReportFilter1Response(rsp *http.Response) (*GetUsersForReportFilter1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersForReportFilter1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserGroupForReportFilterPostResponse parses an HTTP response from a GetUserGroupForReportFilterPostWithResponse call +func ParseGetUserGroupForReportFilterPostResponse(rsp *http.Response) (*GetUserGroupForReportFilterPostResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroupForReportFilterPostResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersForAttendanceReportFilterResponse parses an HTTP response from a GetUsersForAttendanceReportFilterWithResponse call +func ParseGetUsersForAttendanceReportFilterResponse(rsp *http.Response) (*GetUsersForAttendanceReportFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersForAttendanceReportFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ReportFilterUsersWithCountDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserGroupIdsByNameResponse parses an HTTP response from a GetUserGroupIdsByNameWithResponse call +func ParseGetUserGroupIdsByNameResponse(rsp *http.Response) (*GetUserGroupIdsByNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroupIdsByNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserGroupsResponse parses an HTTP response from a GetUserGroupsWithResponse call +func ParseGetUserGroupsResponse(rsp *http.Response) (*GetUserGroupsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserGroupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveUserResponse parses an HTTP response from a RemoveUserWithResponse call +func ParseRemoveUserResponse(rsp *http.Response) (*RemoveUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddUsersToUserGroupsFilterResponse parses an HTTP response from a AddUsersToUserGroupsFilterWithResponse call +func ParseAddUsersToUserGroupsFilterResponse(rsp *http.Response) (*AddUsersToUserGroupsFilterResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddUsersToUserGroupsFilterResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete4Response parses an HTTP response from a Delete4WithResponse call +func ParseDelete4Response(rsp *http.Response) (*Delete4Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete4Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate2Response parses an HTTP response from a Update2WithResponse call +func ParseUpdate2Response(rsp *http.Response) (*Update2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserGroupDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsersResponse parses an HTTP response from a GetUsersWithResponse call +func ParseGetUsersResponse(rsp *http.Response) (*GetUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUsers1Response parses an HTTP response from a GetUsers1WithResponse call +func ParseGetUsers1Response(rsp *http.Response) (*GetUsers1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsers1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []UserDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseAddUsersResponse parses an HTTP response from a AddUsersWithResponse call +func ParseAddUsersResponse(rsp *http.Response) (*AddUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &AddUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetExpensesForUsersResponse parses an HTTP response from a GetExpensesForUsersWithResponse call +func ParseGetExpensesForUsersResponse(rsp *http.Response) (*GetExpensesForUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetExpensesForUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ExpenseDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetMembershipsResponse parses an HTTP response from a SetMembershipsWithResponse call +func ParseSetMembershipsResponse(rsp *http.Response) (*SetMembershipsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetMembershipsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseResendInviteResponse parses an HTTP response from a ResendInviteWithResponse call +func ParseResendInviteResponse(rsp *http.Response) (*ResendInviteResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ResendInviteResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateDeprecatedResponse parses an HTTP response from a CreateDeprecatedWithResponse call +func ParseCreateDeprecatedResponse(rsp *http.Response) (*CreateDeprecatedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateDeprecatedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetRequestsByUserResponse parses an HTTP response from a GetRequestsByUserWithResponse call +func ParseGetRequestsByUserResponse(rsp *http.Response) (*GetRequestsByUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRequestsByUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ApprovalInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetApprovedTotalsResponse parses an HTTP response from a GetApprovedTotalsWithResponse call +func ParseGetApprovedTotalsResponse(rsp *http.Response) (*GetApprovedTotalsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetApprovedTotalsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalPeriodTotalsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateForOtherDeprecatedResponse parses an HTTP response from a CreateForOtherDeprecatedWithResponse call +func ParseCreateForOtherDeprecatedResponse(rsp *http.Response) (*CreateForOtherDeprecatedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateForOtherDeprecatedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetPreviewResponse parses an HTTP response from a GetPreviewWithResponse call +func ParseGetPreviewResponse(rsp *http.Response) (*GetPreviewResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPreviewResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalPeriodTotalsDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntryStatusResponse parses an HTTP response from a GetTimeEntryStatusWithResponse call +func ParseGetTimeEntryStatusResponse(rsp *http.Response) (*GetTimeEntryStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntryStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryApprovalStatusDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTimeEntryWeekStatusResponse parses an HTTP response from a GetTimeEntryWeekStatusWithResponse call +func ParseGetTimeEntryWeekStatusResponse(rsp *http.Response) (*GetTimeEntryWeekStatusResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTimeEntryWeekStatusResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TimeEntryApprovalStatusDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWeeklyRequestsByUserResponse parses an HTTP response from a GetWeeklyRequestsByUserWithResponse call +func ParseGetWeeklyRequestsByUserResponse(rsp *http.Response) (*GetWeeklyRequestsByUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWeeklyRequestsByUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []ApprovalInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseWithdrawAllOfUserResponse parses an HTTP response from a WithdrawAllOfUserWithResponse call +func ParseWithdrawAllOfUserResponse(rsp *http.Response) (*WithdrawAllOfUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WithdrawAllOfUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseWithdrawAllOfWorkspaceDeprecatedResponse parses an HTTP response from a WithdrawAllOfWorkspaceDeprecatedWithResponse call +func ParseWithdrawAllOfWorkspaceDeprecatedResponse(rsp *http.Response) (*WithdrawAllOfWorkspaceDeprecatedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WithdrawAllOfWorkspaceDeprecatedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseWithdrawWeeklyOfUserResponse parses an HTTP response from a WithdrawWeeklyOfUserWithResponse call +func ParseWithdrawWeeklyOfUserResponse(rsp *http.Response) (*WithdrawWeeklyOfUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WithdrawWeeklyOfUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseSetCostRateForUser1Response parses an HTTP response from a SetCostRateForUser1WithResponse call +func ParseSetCostRateForUser1Response(rsp *http.Response) (*SetCostRateForUser1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetCostRateForUser1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpsertUserCustomFieldValueResponse parses an HTTP response from a UpsertUserCustomFieldValueWithResponse call +func ParseUpsertUserCustomFieldValueResponse(rsp *http.Response) (*UpsertUserCustomFieldValueResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpsertUserCustomFieldValueResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest []UserCustomFieldValueDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetFavoriteEntriesResponse parses an HTTP response from a GetFavoriteEntriesWithResponse call +func ParseGetFavoriteEntriesResponse(rsp *http.Response) (*GetFavoriteEntriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetFavoriteEntriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []FavoriteTimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateFavoriteTimeEntryResponse parses an HTTP response from a CreateFavoriteTimeEntryWithResponse call +func ParseCreateFavoriteTimeEntryResponse(rsp *http.Response) (*CreateFavoriteTimeEntryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateFavoriteTimeEntryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest FavoriteTimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseReorderInvoiceItemResponse parses an HTTP response from a ReorderInvoiceItemWithResponse call +func ParseReorderInvoiceItemResponse(rsp *http.Response) (*ReorderInvoiceItemResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ReorderInvoiceItemResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []FavoriteTimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDelete3Response parses an HTTP response from a Delete3WithResponse call +func ParseDelete3Response(rsp *http.Response) (*Delete3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdate1Response parses an HTTP response from a Update1WithResponse call +func ParseUpdate1Response(rsp *http.Response) (*Update1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Update1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest FavoriteTimeEntryFullDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetHolidays1Response parses an HTTP response from a GetHolidays1WithResponse call +func ParseGetHolidays1Response(rsp *http.Response) (*GetHolidays1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetHolidays1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []HolidayDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseSetHourlyRateForUser1Response parses an HTTP response from a SetHourlyRateForUser1WithResponse call +func ParseSetHourlyRateForUser1Response(rsp *http.Response) (*SetHourlyRateForUser1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &SetHourlyRateForUser1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkspaceDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPermissionsToUserResponse parses an HTTP response from a GetPermissionsToUserWithResponse call +func ParseGetPermissionsToUserResponse(rsp *http.Response) (*GetPermissionsToUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPermissionsToUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []AuthorizationDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseRemoveFavoriteProjectResponse parses an HTTP response from a RemoveFavoriteProjectWithResponse call +func ParseRemoveFavoriteProjectResponse(rsp *http.Response) (*RemoveFavoriteProjectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &RemoveFavoriteProjectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDelete2Response parses an HTTP response from a Delete2WithResponse call +func ParseDelete2Response(rsp *http.Response) (*Delete2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCreate4Response parses an HTTP response from a Create4WithResponse call +func ParseCreate4Response(rsp *http.Response) (*Create4Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create4Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ProjectFavoritesDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDelete1Response parses an HTTP response from a Delete1WithResponse call +func ParseDelete1Response(rsp *http.Response) (*Delete1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Delete1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseCreate3Response parses an HTTP response from a Create3WithResponse call +func ParseCreate3Response(rsp *http.Response) (*Create3Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create3Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TaskFavoritesDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseReSubmitResponse parses an HTTP response from a ReSubmitWithResponse call +func ParseReSubmitResponse(rsp *http.Response) (*ReSubmitResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ReSubmitResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserRolesResponse parses an HTTP response from a GetUserRolesWithResponse call +func ParseGetUserRolesResponse(rsp *http.Response) (*GetUserRolesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserRolesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserRolesInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateUserRolesResponse parses an HTTP response from a UpdateUserRolesWithResponse call +func ParseUpdateUserRolesResponse(rsp *http.Response) (*UpdateUserRolesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateUserRolesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest UserRolesInfoDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate2Response parses an HTTP response from a Create2WithResponse call +func ParseCreate2Response(rsp *http.Response) (*Create2Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create2Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseCreateForOtherResponse parses an HTTP response from a CreateForOtherWithResponse call +func ParseCreateForOtherResponse(rsp *http.Response) (*CreateForOtherResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateForOtherResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ApprovalRequestDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseGetWorkCapacityResponse parses an HTTP response from a GetWorkCapacityWithResponse call +func ParseGetWorkCapacityResponse(rsp *http.Response) (*GetWorkCapacityResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkCapacityResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetWebhooksResponse parses an HTTP response from a GetWebhooksWithResponse call +func ParseGetWebhooksResponse(rsp *http.Response) (*GetWebhooksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWebhooksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WebhooksDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreate1Response parses an HTTP response from a Create1WithResponse call +func ParseCreate1Response(rsp *http.Response) (*Create1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &Create1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest WebhookDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON201 = &dest + + } + + return response, nil +} + +// ParseDeleteResponse parses an HTTP response from a DeleteWithResponse call +func ParseDeleteResponse(rsp *http.Response) (*DeleteResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetWebhookResponse parses an HTTP response from a GetWebhookWithResponse call +func ParseGetWebhookResponse(rsp *http.Response) (*GetWebhookResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWebhookResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WebhookDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseUpdateResponse parses an HTTP response from a UpdateWithResponse call +func ParseUpdateResponse(rsp *http.Response) (*UpdateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &UpdateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WebhookDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLogsForWebhook1Response parses an HTTP response from a GetLogsForWebhook1WithResponse call +func ParseGetLogsForWebhook1Response(rsp *http.Response) (*GetLogsForWebhook1Response, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLogsForWebhook1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []WebhookLogDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetLogCountResponse parses an HTTP response from a GetLogCountWithResponse call +func ParseGetLogCountResponse(rsp *http.Response) (*GetLogCountResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLogCountResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest int64 + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTriggerResendEventForWebhookResponse parses an HTTP response from a TriggerResendEventForWebhookWithResponse call +func ParseTriggerResendEventForWebhookResponse(rsp *http.Response) (*TriggerResendEventForWebhookResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TriggerResendEventForWebhookResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseTriggerTestEventForWebhookResponse parses an HTTP response from a TriggerTestEventForWebhookWithResponse call +func ParseTriggerTestEventForWebhookResponse(rsp *http.Response) (*TriggerTestEventForWebhookResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &TriggerTestEventForWebhookResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest bool + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGenerateNewTokenResponse parses an HTTP response from a GenerateNewTokenWithResponse call +func ParseGenerateNewTokenResponse(rsp *http.Response) (*GenerateNewTokenResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GenerateNewTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WebhookDto + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} diff --git a/pkg/clockify/client.go b/pkg/clockify/client.go new file mode 100644 index 0000000..eaed947 --- /dev/null +++ b/pkg/clockify/client.go @@ -0,0 +1,20 @@ +package clockify + +import ( + "context" + "net/http" +) + +func NewClockifyClientWithBaseURL(baseURL string, token string) (*ClientWithResponses, error) { + hc := http.Client{} + var authInjection RequestEditorFn = func(ctx context.Context, req *http.Request) error { + req.Header.Add("X-Api-Key", token) + + return nil + } + return NewClientWithResponses(baseURL, WithHTTPClient(&hc), WithRequestEditorFn(authInjection)) +} + +func NewClockifyClient(token string) (*ClientWithResponses, error) { + return NewClockifyClientWithBaseURL("https://api.clockify.me/api", token) +} diff --git a/pkg/clockify/gogenerate.go b/pkg/clockify/gogenerate.go new file mode 100644 index 0000000..115e711 --- /dev/null +++ b/pkg/clockify/gogenerate.go @@ -0,0 +1,3 @@ +package clockify + +//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=../../config.yaml ../../slim_api.json diff --git a/slim_api.json b/slim_api.json new file mode 100644 index 0000000..eadd16f --- /dev/null +++ b/slim_api.json @@ -0,0 +1,52214 @@ +{ + "openapi": "3.0.1", + "info": { + "description": "## Introduction\nBy using this REST API, you can easily integrate Clockify with your own add-ons, push and pull data\nbetween Clockify and other tools, and create custom add-ons on [CAKE.com Marketplace](https://marketplace.cake.com).\nWhether you\u2019re looking to automate time tracking, generate custom reports, or build other custom\nintegrations, our API provides the flexibility and power you need to get the job done. If you\nhave any questions or run into any issues while using our API, don\u2019t hesitate to reach out to us for help.\nYou can also post questions on Stack Overflow with the Clockify tag to get help from the community.\n## Authentication\nTo authenticate your requests to your API, make sure to include either the \u2018X-Api-Key\u2019 or the\n\u2018X-Addon-Token\u2019 in the request header, containing your API or Addon key. If your workspace is\non a subdomain (e.g. subdomain.clockify.me), you\u2019ll need to generate a new API key in your\nProfile Settings that will work specifically for that workspace. This ensures that you\u2019re\naccessing data from the correct workspace and helps maintain the security of your data.\n## Webhooks\nWebhooks can enhance your workflow by keeping your add-on up-to-date with the latest changes in\nClockify. With Clockify\u2019s webhooks you can receive real-time notifications when certain events such as\nstarting timer or deleting time entry occur in Clockify. Workspace admins can create up to 10 webhooks\neach, with a total of 100 webhooks allowed per workspace.\n## Rate limiting\nOur REST API has a specific rate limit of 50 requests per second (by addon on one workspace) when\naccessed using X-Addon-Token. Exceeding this limit will result in an error message with the description\n\"Too many requests\".\n## API URLs\nRefer to the list on what URL to use base on the subdomain and data region settings of your workspace.\n* Global - can be used by workspaces with or without subdomain.\n * Regular: https://api.clockify.me/api/v1/file/image\n * PTO: https://pto.api.clockify.me/v1/workspaces/{workspaceId}/policies\n * Reports: https://reports.api.clockify.me/v1/workspaces/{workspaceId}/reports/detailed\n* Regional\n * Non-subdomain\n * Regular: https://euc1.clockify.me/api/v1/file/image\n * PTO: https://use2.api.clockify.me/pto/v1/workspaces/{workspaceId}/policies\n * Reports: https://use2.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n * Subdomain\n * Regular: https://euc1.clockify.me/api/v1/file/image\n * PTO: https://yoursubdomainname.clockify.me/pto/v1/workspaces/{workspaceId}/policies\n * Reports: https://yoursubdomainname.clockify.me/report/v1/workspaces/{workspaceId}/reports/detailed\n## Regional Server Prefixes\nIf your workspace is in a specific region, you need to change your URL prefix to access v1 API endpoints.\nFor example, this is how **backend** api [v1/file/image](#tag/User/operation/uploadImage) endpoint\nwould look in EU region:\n[https://euc1.clockify.me/api/v1/file/image](https://euc1.clockify.me)\n\nBelow are the available regional server prefixes:\n* **EU (Germany)**: euc1\n* **USA**: use2\n* **UK**: euw2\n* **AU**: apse2\n\n", + "title": "Clockify API", + "version": "v1", + "x-logo": { + "altText": "Clockify logo", + "url": "https://clockify.me/downloads/clockify_logo_primary_black_margin.png" + } + }, + "servers": [ + { + "url": "/api", + "description": "API Base URL" + } + ], + "security": [ + { + "ApiKeyAuth": [] + }, + { + "AddonKeyAuth": [] + } + ], + "paths": { + "/expense-report/{reportId}": { + "get": { + "operationId": "getInitialData", + "parameters": [ + { + "in": "path", + "name": "reportId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceEmailLinkDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "invoice-email-link-http-adapter" + ] + } + }, + "/expense-report/{reportId}/download": { + "post": { + "operationId": "downloadReport", + "parameters": [ + { + "in": "path", + "name": "reportId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceEmailLinkPinRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string", + "format": "binary" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "invoice-email-link-http-adapter" + ] + } + }, + "/expense-report/{reportId}/reset-pin": { + "patch": { + "operationId": "resetPin", + "parameters": [ + { + "in": "path", + "name": "reportId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "invoice-email-link-http-adapter" + ] + } + }, + "/expense-report/{reportId}/validate-pin": { + "patch": { + "operationId": "validatePin", + "parameters": [ + { + "in": "path", + "name": "reportId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceEmailLinkPinRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceEmailLinkPinValidationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "invoice-email-link-http-adapter" + ] + } + }, + "/system-settings/{systemSettingsId}/smtp-configuration": { + "put": { + "operationId": "updateSmtpConfiguration", + "parameters": [ + { + "in": "path", + "name": "systemSettingsId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SmtpConfigurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SMTPConfigurationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "system-settings-http-adapter" + ] + } + }, + "/transfer/access/disable": { + "post": { + "operationId": "disableAccessToEntitiesInTransfer", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DisableAccessToEntitiesInTransferRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferAccessDisabledDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/transfer/access/enable/{workspaceId}": { + "delete": { + "operationId": "enableAccessToEntitiesInTransfer", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/transfer/workspace-info/users-exist": { + "post": { + "operationId": "usersExist", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersExistRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/transfer/{workspaceId}/cleanup": { + "post": { + "operationId": "handleCleanupOnSourceRegion", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/transfer/{workspaceId}/completed": { + "post": { + "operationId": "handleTransferCompletedOnSourceRegion", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/transfer/{workspaceId}/failure": { + "post": { + "operationId": "handleTransferCompletedFailure", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferFailedRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/transfer/{workspaceId}/success": { + "post": { + "operationId": "handleTransferCompletedSuccess", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferFinishedRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "transfer-http-adapter" + ] + } + }, + "/users": { + "get": { + "operationId": "getAllUsers", + "parameters": [ + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "in": "query", + "name": "sortColumn", + "required": false, + "schema": { + "type": "string", + "default": "ID" + } + }, + { + "in": "query", + "name": "sortOrder", + "required": false, + "schema": { + "type": "string", + "default": "DESCENDING" + } + }, + { + "in": "query", + "name": "searchEmail", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "strictEmailSearch", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "searchName", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "strictNameSearch", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/ids": { + "post": { + "operationId": "getUserInfo", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMemberInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/memberships": { + "post": { + "operationId": "getUserMembershipsAndInvites", + "parameters": [ + { + "in": "header", + "name": "Sub-Domain-Name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LimboTokenRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserMembershipAndInviteDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User Memberships" + ] + } + }, + "/users/newsletter/{userId}": { + "get": { + "operationId": "checkForNewsletterSubscription", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/notifications": { + "post": { + "operationId": "addNotifications", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "required": [ + "request" + ], + "type": "object", + "properties": { + "image": { + "type": "string", + "format": "binary" + }, + "request": { + "$ref": "#/components/schemas/NewsRequest" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "notification-http-adapter" + ] + } + }, + "/users/notifications/news": { + "get": { + "operationId": "getNews", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NewsDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "notification-http-adapter" + ] + } + }, + "/users/notifications/news/{newsId}": { + "delete": { + "operationId": "deleteNews", + "parameters": [ + { + "in": "path", + "name": "newsId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "notification-http-adapter" + ] + }, + "put": { + "operationId": "updateNews", + "parameters": [ + { + "in": "path", + "name": "newsId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "required": [ + "request" + ], + "type": "object", + "properties": { + "image": { + "type": "string", + "format": "binary" + }, + "request": { + "$ref": "#/components/schemas/NewsRequest" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "notification-http-adapter" + ] + } + }, + "/users/search": { + "get": { + "operationId": "searchAllUsers", + "parameters": [ + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "in": "query", + "name": "sortColumn", + "required": false, + "schema": { + "type": "string", + "default": "ID" + } + }, + { + "in": "query", + "name": "sortOrder", + "required": false, + "schema": { + "type": "string", + "default": "DESCENDING" + } + }, + { + "in": "query", + "name": "email", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "strictEmailSearch", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "strictNameSearch", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "workspaceId", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "header", + "name": "Agent-Ticket-Link", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/user-count": { + "get": { + "operationId": "numberOfUsersRegistered", + "parameters": [ + { + "in": "query", + "name": "days", + "required": false, + "schema": { + "type": "string", + "default": "7" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}": { + "get": { + "operationId": "getUsersOnWorkspace", + "parameters": [ + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + }, + { + "in": "query", + "name": "sortOrder", + "required": false, + "schema": { + "type": "string", + "default": "DESCENDING" + } + }, + { + "in": "query", + "name": "sortColumn", + "required": false, + "schema": { + "type": "string", + "default": "id" + } + }, + { + "in": "query", + "name": "searchEmail", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/bulk": { + "patch": { + "operationId": "bulkEditUsers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkEditUsersRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/count": { + "get": { + "operationId": "getUsersOfWorkspace_5", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "email", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "projectId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "memberships", + "required": false, + "schema": { + "type": "string", + "default": "NONE" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserListAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/ids": { + "post": { + "operationId": "getInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMemberInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/members": { + "get": { + "operationId": "getMembersInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMemberInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/names": { + "post": { + "operationId": "getUserNames", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "ID" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "status", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EntityIdNameDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/policies-for-approval": { + "get": { + "operationId": "findPoliciesToBeApprovedByUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/projects/{projectId}": { + "get": { + "operationId": "getUsersAndUsersFromUserGroupsAssignedToProject", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME_LOWERCASE" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "memberships", + "required": false, + "schema": { + "type": "string", + "default": "NONE" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/projects/{projectId}/members-filter": { + "post": { + "operationId": "getUsersForProjectMembersFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-report-filter-http-adapter" + ] + } + }, + "/users/workspaces/{workspaceId}/report-filters/attendance-report/team": { + "post": { + "operationId": "getUsersForAttendanceReportFilter_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserAttendanceReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-report-filter-http-adapter" + ] + } + }, + "/users/workspaces/{workspaceId}/report-filters/ids": { + "get": { + "operationId": "getUsersOfWorkspace_4", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-report-filter-http-adapter" + ] + } + }, + "/users/workspaces/{workspaceId}/report-filters/team": { + "get": { + "deprecated": true, + "operationId": "getUsersForReportFilterOld", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchValue", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "force-filter", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "ignore-filter", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "excludeIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userStatuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "reportType", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-report-filter-http-adapter" + ] + }, + "post": { + "operationId": "getUsersForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-report-filter-http-adapter" + ] + } + }, + "/users/workspaces/{workspaceId}/user-groups/{userGroupId}": { + "get": { + "operationId": "getUsersOfUserGroup", + "parameters": [ + { + "in": "path", + "name": "userGroupId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "memberships", + "required": false, + "schema": { + "type": "string", + "default": "NONE" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/users/count": { + "get": { + "operationId": "getUsersOfWorkspace_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/workspaces/{workspaceId}/with-pending": { + "get": { + "operationId": "getUsersOfWorkspace_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "email", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "ID" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "searchByNameOnly", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "email-as-name", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userStatuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamMembersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}": { + "get": { + "operationId": "getUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/compactView": { + "put": { + "operationId": "updateTimeTrackingSettings_1", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateCompactViewSettings" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/dashboardMe": { + "put": { + "operationId": "updateDashboardSelection", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateDashboardSelection" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/defaultWorkspace/{workspaceId}": { + "post": { + "operationId": "setDefaultWorkspace", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/delete": { + "post": { + "operationId": "deleteUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDeleteRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/email": { + "put": { + "operationId": "changeEmail", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Sub-Domain-Name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeEmailRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/emails/change-verification": { + "get": { + "operationId": "hasPendingEmailChange", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PendingEmailChangeResponse" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/lang": { + "put": { + "operationId": "updateLang", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateLangRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/markAsRead": { + "post": { + "operationId": "markAsRead_1", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserNotificationMarkAsReadManyRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "user-notification-http-adapter" + ] + }, + "put": { + "operationId": "markAsRead", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserNotificationMarkAsReadRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "user-notification-http-adapter" + ] + } + }, + "/users/{userId}/name": { + "put": { + "operationId": "changeNameAdmin", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeUsernameRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/news": { + "get": { + "operationId": "getNewsForUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NewsDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-notification-http-adapter" + ] + }, + "put": { + "operationId": "readNews", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReadNewsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "user-notification-http-adapter" + ] + } + }, + "/users/{userId}/notifications": { + "get": { + "operationId": "getNotifications", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "excludeInvitations", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NotificationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "user-notification-http-adapter" + ] + } + }, + "/users/{userId}/picture": { + "put": { + "operationId": "updatePicture", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddProfilePictureRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/settings": { + "patch": { + "operationId": "updateNameAndProfilePicture", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateNameAndProfilePictureRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersNameAndProfilePictureDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + }, + "put": { + "operationId": "updateSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Sub-Domain-Name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/summaryReportSettings": { + "put": { + "operationId": "updateSummaryReportSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateSummaryReportSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/timeTrackingSettings": { + "put": { + "operationId": "updateTimeTrackingSettings", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeTrackingSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/timezone": { + "put": { + "operationId": "updateTimezone", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimezoneRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/verification-notifications": { + "get": { + "deprecated": true, + "operationId": "getVerificationCampaignNotifications", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NotificationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "notification-http-adapter" + ] + } + }, + "/users/{userId}/verification-notifications/read": { + "post": { + "deprecated": true, + "operationId": "markNotificationsAsRead", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserNotificationMarkAsReadManyRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "notification-http-adapter" + ] + } + }, + "/users/{userId}/workspaces/{workspaceId}/work-capacity": { + "get": { + "operationId": "getWorkCapacityForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserCapacityDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/users/{userId}/workspaces/{workspaceId}/working-days": { + "get": { + "operationId": "getUsersWorkingDays", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "User" + ] + } + }, + "/v1/file/image": { + "post": { + "operationId": "uploadImage", + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "required": [ + "file" + ], + "type": "object", + "properties": { + "file": { + "type": "string", + "description": "Image to be uploaded", + "format": "binary" + } + } + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadFileResponseV1" + } + } + }, + "description": "OK" + } + }, + "summary": "Add photo", + "tags": [ + "User", + "backend-app" + ] + } + }, + "/walkthrough/{userId}": { + "get": { + "operationId": "getAllUnfinishedWalkthroughTypes", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WalkthroughDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Walkthrough" + ] + }, + "post": { + "operationId": "finishWalkthrough", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WalkthroughCreationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Walkthrough" + ] + } + }, + "/workspace/{workspaceId}/owner": { + "get": { + "operationId": "getOwnerEmailByWorkspaceId", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "support-http-adapter" + ] + } + }, + "/workspaces": { + "get": { + "operationId": "getWorkspacesOfUser", + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkspaceOverviewDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "post": { + "operationId": "create", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWorkspaceRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/info": { + "get": { + "operationId": "getWorkspaceInfo", + "parameters": [ + { + "in": "query", + "name": "workspaceId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "email", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkspaceSubscriptionInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/legacy-plan-insert-notifications": { + "post": { + "operationId": "insertLegacyPlanNotifications", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LegacyPlanNotificationRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "description": "Created" + } + }, + "tags": [ + "legacy-plan-notification-adapter" + ] + } + }, + "/workspaces/users/{userId}/permissions": { + "post": { + "operationId": "getPermissionsToUserForWorkspaces", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetWorkspacesAuthorizationsForUserRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}": { + "delete": { + "operationId": "leaveWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "get": { + "operationId": "getWorkspaceById", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "put": { + "operationId": "updateWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Sub-Domain-Name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateWorkspaceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/ab-testing": { + "get": { + "operationId": "getABTesting", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ABTestingDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "ab-testing-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/active-members-count": { + "get": { + "operationId": "getActiveMembers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActiveMembersDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/addons": { + "delete": { + "operationId": "uninstall", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonUninstallRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + }, + "get": { + "operationId": "getInstalledAddons", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "search-term", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + }, + "post": { + "operationId": "install", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonInstallRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/id-name-pair": { + "get": { + "operationId": "getInstalledAddonsIdNamePair", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "search-term", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 10 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdNamePairDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/keys": { + "post": { + "operationId": "getInstalledAddonsByKeys", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonKeysRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdNamePairDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/{addonId}": { + "delete": { + "operationId": "uninstall_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + }, + "get": { + "operationId": "getAddonById", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/{addonId}/settings": { + "patch": { + "operationId": "updateSettings_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonUpdateSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/{addonId}/status": { + "patch": { + "operationId": "updateStatus_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonUpdateStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddonDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/{addonId}/token": { + "get": { + "operationId": "getAddonUserJWT", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/{addonId}/webhooks": { + "get": { + "operationId": "getAddonWebhooks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhooksDto" + } + } + }, + "description": "OK" + } + }, + "summary": "Get all webhooks for addon on workspace", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/addons/{addonKey}/remove-uninstalled": { + "post": { + "operationId": "removeUninstalledAddon", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "addonKey", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "addon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/alerts": { + "get": { + "operationId": "listOfWorkspace_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AlertDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "alert-http-adapter" + ] + }, + "post": { + "operationId": "create_20", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAlertRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlertDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "alert-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/alerts/{alertId}": { + "delete": { + "operationId": "delete_18", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "alertId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlertDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "alert-http-adapter" + ] + }, + "put": { + "operationId": "update_11", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "alertId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateAlertRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AlertDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "alert-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/allowed-updates": { + "get": { + "operationId": "getAllowedUpdates", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AllowedUpdates" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests": { + "patch": { + "operationId": "approveRequests", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApproveRequestsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/count": { + "post": { + "operationId": "count", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCountRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/has-pending": { + "get": { + "operationId": "hasPending", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/remind/approve": { + "patch": { + "operationId": "remindManagersToApprove", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemindToApproveRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/remind/submit": { + "patch": { + "operationId": "remindUsersToSubmit", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemindToSubmitAndTrackRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/stats": { + "post": { + "operationId": "getApprovalGroups", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetApprovalsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/stats/unsubmitted": { + "post": { + "operationId": "getUnsubmittedSummaries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUnsubmittedEntriesDurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UnsubmittedSummaryGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/withdraw-on-workspace": { + "patch": { + "operationId": "withdrawAllOfWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/workspace-pending": { + "get": { + "operationId": "getRequestsByWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/{approvalRequestId}": { + "get": { + "operationId": "getApprovalRequest", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "approvalRequestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + }, + "patch": { + "operationId": "updateStatus_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "approvalRequestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateApprovalRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/{approvalRequestId}/dashboard": { + "get": { + "operationId": "getApprovalDashboard", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "approvalRequestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalDashboardDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/approval-requests/{approvalRequestId}/details": { + "get": { + "operationId": "getApprovalDetails", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "approvalRequestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalDetailsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/attributes/fetch": { + "post": { + "operationId": "fetchCustomAttributes", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FetchCustomAttributesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomAttributeDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "custom-attribute-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/check-transfer-possibility": { + "get": { + "operationId": "checkWorkspaceTransferPossibility", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "region", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferPossibleDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/clients": { + "delete": { + "operationId": "deleteMany_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + }, + "get": { + "operationId": "getClients_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + }, + "patch": { + "operationId": "updateMany_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateManyClientsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientWithCurrencyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + }, + "post": { + "operationId": "create_19", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateClientRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/archive-permissions": { + "post": { + "operationId": "getArchivePermissions", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ArchivePermissionDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/have-related-tasks": { + "post": { + "operationId": "haveRelatedTasks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/ids": { + "post": { + "operationId": "getClientsOfIds", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchValue", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/invoices-filter": { + "get": { + "operationId": "getClientsForInvoiceFilter_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/projects-filter": { + "get": { + "operationId": "getClients_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/report-filters": { + "get": { + "operationId": "getClientsForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/report-filters/ids": { + "get": { + "operationId": "getClientIdsForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/time-off-policies-holidays": { + "post": { + "operationId": "getTimeOffPoliciesAndHolidaysForClient", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffPolicyHolidayForClients" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/{clientId}": { + "delete": { + "operationId": "delete_17", + "parameters": [ + { + "in": "path", + "name": "clientId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + }, + "get": { + "operationId": "getClient", + "parameters": [ + { + "in": "path", + "name": "clientId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/{clientId}/can-archive-projects": { + "get": { + "operationId": "getProjectsArchivePermissions", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "clientId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/clients/{id}": { + "put": { + "operationId": "update_10", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "archive-projects", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "mark-tasks-as-done", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateClientRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ClientWithCurrencyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Client" + ] + } + }, + "/workspaces/{workspaceId}/cost-rate": { + "post": { + "operationId": "setCostRate_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CostRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/coupons": { + "get": { + "operationId": "getCoupon", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionCouponDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "subscription-coupon-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/currencies": { + "get": { + "operationId": "getWorkspaceCurrencies", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "currency-http-adapter" + ] + }, + "post": { + "operationId": "createCurrency", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateCurrencyRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CurrencyDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "currency-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/currencies/{currencyId}": { + "delete": { + "operationId": "removeCurrency", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "currencyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "currency-http-adapter" + ] + }, + "get": { + "operationId": "getCurrency", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "currencyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "currency-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/currencies/{currencyId}/code": { + "patch": { + "operationId": "updateCurrencyCode", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "currencyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateCurrencyCodeRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CurrencyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "currency-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/currency": { + "patch": { + "operationId": "setCurrency", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateDefaultWorkspaceCurrencyRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/custom-field": { + "get": { + "operationId": "ofWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "entityType", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Custom fields" + ] + }, + "post": { + "operationId": "create_18", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Custom fields" + ] + } + }, + "/workspaces/{workspaceId}/custom-field/required-availability": { + "get": { + "operationId": "ofWorkspaceWithRequiredAvailability", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "entityType", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldRequiredAvailabilityDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Custom fields" + ] + } + }, + "/workspaces/{workspaceId}/custom-field/{customFieldId}": { + "delete": { + "operationId": "delete_16", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "customFieldId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "Custom fields" + ] + }, + "put": { + "operationId": "edit", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "customFieldId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Custom fields" + ] + } + }, + "/workspaces/{workspaceId}/custom-field/{customFieldId}/default/{projectId}": { + "delete": { + "operationId": "removeDefaultValueOfProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "customFieldId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Custom fields" + ] + }, + "put": { + "operationId": "editDefaultValues", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "customFieldId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldProjectDefaultValuesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Custom fields" + ] + } + }, + "/workspaces/{workspaceId}/custom-field/{projectId}": { + "get": { + "operationId": "getOfProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "entityType", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Custom fields" + ] + } + }, + "/workspaces/{workspaceId}/custom-labels": { + "patch": { + "operationId": "updateCustomLabels", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomLabelsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/email/{userId}/add": { + "put": { + "operationId": "addEmail", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sendEmail", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddEmailRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/expenses": { + "delete": { + "operationId": "deleteManyExpenses", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpensesIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + }, + "get": { + "operationId": "getExpenses", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpensesAndTotalsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + }, + "post": { + "operationId": "createExpense", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/CreateExpenseRequest" + } + } + } + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/categories": { + "get": { + "operationId": "getCategories", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoriesWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + }, + "post": { + "operationId": "create_17", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoryRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/categories/filter-ids": { + "get": { + "operationId": "getCategoriesByIds", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "ids", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/categories/{categoryId}": { + "delete": { + "operationId": "deleteCategory", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "categoryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "Expense" + ] + }, + "put": { + "operationId": "updateCategory", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "categoryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoryRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/categories/{categoryId}/archived": { + "patch": { + "operationId": "updateStatus_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "categoryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoryArchiveRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/filter": { + "get": { + "operationId": "getExpensesInDateRange", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseHydratedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/invoiced": { + "patch": { + "operationId": "updateInvoicedStatus_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateInvoicedStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/restore": { + "post": { + "operationId": "restoreManyExpenses", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpensesIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/{expenseId}": { + "delete": { + "operationId": "deleteExpense", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "expenseId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseDeletedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + }, + "get": { + "operationId": "getExpense", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "expenseId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + }, + "put": { + "operationId": "updateExpense", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "expenseId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/UpdateExpenseRequest" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExpenseWithApprovalRequestUpdatedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/expenses/{expenseId}/files/{fileId}": { + "get": { + "operationId": "downloadFile", + "parameters": [ + { + "in": "path", + "name": "fileId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "expenseId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string", + "format": "byte" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/file-import": { + "post": { + "operationId": "importFileData", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FileImportRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "file-import-adapter" + ] + } + }, + "/workspaces/{workspaceId}/file-import/{fileImportId}/check-users": { + "get": { + "operationId": "checkUsersForImport", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "fileImportId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckUsersResponse" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "file-import-adapter" + ] + } + }, + "/workspaces/{workspaceId}/holidays": { + "get": { + "operationId": "getHolidays", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HolidayDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Holiday" + ] + }, + "post": { + "operationId": "create_16", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HolidayRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HolidayDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Holiday" + ] + } + }, + "/workspaces/{workspaceId}/holidays/{holidayId}": { + "delete": { + "operationId": "delete_15", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "holidayId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HolidayDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Holiday" + ] + }, + "put": { + "operationId": "update_9", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "holidayId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HolidayRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HolidayDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Holiday" + ] + } + }, + "/workspaces/{workspaceId}/hourly-rate": { + "post": { + "operationId": "setHourlyRate_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HourlyRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/invited-emails-info": { + "post": { + "operationId": "getInvitedEmailsInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserEmailsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvitedEmailsInfo" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/invoice-email-templates": { + "get": { + "operationId": "getInvoiceEmailTemplates", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "invoiceEmailTemplateType", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InvoiceEmailTemplateDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "invoice-email-template-http-adapter" + ] + }, + "put": { + "operationId": "upsertInvoiceEmailTemplate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInvoiceEmailTemplateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceEmailTemplateDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "invoice-email-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoice/{invoiceId}/email-type/{invoiceEmailTemplateType}/email-data": { + "get": { + "operationId": "getInvoiceEmailData", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceEmailTemplateType", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceEmailDataDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "invoice-email-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoice/{invoiceId}/email-type/{invoiceEmailTemplateType}/send-email": { + "post": { + "operationId": "sendInvoiceEmail", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceEmailTemplateType", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SendInvoiceEmailRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "invoice-email-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoices": { + "post": { + "operationId": "createInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInvoiceRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInvoiceDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/companies": { + "get": { + "operationId": "getAllCompanies", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CompanyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "company-http-adapter" + ] + }, + "post": { + "operationId": "createCompany", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompanyRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompanyDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "company-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoices/companies/bulk": { + "put": { + "operationId": "updateCompaniesInWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateCompaniesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "company-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoices/companies/count": { + "get": { + "operationId": "countAllCompanies", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "company-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoices/companies/invoices-filter": { + "get": { + "operationId": "getClientsForInvoiceFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CompanyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "company-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoices/companies/{companyId}": { + "delete": { + "operationId": "deleteCompany", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "companyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "company-http-adapter" + ] + }, + "get": { + "operationId": "getCompanyById", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "companyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompanyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "company-http-adapter" + ] + }, + "put": { + "operationId": "updateCompany", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "companyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompanyRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CompanyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "company-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/invoices/info": { + "post": { + "operationId": "getInvoicesInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceInfoResponseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/itemType": { + "get": { + "operationId": "getInvoiceItemTypes", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InvoiceItemTypeDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "post": { + "operationId": "createInvoiceItemType", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInvoiceItemTypeRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInvoiceItemTypeDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/itemType/{id}": { + "delete": { + "operationId": "deleteInvoiceItemType", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "put": { + "operationId": "updateInvoiceItemType", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateInvoiceItemTypeRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceItemTypeDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/next-number": { + "get": { + "operationId": "getNextInvoiceNumber", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NextInvoiceNumberDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/permissions": { + "get": { + "operationId": "getInvoicePermissions", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoicePermissionsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "put": { + "operationId": "updateInvoicePermissions", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoicePermissionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/permissions/current": { + "get": { + "operationId": "canUserManageInvoices", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/settings": { + "get": { + "operationId": "getInvoiceSettings", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceSettingsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "put": { + "operationId": "updateInvoiceSettings", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateInvoiceSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}": { + "delete": { + "operationId": "deleteInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "get": { + "operationId": "getInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "put": { + "operationId": "updateInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateInvoiceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/duplicate": { + "post": { + "operationId": "duplicateInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/export": { + "get": { + "operationId": "exportInvoice", + "parameters": [ + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userLocale", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string", + "format": "byte" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/import": { + "put": { + "operationId": "importTimeAndExpenses", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ImportTimeEntriesAndExpensesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/invoiceItem": { + "post": { + "operationId": "addInvoiceItem", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceItemDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/invoiceItem/order": { + "patch": { + "operationId": "reorderInvoiceItem_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReorderInvoiceItemRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InvoiceItemDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/invoiceItem/{invoiceItemOrder}": { + "put": { + "operationId": "editInvoiceItem", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceItemOrder", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateInvoiceItemRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/invoiceItems": { + "delete": { + "operationId": "deleteInvoiceItems", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "invoiceItemsOrder", + "required": true, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/payments": { + "get": { + "operationId": "getPaymentsForInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InvoicePaymentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + }, + "post": { + "operationId": "createInvoicePayment", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateInvoicePaymentRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/payments/{paymentId}": { + "delete": { + "operationId": "deletePaymentById", + "parameters": [ + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "paymentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InvoiceOverviewDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/invoices/{invoiceId}/status": { + "patch": { + "operationId": "changeInvoiceStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "invoiceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeInvoiceStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Invoice" + ] + } + }, + "/workspaces/{workspaceId}/is-admin": { + "get": { + "operationId": "authorizationCheck", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/kiosk/pin/available": { + "get": { + "operationId": "isAvailable", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pinContext", + "required": true, + "schema": { + "type": "string", + "enum": [ + "ADMIN", + "UNIVERSAL", + "USER", + "INITIAL" + ] + } + }, + { + "in": "query", + "name": "pinCode", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pin-code-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosk/pin/available/{userId}": { + "get": { + "operationId": "isAvailable_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pinCode", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pin-code-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosk/pin/generate": { + "get": { + "operationId": "generatePinCode", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "context", + "required": true, + "schema": { + "type": "string", + "enum": [ + "ADMIN", + "UNIVERSAL", + "USER", + "INITIAL" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PinCodeDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pin-code-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosk/pin/generate/{userId}": { + "get": { + "operationId": "generatePinCodeForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PinCodeDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pin-code-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosk/pin/{userId}": { + "get": { + "operationId": "getUserPinCode", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KioskUserPinCodeDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pin-code-http-adapter" + ] + }, + "put": { + "operationId": "updatePinCode", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdatePinCodeRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "pin-code-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks": { + "get": { + "operationId": "getKiosksOfWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KioskHydratedWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + }, + "post": { + "operationId": "create_15", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateKioskRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KioskDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/break-defaults": { + "patch": { + "operationId": "updateBreakDefaults", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateKioskDefaultsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/count": { + "get": { + "operationId": "getTotalCountOfKiosksOnWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/defaults": { + "patch": { + "operationId": "updateDefaults", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkUpdateKioskDefaultsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/has-active": { + "get": { + "operationId": "hasActiveKiosks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/project": { + "post": { + "operationId": "getWithProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EntityIdNameDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/project/{projectId}/task": { + "post": { + "operationId": "getWithTask", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EntityIdNameDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/report-filter": { + "get": { + "operationId": "getForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EntityIdNameDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/without-defaults": { + "get": { + "operationId": "getWithoutDefaults", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isBreak", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/{kioskId}": { + "delete": { + "operationId": "deleteKiosk", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "kioskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + }, + "get": { + "operationId": "getKioskById", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "kioskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KioskHydratedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + }, + "put": { + "operationId": "update_8", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "kioskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateKioskRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KioskDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/{kioskId}/assignees/export": { + "get": { + "operationId": "exportAssignees", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "kioskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string", + "format": "byte" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/{kioskId}/has-entry-in-progress": { + "get": { + "operationId": "hasEntryInProgress", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "kioskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-entries-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/kiosks/{kioskId}/status": { + "put": { + "operationId": "updateStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "kioskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateKioskStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/KioskDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "kiosk-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/legacy-plan-acknowledge": { + "patch": { + "operationId": "acknowledgeLegacyPlanNotifications", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "legacy-plan-notification-adapter" + ] + } + }, + "/workspaces/{workspaceId}/legacy-plan-upgrade-data": { + "get": { + "operationId": "getLegacyPlanUpgradeData", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LegacyPlanUpgradeDataDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "legacy-plan-notification-adapter" + ] + } + }, + "/workspaces/{workspaceId}/limited-users": { + "post": { + "operationId": "addLimitedUsers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddLimitedUserToWorkspaceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/limited-users/count": { + "get": { + "operationId": "getLimitedUsersCount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int32" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/member-profile/{userId}": { + "get": { + "operationId": "getMemberProfile", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "patch": { + "operationId": "updateMemberProfile", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/member-profile/{userId}/full": { + "patch": { + "operationId": "updateMemberProfileWithAdditionalData", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileFullRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/member-profile/{userId}/settings": { + "patch": { + "operationId": "updateMemberSettings", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/member-profile/{userId}/week-start": { + "get": { + "operationId": "getWeekStart", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/member-profile/{userId}/working-days-capacity": { + "patch": { + "operationId": "updateMemberWorkingDaysAndCapacity", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberSettingsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MemberProfileDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/members-count": { + "get": { + "operationId": "getMembersCount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MembersCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/not-invited-users": { + "post": { + "operationId": "findNotInvitedEmailsIn", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserEmailsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/organization": { + "get": { + "operationId": "getOrganization", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + }, + "post": { + "operationId": "create_14", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrganizationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/name": { + "get": { + "operationId": "getOrganizationName", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationNameDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/subdomain-name": { + "get": { + "operationId": "checkAvailabilityOfDomainName", + "parameters": [ + { + "in": "query", + "name": "domain-name", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{organizationId}": { + "delete": { + "operationId": "deleteOrganization", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + }, + "patch": { + "operationId": "updateOrganization", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrganizationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{organizationId}/login-settings": { + "get": { + "operationId": "getLoginSettings", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LoginSettingsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{organizationId}/o-auth2-configuration": { + "delete": { + "operationId": "deleteOAuth2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "Organization" + ] + }, + "get": { + "operationId": "getOrganizationOAuth2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuth2ConfigurationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + }, + "patch": { + "operationId": "updateOAuth2Configuration_1", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthConfigurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuth2ConfigurationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{organizationId}/oauth-configuration-test": { + "post": { + "operationId": "testOAuth2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthConfigurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{organizationId}/saml2-configuration": { + "delete": { + "operationId": "deleteSAML2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "Organization" + ] + }, + "get": { + "operationId": "getOrganizationSAML2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SAML2ConfigurationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + }, + "patch": { + "operationId": "updateSAML2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SAML2ConfigurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SAML2ConfigurationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{organizationId}/saml2-configuration-test": { + "post": { + "operationId": "testSAML2Configuration", + "parameters": [ + { + "in": "path", + "name": "organizationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SAML2ConfigurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/organization/{userId}/subdomain-names": { + "get": { + "operationId": "getAllOrganizationsOfUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "membership-status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Organization" + ] + } + }, + "/workspaces/{workspaceId}/owner": { + "get": { + "operationId": "getWorkspaceOwner", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OwnerIdResponse" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "put": { + "operationId": "transferOwnership", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransferOwnerRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/owner/timeZone": { + "get": { + "operationId": "getWorkspaceOwnerTimeZone", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OwnerTimeZoneResponse" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/payments/cancel-subscription": { + "post": { + "operationId": "cancelSubscription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CancellationReasonDto" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/confirm-payment": { + "patch": { + "operationId": "confirmPayment", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/customer-information": { + "get": { + "operationId": "getCustomerInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "countryCode", + "required": false, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/customer/create": { + "post": { + "operationId": "createCustomer", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/customer/update": { + "post": { + "operationId": "updateCustomer", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "customerBillingRequest": { + "$ref": "#/components/schemas/CustomerBillingRequest" + }, + "customerRequest": { + "$ref": "#/components/schemas/CustomerRequest" + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/edit-invoice": { + "post": { + "operationId": "editInvoiceInformation", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerBillingRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerBillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/edit-payment": { + "post": { + "operationId": "editPaymentInformation", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerPaymentInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/extend-trial": { + "patch": { + "operationId": "extendTrial", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "days", + "required": false, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/feature-subscriptions": { + "get": { + "operationId": "getFeatureSubscriptions", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FeatureSubscriptionsDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/initial-price": { + "post": { + "operationId": "initialUpgrade", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InitialPriceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpgradePriceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/invoice-information": { + "get": { + "operationId": "getInvoiceInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerBillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/invoices": { + "get": { + "operationId": "getInvoices", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [ + "PAID", + "OPEN" + ] + } + }, + { + "in": "query", + "name": "startingAfter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 100 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StripeInvoiceDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/invoices-count": { + "get": { + "operationId": "getInvoicesCount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [ + "PAID", + "OPEN" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/last-open-invoice": { + "get": { + "operationId": "getLastOpenInvoice", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripeInvoicePayDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/list-invoices": { + "get": { + "operationId": "getInvoicesList", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [ + "PAID", + "OPEN" + ] + } + }, + { + "in": "query", + "name": "nextPage", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 100 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StripeInvoicesDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/payment-date": { + "get": { + "operationId": "getPaymentDate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/payment-information": { + "get": { + "operationId": "getPaymentInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerPaymentInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/payment-method/setup-intent": { + "post": { + "operationId": "createSetupIntentForPaymentMethod", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "customerBillingRequest": { + "$ref": "#/components/schemas/CustomerBillingRequest" + }, + "invisibleReCaptchaRequest": { + "$ref": "#/components/schemas/InvisibleReCaptchaRequest" + }, + "paymentMethodAddressRequest": { + "$ref": "#/components/schemas/PaymentMethodAddressRequest" + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetupIntentDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/preview-price": { + "get": { + "operationId": "previewUpgrade", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "quantity", + "required": false, + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "in": "query", + "name": "limitedQuantity", + "required": false, + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpgradePriceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/reactivate-subscription": { + "get": { + "operationId": "reactivateSubscription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/scheduled-invoice-information": { + "get": { + "operationId": "getScheduledInvoiceInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NextCustomerInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/seats": { + "put": { + "operationId": "updateUserSeats", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateQuantityRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/setup-intent": { + "post": { + "operationId": "createSetupIntentForInitialSubscription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "customerBillingRequest": { + "$ref": "#/components/schemas/CustomerBillingRequest" + }, + "customerRequest": { + "$ref": "#/components/schemas/CustomerRequest" + }, + "invisibleReCaptchaRequest": { + "$ref": "#/components/schemas/InvisibleReCaptchaRequest" + }, + "paymentMethodAddressRequest": { + "$ref": "#/components/schemas/PaymentMethodAddressRequest" + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetupIntentDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/subscription/create": { + "post": { + "operationId": "createSubscription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "customerRequest": { + "$ref": "#/components/schemas/CustomerRequest" + }, + "paymentRequest": { + "$ref": "#/components/schemas/PaymentRequest" + }, + "quantityRequest": { + "$ref": "#/components/schemas/CreateSubscriptionQuantityRequest" + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/subscription/update": { + "post": { + "operationId": "updateSubscription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PaymentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillingInformationDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/subscription/upgrade-pre-check": { + "get": { + "operationId": "upgradePreCheck", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpgradePreCheckDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/terminate-subscription": { + "put": { + "operationId": "deleteSubscription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerminateSubscriptionRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/terminate-trial": { + "put": { + "operationId": "terminateTrial", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/trial": { + "post": { + "operationId": "startTrial", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/payments/was-regional-ever-allowed": { + "get": { + "operationId": "wasRegionalEverAllowed", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "payment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/policies/{policyId}/users/{userId}": { + "get": { + "operationId": "findForUserAndPolicy", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BalanceHistoryDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "balance-history-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/project-picker/clients": { + "get": { + "operationId": "getClients", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "string", + "default": "1" + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "string", + "default": "50" + } + }, + { + "in": "query", + "name": "excludedProjects", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "excludedTasks", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pickerOptions", + "required": true, + "schema": { + "$ref": "#/components/schemas/PickerOptions" + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectsByClientDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "project-picker-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/project-picker/projects": { + "get": { + "operationId": "getProjects_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "clientId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "excludedTasks", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "excludedProjects", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "favorites", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "project-picker-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/project-picker/projects/favorites": { + "get": { + "operationId": "getProjectFavorites", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "excludedTasks", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "project-picker-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/project-picker/projects/{projectId}/tasks": { + "get": { + "operationId": "getTasks_2_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "excludedTasks", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "taskFilterEnabled", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "project-picker-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/project-status": { + "put": { + "operationId": "recalculateProjectStatus_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/project-task": { + "post": { + "operationId": "getProjectAndTask", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectTaskRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskWithProjectDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "project-picker-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/projects": { + "delete": { + "operationId": "deleteMany_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getProjects_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "strict-name-search", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "billable", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "clients", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "contains-client", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "client-status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + }, + { + "in": "query", + "name": "users", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "contains-user", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "user-status", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "is-template", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageProjectDto" + } + } + }, + "description": "OK" + } + }, + "summary": "Get all projects on workspace with count", + "tags": [ + "Project" + ] + }, + "patch": { + "operationId": "updateMany_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tasks-status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PatchProjectRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkProjectEditDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "create_12", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateProjectRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/count": { + "get": { + "operationId": "getFilteredProjectsCount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "billable", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "clients", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "contains-client", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "client-status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + }, + { + "in": "query", + "name": "users", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "contains-user", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "user-status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int32" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/filter": { + "post": { + "operationId": "getFilteredProjects", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageProjectDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/from-template": { + "post": { + "operationId": "createFromTemplate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateFromTemplateRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/ids": { + "post": { + "operationId": "getProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/last-used": { + "get": { + "deprecated": true, + "operationId": "getLastUsedProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/lastUsed": { + "get": { + "operationId": "lastUsedProject_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string", + "default": "PROJECT" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProjectTaskTupleFullDto" + }, + { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + ] + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/list": { + "get": { + "operationId": "getProjectsList", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "strict-name-search", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "billable", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "clients", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "contains-client", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "client-status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + }, + { + "in": "query", + "name": "users", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "contains-user", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "user-status", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "is-template", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/manager": { + "get": { + "operationId": "hasManagerRole_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/report-filters": { + "post": { + "operationId": "getProjectsForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/report-filters/ids": { + "post": { + "operationId": "getProjectIdsForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/taskIds": { + "post": { + "operationId": "getTasksByIds", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/tasks": { + "post": { + "operationId": "getAllTasks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/tasks-pagination": { + "post": { + "operationId": "getTasks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "string", + "default": "1" + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "type": "string", + "default": "100" + } + }, + { + "in": "query", + "name": "sortOrder", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "sortColumn", + "required": false, + "schema": { + "type": "string", + "default": "name" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/tasks/report-filters": { + "post": { + "operationId": "getTasksForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TasksGroupedByProjectIdDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/tasks/report-filters/ids": { + "post": { + "operationId": "getTaskIdsForReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/time-off-policies-holidays": { + "post": { + "operationId": "getTimeOffPoliciesAndHolidaysWithProjects", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffPolicyHolidayForProjects" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/users/{userId}/last-used": { + "get": { + "deprecated": true, + "operationId": "getLastUsedOfUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/users/{userId}/permissions": { + "post": { + "operationId": "getPermissionsToUserForProjects", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetProjectsAuthorizationsForUserRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}": { + "delete": { + "operationId": "delete_13", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getProject_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "patch": { + "operationId": "update_14", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tasks-status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectPatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "put": { + "operationId": "update_6", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tasks-status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateProjectRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/cost-rate": { + "put": { + "operationId": "setCostRate_1", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CostRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/estimate": { + "patch": { + "operationId": "updateEstimate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectEstimateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/hourly-rate": { + "put": { + "operationId": "setHourlyRate_1", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HourlyRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/manager": { + "get": { + "operationId": "hasManagerRole", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/permissions": { + "get": { + "operationId": "getAuthsForProject", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/project-status": { + "put": { + "operationId": "recalculateProjectStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks": { + "get": { + "deprecated": true, + "operationId": "getTasks_1", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + }, + "post": { + "operationId": "create_13", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "contains-assignee", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/assigned": { + "get": { + "operationId": "getTasksAssignedToUser", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/time-off-policies-holidays": { + "post": { + "operationId": "getTimeOffPoliciesAndHolidaysWithTasks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffPolicyHolidayForTasks" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/{id}": { + "put": { + "operationId": "update_7", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "contains-assignee", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "membership-status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTaskRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/{id}/cost-rate": { + "put": { + "operationId": "setCostRate", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CostRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/{id}/hourly-rate": { + "put": { + "operationId": "setHourlyRate", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HourlyRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}": { + "delete": { + "operationId": "delete_14", + "parameters": [ + { + "in": "path", + "name": "taskId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tasks/{taskId}/assigned": { + "get": { + "operationId": "getTaskAssignedToUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "taskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Task" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/team": { + "post": { + "operationId": "addUsers_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddUsersToProjectRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/tracked": { + "get": { + "operationId": "getStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectStatus" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/userGroups/{usergroupId}/membership": { + "delete": { + "operationId": "removeUserGroupMembership", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "usergroupId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/users": { + "get": { + "operationId": "getUsers_4", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "memberships", + "required": false, + "schema": { + "type": "string", + "default": "NONE" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/users/{userId}/cost-rate": { + "post": { + "operationId": "addUsersCostRate_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CostRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/users/{userId}/hourly-rate": { + "post": { + "operationId": "addUsersHourlyRate_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HourlyRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/users/{userId}/membership": { + "delete": { + "operationId": "removeUserMembership", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/projects/{projectId}/users/{userId}/permissions": { + "delete": { + "operationId": "removePermissionsToUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddAndRemoveProjectPermissionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "get": { + "operationId": "getPermissionsToUser_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + }, + "post": { + "operationId": "addPermissionsToUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddAndRemoveProjectPermissionsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Project" + ] + } + }, + "/workspaces/{workspaceId}/pumble-integration": { + "delete": { + "operationId": "disconnect", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "pumble-integration-http-adapter" + ] + }, + "post": { + "operationId": "connect", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PumbleIntegrationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PumbleInitialConnectionDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pumble-integration-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/pumble-integration/connected": { + "get": { + "operationId": "connect_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PumbleConnectedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "pumble-integration-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/quickbooks-sync/clients": { + "post": { + "operationId": "syncClients", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncClientsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ClientDto" + } + } + } + }, + "description": "Created" + } + }, + "tags": [ + "quickbooks-sync-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/quickbooks-sync/projects": { + "post": { + "operationId": "syncProjects", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SyncProjectsRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + } + }, + "description": "Created" + } + }, + "tags": [ + "quickbooks-sync-http-adapter" + ] + }, + "put": { + "operationId": "updateProjects", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateProjectsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "quickbooks-sync-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/regions": { + "get": { + "operationId": "getAllRegionsForUserAccount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RegionDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/reminders": { + "get": { + "operationId": "listOfWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReminderDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "reminder-http-adapter" + ] + }, + "post": { + "operationId": "create_11", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateReminderRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReminderDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "reminder-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/reminders/targets": { + "get": { + "operationId": "ofWorkspaceIdAndUserId", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReminderDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "reminder-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/reminders/{reminderId}": { + "delete": { + "operationId": "delete_12", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "reminderId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "reminder-http-adapter" + ] + }, + "put": { + "operationId": "update_5", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "reminderId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateReminderRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReminderDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "reminder-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/reports/dashboard-info": { + "post": { + "operationId": "getDashboardInfo", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMainReportRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MainReportDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "dashboard-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/reports/mostTracked": { + "get": { + "operationId": "getMyMostTracked", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "count", + "required": false, + "schema": { + "type": "string", + "default": "TOP_10" + } + }, + { + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "end", + "required": false, + "schema": { + "type": "string", + "default": "" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MostTrackedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "dashboard-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/reports/team-activities": { + "get": { + "operationId": "getTeamActivities", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "end", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "type": "string", + "default": "BILLABILITY" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "DESCENDING" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "LATEST_ACTIVITY" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamActivityDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "dashboard-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/amount-preview": { + "get": { + "operationId": "getAmountPreview", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "taskId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "totalHours", + "required": true, + "schema": { + "type": "number", + "format": "double" + } + }, + { + "in": "query", + "name": "billable", + "required": true, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BillableAndCostAmountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/draft-filter/count": { + "post": { + "operationId": "getDraftAssignmentsCount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetDraftCountRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DraftAssignmentsCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/projects/totals": { + "get": { + "deprecated": true, + "operationId": "getProjectTotals", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SchedulingProjectsTotalsWithoutBillableDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + }, + "post": { + "operationId": "getFilteredProjectTotals", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectTotalsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SchedulingProjectsTotalsWithoutBillableDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/projects/totals/{projectId}": { + "get": { + "operationId": "getProjectTotalsForSingleProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchedulingProjectsTotalsWithoutBillableDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/projects/{projectId}/users/{userId}": { + "get": { + "operationId": "getProjectsForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchedulingProjectsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/publish": { + "put": { + "operationId": "publishAssignments", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublishAssignmentsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/recurring": { + "post": { + "operationId": "createRecurring", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignmentCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/recurring/{assignmentId}": { + "delete": { + "operationId": "delete_11", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "seriesUpdateOption", + "required": false, + "schema": { + "type": "string", + "default": "THIS_ONE" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + }, + "patch": { + "operationId": "editRecurring", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignmentUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/recurring/{assignmentId}/period": { + "patch": { + "operationId": "editPeriodForRecurring", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignmentPeriodRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/series/{assignmentId}": { + "put": { + "operationId": "editRecurringPeriod", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RecurringAssignmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/user-filter/totals": { + "post": { + "operationId": "getUserTotals", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserTotalsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SchedulingUsersTotalsWithoutBillableDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/user/{userId}": { + "get": { + "deprecated": true, + "operationId": "getAssignmentsForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "published", + "required": true, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentHydratedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + }, + "post": { + "operationId": "getFilteredAssignmentsForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserAssignmentsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentHydratedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/users/{projectId}": { + "get": { + "operationId": "getUsers_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "exclude", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "statusFilter", + "required": false, + "schema": { + "type": "string", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ], + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchedulingUsersBaseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/users/{userId}/projects": { + "get": { + "operationId": "getProjects_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "exclude", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "statusFilter", + "required": false, + "schema": { + "type": "string", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ], + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchedulingProjectsBaseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/users/{userId}/remind-to-publish": { + "post": { + "operationId": "remindToPublish", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "startDate", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "endDate", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/users/{userId}/totals": { + "get": { + "operationId": "getUserTotalsForSingleUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SchedulingUsersBaseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/{assignmentId}": { + "get": { + "operationId": "get_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/{assignmentId}/copy": { + "post": { + "operationId": "copyAssignment", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CopyAssignmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/{assignmentId}/split": { + "post": { + "operationId": "splitAssignment", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "assignmentId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SplitAssignmentRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/assignments/{projectId}/shift": { + "patch": { + "operationId": "shiftSchedule", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ShiftScheduleRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Scheduling" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/excluding/projects/{projectId}": { + "delete": { + "operationId": "hideProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "hidden-scheduling-entities-http-adapter" + ] + }, + "put": { + "operationId": "showProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "hidden-scheduling-entities-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/excluding/users/{userId}": { + "delete": { + "operationId": "hideUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "hidden-scheduling-entities-http-adapter" + ] + }, + "put": { + "operationId": "showUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "hidden-scheduling-entities-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/milestones": { + "post": { + "operationId": "create_10", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "milestone-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/milestones/{milestoneId}": { + "delete": { + "operationId": "delete_10", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "milestoneId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "milestone-http-adapter" + ] + }, + "get": { + "operationId": "get_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "milestoneId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "milestone-http-adapter" + ] + }, + "patch": { + "operationId": "edit_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "milestoneId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "milestone-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/milestones/{milestoneId}/date": { + "patch": { + "operationId": "editDate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "milestoneId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneDateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/MilestoneDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "milestone-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/projects": { + "get": { + "operationId": "getProjects", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "includeHidden", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "unassigned-entities-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/users": { + "get": { + "operationId": "getUsers_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "taskId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "includeHidden", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "unassigned-entities-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/scheduling/users/project/{projectId}": { + "get": { + "operationId": "getUsersAssignedToProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "taskId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "includeHidden", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "statuses", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "memberships", + "required": false, + "schema": { + "type": "string", + "default": "NONE" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "unassigned-entities-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/sidebar/users/{userId}": { + "get": { + "operationId": "getSidebarConfig", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SidebarResponseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "sidebar-adapter" + ] + }, + "put": { + "operationId": "updateSidebar", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateSidebarRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SidebarResponseDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "sidebar-adapter" + ] + } + }, + "/workspaces/{workspaceId}/specific-member/users/status": { + "post": { + "operationId": "filterUsersByStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMemberRequest" + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PtoTeamMemberDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "team-adapter" + ] + } + }, + "/workspaces/{workspaceId}/stopwatch": { + "delete": { + "operationId": "delete_9", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DiscardStopwatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "stopwatch-http-adapter" + ] + }, + "patch": { + "operationId": "stop", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StopStopwatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "stopwatch-http-adapter" + ] + }, + "post": { + "operationId": "start", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "timeEntryId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "assignmentId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "App-Name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Request-Id", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Signature", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartStopwatchRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "stopwatch-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/tags": { + "delete": { + "operationId": "deleteMany_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + }, + "get": { + "operationId": "getTags", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "strict-name-search", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + } + }, + { + "in": "query", + "name": "archived", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + }, + "patch": { + "operationId": "updateMany", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateManyTagsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + }, + "post": { + "operationId": "create_9", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Tag" + ] + } + }, + "/workspaces/{workspaceId}/tags/connected-to-approved-entries": { + "post": { + "operationId": "connectedToApprovedEntries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + } + }, + "/workspaces/{workspaceId}/tags/ids": { + "post": { + "operationId": "getTagsOfIds", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + } + }, + "/workspaces/{workspaceId}/tags/report-filters/ids": { + "get": { + "operationId": "getTagIdsByNameAndStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + } + }, + "/workspaces/{workspaceId}/tags/{tagId}": { + "delete": { + "operationId": "delete_8", + "parameters": [ + { + "in": "path", + "name": "tagId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + }, + "put": { + "operationId": "update_4", + "parameters": [ + { + "in": "path", + "name": "tagId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TagDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Tag" + ] + } + }, + "/workspaces/{workspaceId}/templates": { + "get": { + "operationId": "getTemplates", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "remove-inactive-pairs", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "week-start", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TemplateFullWithEntitiesFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + }, + "post": { + "operationId": "create_8", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplateDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/templates/{templateId}": { + "delete": { + "operationId": "delete_7", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "templateId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplateDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + }, + "get": { + "operationId": "getTemplate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "templateId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "remove-inactive-pairs", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplateDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + }, + "patch": { + "operationId": "update_13", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "templateId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplatePatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TemplateDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/templates/{templateId}/activate": { + "post": { + "operationId": "activate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "templateId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActivateTemplateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CopiedEntriesDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/templates/{templateId}/deactivate": { + "post": { + "operationId": "deactivate", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "templateId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ActivateTemplateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "timesheet-template-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-entries/users/{userId}": { + "post": { + "operationId": "copyTimeEntries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CopyEntriesRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CopiedEntriesDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "copy-time-entry-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-entries/{timeEntryId}/continue": { + "post": { + "operationId": "continueTimeEntry", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "timeEntryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/time-off/admin/users": { + "get": { + "operationId": "getTeamMembersOfAdmin", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PtoTeamMembersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "team-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/balance/policy/{policyId}": { + "get": { + "operationId": "getBalancesForPolicy", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "type": "string", + "default": "USER" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BalancesWithCount" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Balance" + ] + }, + "patch": { + "operationId": "updateBalance", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ChangeBalanceRequest" + } + } + }, + "required": true + }, + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "Balance" + ] + } + }, + "/workspaces/{workspaceId}/time-off/balance/user/{userId}": { + "get": { + "operationId": "getBalancesForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "sort", + "required": false, + "schema": { + "type": "string", + "default": "POLICY" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "with-archived", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BalancesWithCount" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Balance" + ] + } + }, + "/workspaces/{workspaceId}/time-off/manager/users": { + "get": { + "operationId": "getTeamMembersOfManager", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PtoTeamMembersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "team-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies": { + "get": { + "operationId": "findPoliciesForWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ACTIVE" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + }, + "post": { + "operationId": "createPolicy", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreatePolicyRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Policy" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/assignments": { + "get": { + "operationId": "getPolicyAssignmentForCurrentUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyAssignmentFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "policy-assignment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/assignments/team": { + "get": { + "operationId": "getTeamAssignmentsDistribution", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TeamPolicyAssignmentsDistribution" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "policy-assignment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/assignments/users/{userId}": { + "get": { + "operationId": "getPolicyAssignmentsForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyAssignmentFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "policy-assignment-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/users/{userId}": { + "get": { + "operationId": "findPoliciesForUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{id}": { + "delete": { + "operationId": "deletePolicy", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + }, + "put": { + "operationId": "updatePolicy", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdatePolicyRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{id}/archive": { + "patch": { + "operationId": "archive", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{id}/restore": { + "patch": { + "operationId": "restore", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{policyId}": { + "get": { + "operationId": "getPolicy", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PolicyDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Policy" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{policyId}/requests": { + "post": { + "operationId": "create_7", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeOffRequestRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestFullDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{policyId}/requests/{requestId}": { + "delete": { + "operationId": "delete_6", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "requestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{policyId}/requests/{requestId}/approve": { + "patch": { + "operationId": "approve", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "requestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{policyId}/requests/{requestId}/reject": { + "patch": { + "operationId": "reject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "requestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RejectTimeOffRequestRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/policies/{policyId}/users/{userId}/requests": { + "post": { + "operationId": "createForOther_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "policyId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeOffRequestRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestFullDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/requests": { + "post": { + "operationId": "get_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "fetch-scope", + "required": false, + "schema": { + "type": "string", + "default": "OWN" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTimeOffRequestsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestsWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/requests/{requestId}": { + "get": { + "operationId": "getTimeOffRequestById", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "requestId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeOffRequestFullDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time Off" + ] + } + }, + "/workspaces/{workspaceId}/time-off/specific-member/all-users": { + "get": { + "operationId": "getAllUsersOfWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PtoTeamMembersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "team-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/specific-member/user-groups": { + "get": { + "operationId": "getUserGroupsOfWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "filter-team", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PtoTeamMembersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "team-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/specific-member/users": { + "get": { + "operationId": "getUsersOfWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "maximum": 200, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "search", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + }, + { + "in": "query", + "name": "filter-team", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PtoTeamMembersAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "team-adapter" + ] + } + }, + "/workspaces/{workspaceId}/time-off/timeline": { + "post": { + "operationId": "get", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "fetch-scope", + "required": false, + "schema": { + "type": "string", + "default": "OWN" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTimelineRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimelineUsersDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Timeline" + ] + } + }, + "/workspaces/{workspaceId}/time-off/timeline-for-reports": { + "post": { + "operationId": "getTimelineForReports", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "fetch-scope", + "required": false, + "schema": { + "type": "string", + "default": "OWN" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTimelineRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimelineUsersDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Timeline" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries": { + "delete": { + "operationId": "deleteMany", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryUpdatedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + }, + "get": { + "operationId": "getTimeEntriesBySearchValue", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchValue", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryRecentlyUsedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + }, + "post": { + "operationId": "create_6", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "from-entry", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "App-Name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Request-Id", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Signature", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/bulk": { + "patch": { + "operationId": "patchTimeEntries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntriesPatchRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/endStarted": { + "put": { + "operationId": "endStarted", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryEndRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/fetch": { + "get": { + "operationId": "getMultipleTimeEntriesById", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/full": { + "post": { + "operationId": "createFull_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "App-Name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Request-Id", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Signature", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/inProgress": { + "get": { + "operationId": "getTimeEntryInProgress", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/invoiced": { + "patch": { + "operationId": "updateInvoicedStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateInvoicedStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/project/{projectId}": { + "get": { + "operationId": "listOfProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/recent": { + "get": { + "operationId": "getTimeEntriesRecentlyUsed", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "maximum": 10, + "minimum": 1, + "type": "integer", + "format": "int32", + "default": 10 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryRecentlyUsedDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/restore": { + "post": { + "operationId": "restoreTimeEntries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/time-entries": { + "post": { + "operationId": "createForMany", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeEntryForManyRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryWithUsernameDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/user/{userId}": { + "post": { + "operationId": "createForOthers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntrySummaryDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/user/{userId}/full": { + "get": { + "operationId": "listOfFull", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "string", + "default": "0" + } + }, + { + "in": "query", + "name": "limit", + "required": false, + "schema": { + "type": "string", + "default": "50" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMemberInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/users/{userId}": { + "get": { + "operationId": "getTimeEntries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "description", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "project", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "task", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "tags", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "project-required", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "task-required", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "hydrated", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "in-progress", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "get-week-before", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + }, + "head": { + "operationId": "assertTimeEntriesExistInDateRange", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/users/{userId}/full": { + "post": { + "operationId": "createFull", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "App-Name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Request-Id", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Signature", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/users/{userId}/in-range": { + "get": { + "operationId": "getTimeEntriesInRange", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/users/{userId}/timesheet": { + "get": { + "operationId": "getTimeEntriesForTimesheet", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "in-progress", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}": { + "patch": { + "operationId": "patch", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryUpdatedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + }, + "put": { + "operationId": "update_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "App-Name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Request-Id", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "header", + "name": "Signature", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/attributes": { + "get": { + "operationId": "getTimeEntryAttributes", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomAttributeDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "custom-attribute-http-adapter" + ] + }, + "post": { + "operationId": "createTimeEntryAttribute", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateCustomAttributeRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomAttributeDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "custom-attribute-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/attributes/delete": { + "post": { + "operationId": "deleteTimeEntryAttribute", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteCustomAttributeRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomAttributeDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "custom-attribute-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/billable": { + "put": { + "operationId": "updateBillable", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryBillableRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/description": { + "put": { + "operationId": "updateDescription", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryDescriptionRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/end": { + "put": { + "operationId": "updateEnd", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryEndRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/full": { + "put": { + "operationId": "updateFull", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "stop-timer", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/project": { + "put": { + "operationId": "updateProject", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryProjectRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/project/remove": { + "delete": { + "operationId": "removeProject", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/projectAndTask": { + "put": { + "operationId": "updateProjectAndTask", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "request1": { + "$ref": "#/components/schemas/UpdateTimeEntryTaskRequest" + }, + "request2": { + "$ref": "#/components/schemas/UpdateTimeEntryProjectRequest" + } + } + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/split": { + "patch": { + "operationId": "updateAndSplit", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryPatchSplitRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + }, + "post": { + "operationId": "splitTimeEntry", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntrySplitRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/start": { + "put": { + "operationId": "updateStart", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryStartRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/tags": { + "put": { + "operationId": "updateTags", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryTagsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/task/remove": { + "delete": { + "operationId": "removeTask", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/timeInterval": { + "put": { + "operationId": "updateTimeInterval", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntriesDurationRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryUpdatedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{id}/user": { + "put": { + "operationId": "updateUser", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateTimeEntryUserRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{timeEntryId}": { + "delete": { + "operationId": "delete_5", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "timeEntryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryUpdatedDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{timeEntryId}/custom-field": { + "put": { + "operationId": "updateCustomField", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "timeEntryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomFieldValueDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/timeEntries/{timeEntryId}/penalty": { + "post": { + "operationId": "penalizeCurrentTimerAndStartNewTimeEntry", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "timeEntryId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PenalizeTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Penalize time entry" + ] + } + }, + "/workspaces/{workspaceId}/transfer": { + "post": { + "deprecated": true, + "operationId": "transferWorkspaceDeprecatedFlow", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferDeprecatedRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/transfers": { + "post": { + "operationId": "transferWorkspace", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceTransferDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/trial-activation-data": { + "get": { + "operationId": "getTrialActivationData", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "testReverseFreeTrialPhase", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "testActivateTrial", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TrialActivationDataDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/user/{userId}": { + "delete": { + "operationId": "removeMember", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/user/{userId}/time-entries/calendar-drag": { + "post": { + "operationId": "copyTimeEntryCalendarDrag", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateTimeEntryRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/user/{userId}/time-entries/{id}/duplicate": { + "post": { + "operationId": "duplicateTimeEntry", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryDtoImpl" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Time entry" + ] + } + }, + "/workspaces/{workspaceId}/userGroups": { + "get": { + "deprecated": true, + "operationId": "getUserGroups_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + }, + "post": { + "operationId": "create_5", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateUserGroupRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/full": { + "get": { + "operationId": "getUserGroups_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "projectId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sort-column", + "required": false, + "schema": { + "type": "string", + "default": "NAME" + } + }, + { + "in": "query", + "name": "sort-order", + "required": false, + "schema": { + "type": "string", + "default": "ASCENDING" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "search-groups", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GroupsAndCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/names": { + "post": { + "operationId": "getUserGroupNames", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/report-filters": { + "get": { + "operationId": "getUsersForReportFilter_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchValue", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "force-filter", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "ignore-filter", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + }, + { + "in": "query", + "name": "excludedIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "forApproval", + "required": false, + "schema": { + "type": "boolean", + "default": false + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + }, + "post": { + "operationId": "getUserGroupForReportFilterPost", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserGroupReportFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/report-filters/attendance-report": { + "post": { + "operationId": "getUsersForAttendanceReportFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserGroupAttendanceFilterRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReportFilterUsersWithCountDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/report-filters/ids": { + "get": { + "operationId": "getUserGroupIdsByName", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "name", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/userGroupIds": { + "post": { + "operationId": "getUserGroups", + "parameters": [ + { + "in": "query", + "name": "searchValue", + "required": false, + "schema": { + "type": "string", + "default": "" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserGroupByIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/users": { + "delete": { + "operationId": "removeUser", + "parameters": [ + { + "in": "query", + "name": "userGroupIds", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "userId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddOrRemoveUsersFromUserGroups" + } + } + } + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + }, + "post": { + "operationId": "addUsersToUserGroupsFilter", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUsersFromUserGroupsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userGroups/{id}": { + "delete": { + "operationId": "delete_4", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + }, + "put": { + "operationId": "update_2", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserGroupNameRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Group" + ] + } + }, + "/workspaces/{workspaceId}/userIds": { + "post": { + "operationId": "getUsers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUsersByIdsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users": { + "get": { + "operationId": "getUsers_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "post": { + "operationId": "addUsers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sendEmail", + "required": false, + "schema": { + "type": "boolean", + "default": true + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AddUsersToWorkspaceRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/expenses": { + "get": { + "operationId": "getExpensesForUsers", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "userId", + "required": true, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Expense" + ] + } + }, + "/workspaces/{workspaceId}/users/memberships": { + "put": { + "operationId": "setMemberships", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetWorkspaceMembershipStatusRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}": { + "post": { + "operationId": "resendInvite", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests": { + "post": { + "deprecated": true, + "operationId": "createDeprecated", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateApprovalRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/all-pending": { + "get": { + "operationId": "getRequestsByUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/approved-totals": { + "post": { + "operationId": "getApprovedTotals", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetApprovalTotalsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalPeriodTotalsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/for-other": { + "post": { + "deprecated": true, + "operationId": "createForOtherDeprecated", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateApprovalRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/preview": { + "post": { + "operationId": "getPreview", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "unsubmitted", + "required": false, + "schema": { + "type": "boolean" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetApprovalTotalsRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalPeriodTotalsDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/status": { + "get": { + "operationId": "getTimeEntryStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryApprovalStatusDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/week-status": { + "get": { + "deprecated": true, + "operationId": "getTimeEntryWeekStatus", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TimeEntryApprovalStatusDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/weekly-pending": { + "get": { + "operationId": "getWeeklyRequestsByUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalInfoDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/withdraw-all": { + "patch": { + "operationId": "withdrawAllOfUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/withdraw-on-workspace": { + "patch": { + "deprecated": true, + "operationId": "withdrawAllOfWorkspaceDeprecated", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/approval-requests/withdraw-weekly": { + "patch": { + "operationId": "withdrawWeeklyOfUser", + "parameters": [ + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/cost-rate": { + "post": { + "operationId": "setCostRateForUser_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CostRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/custom-field-values": { + "put": { + "operationId": "upsertUserCustomFieldValue", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserCustomFieldPutRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserCustomFieldValueDto" + } + } + } + }, + "description": "Created" + } + }, + "tags": [ + "User" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/favorite-entries": { + "get": { + "operationId": "getFavoriteEntries", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FavoriteTimeEntryFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Favorite time entry" + ] + }, + "post": { + "operationId": "createFavoriteTimeEntry", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateFavoriteEntriesRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FavoriteTimeEntryFullDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Favorite time entry" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/favorite-entries/reorder": { + "patch": { + "operationId": "reorderInvoiceItem", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReorderFavoriteEntriesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FavoriteTimeEntryFullDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Favorite time entry" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/favorite-entries/{id}": { + "delete": { + "operationId": "delete_3", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Favorite time entry" + ] + }, + "put": { + "operationId": "update_1", + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateFavoriteEntriesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FavoriteTimeEntryFullDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Favorite time entry" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/holidays": { + "get": { + "operationId": "getHolidays_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "start", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "end", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/HolidayDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Holiday" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/hourly-rate": { + "post": { + "operationId": "setHourlyRateForUser_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/HourlyRateRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/permissions": { + "get": { + "operationId": "getPermissionsToUser", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AuthorizationDto" + } + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/projects/favorites/projects/{projectId}": { + "delete": { + "operationId": "removeFavoriteProject", + "parameters": [ + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "project-favorites-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/projects/favorites/{projectFavoritesId}": { + "delete": { + "operationId": "delete_2", + "parameters": [ + { + "in": "path", + "name": "projectFavoritesId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "tags": [ + "project-favorites-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/projects/favorites/{projectId}": { + "post": { + "operationId": "create_4", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProjectFavoritesDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "project-favorites-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/projects/{projectId}/tasks/{taskId}/favorites": { + "delete": { + "operationId": "delete_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "taskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "tags": [ + "task-favorites-http-adapter" + ] + }, + "post": { + "operationId": "create_3", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "projectId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "taskId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TaskFavoritesDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "task-favorites-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/resubmit-entries-for-approval": { + "put": { + "operationId": "reSubmit", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubmitApprovalRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/roles": { + "get": { + "operationId": "getUserRoles", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "in": "query", + "name": "page-size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRolesInfoDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + }, + "put": { + "operationId": "updateUserRoles", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateUserRolesRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserRolesInfoDto" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/submit-approval-request": { + "post": { + "operationId": "create_2", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubmitApprovalRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/submit-approval-request/for-other": { + "post": { + "operationId": "createForOther", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubmitApprovalRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ApprovalRequestDto" + } + } + }, + "description": "Created" + } + }, + "tags": [ + "Approval" + ] + } + }, + "/workspaces/{workspaceId}/users/{userId}/work-capacity": { + "get": { + "operationId": "getWorkCapacity", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "userId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "tags": [ + "Workspace" + ] + } + }, + "/workspaces/{workspaceId}/webhooks": { + "get": { + "operationId": "getWebhooks", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "type", + "required": false, + "schema": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + }, + "default": [ + "USER_CREATED" + ] + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhooksDto" + } + } + }, + "description": "OK" + } + }, + "summary": "Get all webhooks on workspace", + "tags": [ + "webhook-http-adapter" + ] + }, + "post": { + "operationId": "create_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookRequest" + } + } + }, + "required": true + }, + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDto" + } + } + }, + "description": "Created" + } + }, + "summary": "Create webhooks", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/webhooks/{webhookId}": { + "delete": { + "operationId": "delete", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "OK" + } + }, + "summary": "Delete webhook", + "tags": [ + "webhook-http-adapter" + ] + }, + "get": { + "operationId": "getWebhook", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDto" + } + } + }, + "description": "OK" + } + }, + "summary": "Get a specific webhook by id", + "tags": [ + "webhook-http-adapter" + ] + }, + "put": { + "operationId": "update", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookRequest" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDto" + } + } + }, + "description": "OK" + } + }, + "summary": "Update a webhook", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/webhooks/{webhookId}/logs": { + "get": { + "operationId": "getLogsForWebhook_1", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 0 + } + }, + { + "in": "query", + "name": "size", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "default": 50 + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + }, + { + "in": "query", + "name": "sortByNewest", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "from", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "to", + "required": false, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookLogDto" + } + } + } + }, + "description": "OK" + } + }, + "summary": "Get logs for a webhook", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/webhooks/{webhookId}/logs/count": { + "get": { + "operationId": "getLogCount", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "status", + "required": false, + "schema": { + "type": "string", + "default": "ALL" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "integer", + "format": "int64" + } + } + }, + "description": "OK" + } + }, + "summary": "Get the count of logs for a webhook", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/webhooks/{webhookId}/resend/{webhookLogId}": { + "get": { + "operationId": "triggerResendEventForWebhook", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookLogId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "summary": "Trigger resent event for webhook log", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/webhooks/{webhookId}/test": { + "get": { + "operationId": "triggerTestEventForWebhook", + "parameters": [ + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "boolean" + } + } + }, + "description": "OK" + } + }, + "summary": "Trigger a test event for webhook", + "tags": [ + "webhook-http-adapter" + ] + } + }, + "/workspaces/{workspaceId}/webhooks/{webhookId}/token": { + "patch": { + "operationId": "generateNewToken", + "parameters": [ + { + "in": "path", + "name": "workspaceId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "webhookId", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebhookDto" + } + } + }, + "description": "OK" + } + }, + "summary": "Generate new token", + "tags": [ + "webhook-http-adapter" + ] + } + } + }, + "components": { + "schemas": { + "ABTestingDto": { + "type": "object", + "properties": { + "abTestingEnabled": { + "type": "boolean" + }, + "abTestingType": { + "type": "string", + "enum": [ + "UPGRADE_SCREEN" + ] + }, + "workspaceId": { + "type": "string" + } + } + }, + "ABTestingTrackingRequest": { + "type": "object", + "properties": { + "test": { + "type": "string" + } + } + }, + "AbstractKioskTokenDto": { + "type": "object", + "properties": { + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "AcceptTermsTokenRequest": { + "required": [ + "terms" + ], + "type": "object", + "properties": { + "cakeOrganizationName": { + "type": "string" + }, + "exchangeToken": { + "type": "string" + }, + "organizationName": { + "type": "string", + "writeOnly": true + }, + "terms": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "userName": { + "type": "string" + } + } + }, + "AccountStatus": { + "description": "Represents account status enum.", + "example": "ACTIVE", + "type": "string", + "enum": [ + "ACTIVE", + "PENDING_EMAIL_VERIFICATION", + "DELETED", + "NOT_REGISTERED", + "LIMITED", + "LIMITED_DELETED" + ] + }, + "AccountVerificationDto": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + } + }, + "ActivateTemplateRequest": { + "required": [ + "weekStart" + ], + "type": "object", + "properties": { + "activateOption": { + "type": "string", + "enum": [ + "REPLACE", + "SKIP", + "ADD" + ] + }, + "weekStart": { + "type": "string", + "format": "date" + } + } + }, + "ActiveMembersDto": { + "type": "object", + "properties": { + "activeLimitedMembersCount": { + "type": "integer", + "format": "int32" + }, + "activeMembersCount": { + "type": "integer", + "format": "int32" + }, + "organizationLimitedMembersCount": { + "type": "integer", + "format": "int32" + }, + "organizationMembersCount": { + "type": "integer", + "format": "int32" + } + } + }, + "ActivityDto": { + "type": "object", + "properties": { + "activityType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "AddAndRemoveProjectPermissionsRequest": { + "required": [ + "permissions" + ], + "type": "object", + "properties": { + "permissions": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AddEmailRequest": { + "type": "object", + "properties": { + "email": { + "type": "string" + } + } + }, + "AddLimitedUserToWorkspaceRequest": { + "required": [ + "names" + ], + "type": "object", + "properties": { + "names": { + "maxItems": 250, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AddOrRemoveUsersFromUserGroups": { + "type": "object", + "properties": { + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userId": { + "type": "string" + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AddProfilePictureRequest": { + "type": "object", + "properties": { + "imageUrl": { + "type": "string" + } + } + }, + "AddUserToWorkspaceRequest": { + "required": [ + "email" + ], + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Represents email address of the user.", + "example": "johndoe@example.com" + } + } + }, + "AddUsersToProjectRequest": { + "type": "object", + "properties": { + "exclude": { + "type": "boolean", + "writeOnly": true + }, + "excludeGivenIds": { + "type": "boolean" + }, + "userGroupIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "userIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AddUsersToWorkspaceRequest": { + "type": "object", + "properties": { + "captcha": { + "$ref": "#/components/schemas/CaptchaResponseDto" + }, + "captchaValue": { + "$ref": "#/components/schemas/CaptchaResponseDto" + }, + "doNotSendEmail": { + "type": "boolean" + }, + "emails": { + "maxItems": 250, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AddonComponentDto": { + "required": [ + "accessLevel", + "path", + "type" + ], + "type": "object", + "properties": { + "accessLevel": { + "type": "string", + "enum": [ + "EVERYONE", + "ADMINS" + ] + }, + "height": { + "type": "integer", + "format": "int32" + }, + "iconPath": { + "type": "string" + }, + "label": { + "type": "string" + }, + "options": { + "type": "object", + "additionalProperties": { + "type": "object" + } + }, + "path": { + "type": "string" + }, + "type": { + "type": "string" + }, + "width": { + "type": "integer", + "format": "int32" + } + } + }, + "AddonDto": { + "type": "object", + "properties": { + "addonApiToken": { + "type": "string" + }, + "addonKey": { + "type": "string" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonComponentDto" + } + }, + "description": { + "type": "string" + }, + "iconPath": { + "type": "string" + }, + "id": { + "type": "string" + }, + "minimalSubscriptionPlan": { + "type": "string", + "enum": [ + "FREE", + "BASIC", + "STANDARD", + "PRO", + "ENTERPRISE" + ] + }, + "name": { + "type": "string" + }, + "selfHostedSettings": { + "$ref": "#/components/schemas/AddonSelfHostedSettingsDto" + }, + "settings": { + "$ref": "#/components/schemas/AddonSettingsDto" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE" + ] + }, + "statusChangeDate": { + "type": "string", + "format": "date-time" + }, + "url": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "webhookIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "AddonInstallRequest": { + "type": "object", + "properties": { + "manifestUrl": { + "$ref": "#/components/schemas/Url" + }, + "url": { + "type": "string", + "writeOnly": true + } + } + }, + "AddonKeysRequest": { + "required": [ + "keys" + ], + "type": "object", + "properties": { + "exclude": { + "type": "boolean" + }, + "keys": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "AddonLifecycleRequest": { + "required": [ + "path", + "type" + ], + "type": "object", + "properties": { + "path": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "AddonSelfHostedSettingsDto": { + "required": [ + "path" + ], + "type": "object", + "properties": { + "path": { + "type": "string" + } + } + }, + "AddonSettingDto": { + "required": [ + "accessLevel", + "id", + "name", + "type", + "value" + ], + "type": "object", + "properties": { + "accessLevel": { + "type": "string" + }, + "allowedValues": { + "type": "array", + "items": { + "type": "string" + } + }, + "copyable": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "placeholder": { + "type": "string" + }, + "readOnly": { + "type": "boolean" + }, + "required": { + "type": "boolean" + }, + "type": { + "type": "string", + "enum": [ + "TXT", + "NUMBER", + "DROPDOWN_SINGLE", + "DROPDOWN_MULTIPLE", + "CHECKBOX", + "LINK", + "USER_DROPDOWN_SINGLE", + "USER_DROPDOWN_MULTIPLE" + ] + }, + "value": { + "type": "object" + } + } + }, + "AddonSettingsDto": { + "type": "object", + "properties": { + "tabs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonSettingsTabDto" + } + } + } + }, + "AddonSettingsGroupDto": { + "required": [ + "id", + "title" + ], + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "header": { + "$ref": "#/components/schemas/AddonSettingsHeaderDto" + }, + "id": { + "type": "string" + }, + "settings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonSettingDto" + } + }, + "title": { + "type": "string" + } + } + }, + "AddonSettingsHeaderDto": { + "required": [ + "title" + ], + "type": "object", + "properties": { + "title": { + "type": "string" + } + } + }, + "AddonSettingsTabDto": { + "required": [ + "id", + "name" + ], + "type": "object", + "properties": { + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonSettingsGroupDto" + } + }, + "header": { + "$ref": "#/components/schemas/AddonSettingsHeaderDto" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "settings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonSettingDto" + } + } + } + }, + "AddonUninstallRequest": { + "type": "object", + "properties": { + "manifestUrl": { + "$ref": "#/components/schemas/Url" + }, + "url": { + "type": "string", + "writeOnly": true + } + } + }, + "AddonUpdateRequest": { + "type": "object", + "properties": { + "baseUrl": { + "type": "string", + "writeOnly": true + }, + "components": { + "type": "object" + }, + "description": { + "type": "string" + }, + "iconPath": { + "type": "string" + }, + "lifecycle": { + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/AddonLifecycleRequest" + } + }, + "lifecycles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonLifecycleRequest" + } + }, + "minimalSubscriptionPlan": { + "type": "string" + }, + "name": { + "type": "string" + }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, + "settings": { + "type": "object" + }, + "url": { + "type": "string" + }, + "webhooks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonWebhookRequest" + } + }, + "webhooksAsSet": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonWebhookRequest" + } + } + } + }, + "AddonUpdateSettingRequest": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "AddonUpdateSettingsRequest": { + "required": [ + "settings" + ], + "type": "object", + "properties": { + "settings": { + "maxItems": 2147483647, + "minItems": 1, + "type": "array", + "items": { + "$ref": "#/components/schemas/AddonUpdateSettingRequest" + } + } + } + }, + "AddonUpdateStatusRequest": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE" + ] + } + } + }, + "AddonWebhookRequest": { + "required": [ + "event", + "path" + ], + "type": "object", + "properties": { + "event": { + "type": "string" + }, + "path": { + "type": "string" + } + } + }, + "AffiliateTrackingRequest": { + "type": "object", + "properties": { + "affiliateRefId": { + "type": "string" + }, + "affiliateTid": { + "type": "string" + } + } + }, + "AlertDto": { + "type": "object", + "properties": { + "_id": { + "type": "string", + "writeOnly": true, + "x-go-name": "Id" + }, + "alertPerson": { + "type": "string", + "enum": [ + "WORKSPACE_ADMIN", + "PROJECT_MANAGER", + "TEAM_MEMBERS" + ] + }, + "alertType": { + "type": "string", + "enum": [ + "PROJECT", + "TASK" + ] + }, + "id": { + "type": "string", + "x-go-name": "Id1" + }, + "percentage": { + "type": "number", + "format": "double" + }, + "workspaceId": { + "type": "string" + } + } + }, + "AllowedUpdates": { + "type": "object", + "properties": { + "forceProjectAllowed": { + "type": "boolean" + }, + "forceTaskAllowed": { + "type": "boolean" + } + } + }, + "AmountWithCurrencyDto": { + "type": "object", + "properties": { + "amount": { + "type": "number", + "format": "double" + }, + "currency": { + "type": "string" + } + } + }, + "ApiKeyDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "apiKey": { + "type": "string" + }, + "apiKeyFirstFiveCharsPlain": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isActive": { + "type": "boolean", + "writeOnly": true + }, + "userId": { + "type": "string" + } + } + }, + "AppleAuthenticationRequest": { + "required": [ + "authorizationCode" + ], + "type": "object", + "properties": { + "authorizationCode": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "terms": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "timeZone": { + "type": "string" + } + } + }, + "AppleConfigurationDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "ApprovalDashboardDto": { + "type": "object", + "properties": { + "barChartData": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BarChartDataDto" + } + }, + "dateAndTotalTime": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TotalTimeItemDto" + } + } + }, + "dates": { + "type": "array", + "items": { + "type": "string" + } + }, + "projectCountByDate": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "totalDurationByDate": { + "type": "array", + "items": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + } + }, + "totalTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + } + } + }, + "ApprovalDetailsDto": { + "type": "object", + "properties": { + "approvalRequest": { + "$ref": "#/components/schemas/ApprovalRequestDto" + }, + "approvedTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "approvedTimeOff": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "billableAmount": { + "type": "number", + "format": "double" + }, + "billableAmountCurrencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "billableTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "breakTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "costAmount": { + "type": "number", + "format": "double" + }, + "costAmountCurrencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "entries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryInfoDto" + } + }, + "expenseCurrencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "expenseDailyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseDailyTotalsDto" + } + }, + "expenseTotal": { + "type": "number", + "format": "double" + }, + "expenses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseHydratedDto" + } + }, + "pendingTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "trackedTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + } + } + }, + "ApprovalGroupDto": { + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ApprovalGroupItemDto" + } + }, + "title": { + "type": "string" + } + } + }, + "ApprovalGroupItemDto": { + "type": "object", + "properties": { + "approvalRequestId": { + "type": "string" + }, + "approvalState": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "WITHDRAWN_SUBMISSION", + "WITHDRAWN_APPROVAL", + "REJECTED" + ] + }, + "approvedTimeOff": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "currencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "expenseTotal": { + "type": "integer", + "format": "int64" + }, + "label": { + "type": "string" + }, + "managers": { + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/EntityIdNameDto" + } + }, + "total": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "userId": { + "type": "string" + }, + "userManagers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EntityIdNameDto" + } + } + } + }, + "ApprovalInfoDto": { + "type": "object", + "properties": { + "dateRange": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "id": { + "type": "string" + }, + "workspaceName": { + "type": "string" + } + } + }, + "ApprovalPeriodTotalsDto": { + "type": "object", + "properties": { + "currencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "dailyExpenseCurrencyTotals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseDailyTotalsDto" + } + }, + "dailyExpenseTotals": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + }, + "dailyTotals": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + } + }, + "dateRange": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "expenseTotal": { + "type": "integer", + "format": "int64" + }, + "total": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + } + } + }, + "ApprovalRequestCreatorDto": { + "type": "object", + "properties": { + "userEmail": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + } + } + }, + "ApprovalRequestDto": { + "type": "object", + "properties": { + "approvalStatuses": { + "type": "object", + "additionalProperties": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + } + }, + "creator": { + "$ref": "#/components/schemas/ApprovalRequestCreatorDto" + }, + "dateRange": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "id": { + "type": "string" + }, + "owner": { + "$ref": "#/components/schemas/ApprovalRequestOwnerDto" + }, + "status": { + "$ref": "#/components/schemas/ApprovalRequestStatusDto" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ApprovalRequestOwnerDto": { + "type": "object", + "properties": { + "startOfWeek": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + } + } + }, + "ApprovalRequestStatusDto": { + "type": "object", + "properties": { + "note": { + "type": "string" + }, + "state": { + "type": "string" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + }, + "updatedBy": { + "type": "string" + }, + "updatedByUserName": { + "type": "string" + } + } + }, + "ApprovalSettings": { + "type": "object", + "properties": { + "approvalEnabled": { + "type": "boolean" + }, + "approvalPeriod": { + "type": "string", + "enum": [ + "WEEKLY", + "SEMI_MONTHLY", + "MONTHLY" + ] + }, + "approvalRoles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADMIN", + "TEAM_MANAGER", + "PROJECT_MANAGER" + ] + } + } + } + }, + "ApproveDto": { + "type": "object", + "properties": { + "requiresApproval": { + "type": "boolean", + "description": "Indicates whether it requires approval", + "example": true + }, + "specificMembers": { + "type": "boolean", + "description": "Indicates whether it requires specific members", + "example": false + }, + "teamManagers": { + "type": "boolean", + "description": "Indicates whether it requires team manager's approval", + "example": false + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents set of user's identifier across the system", + "example": [ + "6579d126c2fe3b25f20ea001", + "6579d126c2fe3b25f20ea002" + ], + "items": { + "type": "string", + "description": "Represents set of user's identifier across the system", + "example": "[\"6579d126c2fe3b25f20ea001\",\"6579d126c2fe3b25f20ea002\"]" + } + } + } + }, + "ApproveRequestsRequest": { + "type": "object", + "properties": { + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "ArchivePermissionDto": { + "type": "object", + "properties": { + "canArchiveProjects": { + "type": "boolean" + }, + "haveProjects": { + "type": "boolean" + }, + "haveTasks": { + "type": "boolean" + } + } + }, + "AssignmentCreateRequest": { + "required": [ + "projectId", + "userId" + ], + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "end": { + "type": "string", + "writeOnly": true + }, + "hoursPerDay": { + "type": "number", + "format": "double" + }, + "includeNonWorkingDays": { + "type": "boolean" + }, + "note": { + "maxLength": 100, + "minLength": 0, + "type": "string" + }, + "period": { + "$ref": "#/components/schemas/DateRange" + }, + "projectId": { + "type": "string" + }, + "recurring": { + "$ref": "#/components/schemas/RecurringAssignmentRequest" + }, + "recurringAssignment": { + "$ref": "#/components/schemas/RecurringAssignmentRequest" + }, + "start": { + "type": "string", + "writeOnly": true + }, + "startTime": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "AssignmentCreateRequestV1": { + "required": [ + "end", + "projectId", + "start", + "userId" + ], + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether assignment is billable or not." + }, + "end": { + "type": "string", + "description": "Represents end date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2021-01-01T00:00:00Z" + }, + "hoursPerDay": { + "type": "number", + "description": "Represents assignment total hours per day.", + "format": "double", + "example": 7.5 + }, + "includeNonWorkingDays": { + "type": "boolean", + "description": "Indicates whether to include non-working days or not." + }, + "note": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents assignment note.", + "example": "This is a sample note for an assignment." + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "56b687e29ae1f428e7ebe504" + }, + "recurringAssignment": { + "$ref": "#/components/schemas/RecurringAssignmentRequestV1" + }, + "start": { + "type": "string", + "description": "Represents start date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + }, + "startTime": { + "type": "string", + "description": "Represents start time in hh:mm:ss format.", + "example": "10:00:00" + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "56b687e29ae1f428e7ebe505" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "72k687e29ae1f428e7ebe109" + } + } + }, + "AssignmentDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "billableAmountPerDay": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + }, + "costAmountPerDay": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + }, + "excludeDays": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/SchedulingExcludeDay" + } + }, + "hoursPerDay": { + "type": "number", + "format": "double" + }, + "id": { + "type": "string" + }, + "includeNonWorkingDays": { + "type": "boolean" + }, + "note": { + "type": "string" + }, + "period": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "projectId": { + "type": "string" + }, + "published": { + "type": "boolean" + }, + "recurring": { + "$ref": "#/components/schemas/RecurringAssignmentDto" + }, + "startTime": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "AssignmentDtoV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether assignment is billable or not." + }, + "excludeDays": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of excluded days objects", + "items": { + "$ref": "#/components/schemas/SchedulingExcludeDay" + } + }, + "hoursPerDay": { + "type": "number", + "description": "Represents assignment total hours per day.", + "format": "double", + "example": 7.5 + }, + "id": { + "type": "string", + "description": "Represents assignment identifier across the system.", + "example": "74a687e29ae1f428e7ebe505" + }, + "includeNonWorkingDays": { + "type": "boolean", + "description": "Indicates whether assignment should include non-working days or not." + }, + "note": { + "type": "string", + "description": "Represents assignment note.", + "example": "This is a sample note for an assignment." + }, + "period": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "56b687e29ae1f428e7ebe504" + }, + "published": { + "type": "boolean", + "description": "Indicates whether assignment is published or not." + }, + "recurring": { + "$ref": "#/components/schemas/RecurringAssignmentDto" + }, + "startTime": { + "type": "string", + "description": "Represents start time in hh:mm:ss format.", + "example": "10:00:00" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "72k687e29ae1f428e7ebe109" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "AssignmentHydratedDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "excludeDays": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/SchedulingExcludeDay" + } + }, + "hoursPerDay": { + "type": "number", + "format": "double" + }, + "id": { + "type": "string" + }, + "includeNonWorkingDays": { + "type": "boolean" + }, + "note": { + "type": "string" + }, + "period": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "projectArchived": { + "type": "boolean" + }, + "projectBillable": { + "type": "boolean" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "startTime": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "AssignmentHydratedDtoV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether assignment is billable or not." + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "36b687e29ae1f428e7ebe109" + }, + "clientName": { + "type": "string", + "description": "Represents project name.", + "example": "Software Development" + }, + "hoursPerDay": { + "type": "number", + "description": "Represents number of hours per day as double.", + "format": "double", + "example": 7.5 + }, + "id": { + "type": "string", + "description": "Represents assignment identifier across the system.", + "example": "74a687e29ae1f428e7ebe505" + }, + "note": { + "type": "string", + "description": "Represents assignment note.", + "example": "This is a sample note for an assignment." + }, + "period": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "projectArchived": { + "type": "boolean" + }, + "projectBillable": { + "type": "boolean" + }, + "projectColor": { + "type": "string", + "description": "Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#000000" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "56b687e29ae1f428e7ebe504" + }, + "projectName": { + "type": "string", + "description": "Represents project name.", + "example": "Software Development" + }, + "startTime": { + "type": "string", + "description": "Represents start time in hh:mm:ss format.", + "example": "10:00:00" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "72k687e29ae1f428e7ebe109" + }, + "userName": { + "type": "string", + "description": "Represents user name.", + "example": "John Doe" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "AssignmentPerDayDto": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time" + }, + "hasAssignment": { + "type": "boolean" + } + } + }, + "AssignmentPeriodRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "writeOnly": true + }, + "period": { + "$ref": "#/components/schemas/DateRange" + }, + "seriesUpdateOption": { + "type": "string", + "enum": [ + "THIS_ONE", + "THIS_AND_FOLLOWING", + "ALL" + ] + }, + "start": { + "type": "string", + "writeOnly": true + } + } + }, + "AssignmentUpdateRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "end": { + "type": "string", + "writeOnly": true + }, + "hoursPerDay": { + "type": "number", + "format": "double" + }, + "includeNonWorkingDays": { + "type": "boolean" + }, + "note": { + "maxLength": 100, + "minLength": 0, + "type": "string" + }, + "period": { + "$ref": "#/components/schemas/DateRange" + }, + "seriesUpdateOption": { + "type": "string", + "enum": [ + "THIS_ONE", + "THIS_AND_FOLLOWING", + "ALL" + ] + }, + "start": { + "type": "string", + "writeOnly": true + }, + "startTime": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "AssignmentUpdateRequestV1": { + "required": [ + "end", + "start" + ], + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether assignment is billable or not." + }, + "end": { + "type": "string", + "description": "Represents end date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2021-01-01T00:00:00Z" + }, + "hoursPerDay": { + "type": "number", + "description": "Represents assignment total hours per day.", + "format": "double", + "example": 7.5 + }, + "includeNonWorkingDays": { + "type": "boolean", + "description": "Indicates whether to include non-working days or not." + }, + "note": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents assignment note.", + "example": "This is a sample note for an assignment." + }, + "seriesUpdateOption": { + "type": "string", + "description": "Valid series option", + "example": "THIS_ONE", + "enum": [ + "THIS_ONE", + "THIS_AND_FOLLOWING", + "ALL" + ] + }, + "start": { + "type": "string", + "description": "Represents start date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + }, + "startTime": { + "type": "string", + "description": "Represents start time in hh:mm:ss format.", + "example": "10:00:00" + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "56b687e29ae1f428e7ebe505" + } + } + }, + "AttributionTrackingRequest": { + "type": "object", + "properties": { + "agid": { + "type": "string" + }, + "attribution": { + "type": "string" + }, + "baseUrl": { + "type": "string" + }, + "bdg": { + "type": "string" + }, + "campaign": { + "type": "string" + }, + "cmpid": { + "type": "string" + }, + "cmt": { + "type": "string" + }, + "device": { + "type": "string" + }, + "keyword": { + "type": "string" + }, + "lci": { + "type": "string" + }, + "lct": { + "type": "string" + }, + "medium": { + "type": "string" + }, + "source": { + "type": "string" + }, + "tpc": { + "type": "string" + } + } + }, + "AuditLogSettingsDto": { + "type": "object", + "properties": { + "auditEnabled": { + "type": "boolean" + }, + "clientAuditing": { + "type": "boolean" + }, + "clientStartedRecording": { + "type": "string", + "format": "date-time" + }, + "expensesAuditing": { + "type": "boolean" + }, + "expensesStartedRecording": { + "type": "string", + "format": "date-time" + }, + "projectAuditing": { + "type": "boolean" + }, + "projectStartedRecording": { + "type": "string", + "format": "date-time" + }, + "tagAuditing": { + "type": "boolean" + }, + "tagStartedRecording": { + "type": "string", + "format": "date-time" + }, + "timeEntryAuditing": { + "type": "boolean" + }, + "timeEntryStartedRecording": { + "type": "string", + "format": "date-time" + } + } + }, + "AuditMetadataDto": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time" + } + } + }, + "AuthAccessResponse": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isNew": { + "type": "boolean" + }, + "membership": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "new": { + "type": "boolean" + }, + "refreshToken": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "PENDING_EMAIL_VERIFICATION", + "DELETED", + "NOT_REGISTERED", + "LIMITED", + "LIMITED_DELETED" + ] + }, + "token": { + "type": "string" + } + } + }, + "AuthCreationRequest": { + "required": [ + "key", + "secret" + ], + "type": "object", + "properties": { + "currentLang": { + "type": "string" + }, + "key": { + "type": "string" + }, + "secret": { + "type": "string" + }, + "terms": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "termsAcccepted": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "timeZone": { + "type": "string" + } + } + }, + "AuthDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "key": { + "type": "string" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "new": { + "type": "boolean" + }, + "refreshToken": { + "type": "string" + }, + "roles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "USER", + "MANAGER", + "ADMIN", + "NOTIFIER", + "SUPPORT_AGENT", + "SALES_AGENT", + "SALES_ADMIN", + "SALES_PANEL", + "BILLING" + ] + } + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "PENDING_EMAIL_VERIFICATION", + "DELETED", + "NOT_REGISTERED", + "LIMITED", + "LIMITED_DELETED" + ] + }, + "token": { + "type": "string" + } + } + }, + "AuthExchangeTokenResponse": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "exchangeToken": { + "type": "string" + }, + "hasPendingInvites": { + "type": "boolean" + } + } + }, + "AuthResponse": { + "type": "object" + }, + "AuthenticationRequest": { + "type": "object", + "properties": { + "email": { + "type": "string", + "writeOnly": true + }, + "password": { + "type": "string", + "writeOnly": true + } + } + }, + "AuthorizationDto": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "objectId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "AuthorizationSourceDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "USER_GROUP" + ] + } + } + }, + "AuthorizationSourceDtoV1": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Represents authorization source identifier across the system.", + "example": "5b715612b079875110791234" + }, + "type": { + "type": "string", + "description": "Represents a valid authorization source type.", + "example": "USER_GROUP", + "enum": [ + "USER_GROUP" + ] + } + }, + "description": "Represents an authorization data transfer object." + }, + "AutoLoginRequest": { + "type": "object", + "properties": { + "autoLogin": { + "type": "string", + "enum": [ + "SAML2", + "OAUTH2", + "OFF" + ] + } + } + }, + "AutomaticAccrualDto": { + "type": "object", + "properties": { + "amount": { + "type": "number", + "description": "Represents automatic accrual's amount", + "format": "double", + "example": 20 + }, + "period": { + "type": "string", + "description": "Represents automatic accrual's period", + "example": "YEAR", + "enum": [ + "MONTH", + "YEAR" + ] + }, + "timeUnit": { + "type": "string", + "description": "Represents automatic accrual's time unit", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + } + } + }, + "AutomaticAccrualRequest": { + "required": [ + "amount" + ], + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "number", + "description": "Represents amount of automatic accrual.", + "format": "double", + "example": 2 + }, + "amountValidForTimeUnit": { + "type": "boolean" + }, + "period": { + "type": "string", + "description": "Represents automatic accrual period.", + "example": "MONTH", + "enum": [ + "MONTH", + "YEAR" + ] + }, + "timeUnit": { + "type": "string", + "description": "Represents automatic accrual time unit.", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + } + } + }, + "AutomaticLockDto": { + "type": "object", + "properties": { + "changeDay": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "changeHour": { + "type": "integer", + "format": "int32" + }, + "dayOfMonth": { + "type": "integer", + "format": "int32" + }, + "firstDay": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "olderThanPeriod": { + "type": "string", + "enum": [ + "DAYS", + "WEEKS", + "MONTHS" + ] + }, + "olderThanValue": { + "type": "integer", + "format": "int32" + }, + "timeZone": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "WEEKLY", + "MONTHLY", + "OLDER_THAN" + ] + } + } + }, + "AutomaticLockDtoV1": { + "type": "object", + "properties": { + "changeDay": { + "type": "string", + "description": "Represents a day of the week.", + "example": "FRIDAY", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "dayOfMonth": { + "type": "integer", + "description": "Represents a day of month as integer.", + "format": "int32", + "example": 15 + }, + "firstDay": { + "type": "string", + "description": "Represents a day of the week.", + "example": "MONDAY", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "olderThanPeriod": { + "type": "string", + "description": "Represents a time entry automatic lock period enum.", + "example": "DAYS", + "enum": [ + "DAYS", + "WEEKS", + "MONTHS" + ] + }, + "olderThanValue": { + "type": "integer", + "description": "Represents an integer as the criteria for locking time entries.", + "format": "int32", + "example": 5 + }, + "type": { + "type": "string", + "description": "Represents a time entry automatic lock type enum.", + "example": "WEEKLY", + "enum": [ + "WEEKLY", + "MONTHLY", + "OLDER_THAN" + ] + } + }, + "description": "Represents an automatic lock object." + }, + "AutomaticTimeEntryCreationDto": { + "type": "object", + "properties": { + "defaultEntities": { + "$ref": "#/components/schemas/DefaultEntitiesDto" + }, + "enabled": { + "type": "boolean" + } + } + }, + "AutomaticTimeEntryCreationRequest": { + "required": [ + "defaultEntities" + ], + "type": "object", + "properties": { + "defaultEntities": { + "$ref": "#/components/schemas/DefaultEntitiesRequest" + }, + "enabled": { + "type": "boolean", + "description": "Indicates that automatic time entry creation is enabled." + } + } + }, + "Balance": { + "type": "object", + "properties": { + "accrued": { + "type": "number", + "format": "double" + }, + "balance": { + "type": "number", + "format": "double" + }, + "id": { + "type": "string" + }, + "negativeBalanceAmount": { + "type": "number", + "format": "double" + }, + "negativeBalanceLimit": { + "type": "boolean" + }, + "policyArchived": { + "type": "boolean" + }, + "policyColor": { + "type": "string" + }, + "policyId": { + "type": "string" + }, + "policyName": { + "type": "string" + }, + "policyTimeUnit": { + "type": "string" + }, + "total": { + "type": "number", + "format": "double" + }, + "used": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "userImageUrl": { + "type": "string" + }, + "userInactive": { + "type": "boolean" + }, + "userName": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "BalanceDtoV1": { + "type": "object", + "properties": { + "balance": { + "type": "number", + "description": "Represents the balance amount of the time unit", + "format": "double", + "example": 20 + }, + "id": { + "type": "string", + "description": "Represent balance identifier across the system.", + "example": "5b715448b079875110792222" + }, + "negativeBalanceAmount": { + "type": "number", + "description": "Represent negative balance amount.", + "format": "double", + "example": 2 + }, + "negativeBalanceLimit": { + "type": "boolean", + "description": "Indicates whether the negative balance limit is allowed.", + "example": true + }, + "policyArchived": { + "type": "boolean", + "description": "Indicates whether the policy is archived.", + "example": false + }, + "policyId": { + "type": "string", + "description": "Represent policy identifier across the system.", + "example": "5b715448b079875110793333" + }, + "policyName": { + "type": "string", + "description": "Represent policy name.", + "example": "Days" + }, + "policyTimeUnit": { + "type": "string", + "description": "Represent policy time unit.", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "total": { + "type": "number", + "description": "Represents the total amount", + "format": "double", + "example": 18 + }, + "used": { + "type": "number", + "description": "Represents the balance used amount", + "format": "double", + "example": 2 + }, + "userId": { + "type": "string", + "description": "Represent user identifier across the system.", + "example": "5b715448b079875110791234" + }, + "userName": { + "type": "string", + "description": "Represent user's username.", + "example": "nicholas" + }, + "workspaceId": { + "type": "string", + "description": "Represent workspace identifier across the system.", + "example": "5b715448b079875110791111" + } + }, + "description": "Represent the list of balances." + }, + "BalanceHistoryDto": { + "type": "object", + "properties": { + "action": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "AUTOMATIC_APPROVAL", + "REJECTED", + "WITHDRAWN", + "MANUAL", + "AUTOMATIC" + ] + }, + "authorName": { + "type": "string" + }, + "balance": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "note": { + "type": "string" + }, + "policyId": { + "type": "string" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/PtoRequestPeriodDto" + }, + "timeUnit": { + "type": "string", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "timeZone": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "BalancesWithCount": { + "type": "object", + "properties": { + "balances": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Balance" + } + }, + "count": { + "type": "integer", + "format": "int32" + } + } + }, + "BalancesWithCountDtoV1": { + "type": "object", + "properties": { + "balances": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BalanceDtoV1" + } + }, + "count": { + "type": "integer", + "description": "Represents the count of balances.", + "format": "int32", + "example": 2 + } + } + }, + "BarChartDataDto": { + "type": "object", + "properties": { + "backgroundColor": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + } + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "hoverBackgroundColor": { + "type": "string" + }, + "label": { + "type": "string" + } + } + }, + "BillableAndCostAmountDto": { + "type": "object", + "properties": { + "billableAmount": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + }, + "costAmount": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + } + } + }, + "BillingInformationDto": { + "type": "object", + "properties": { + "amount": { + "type": "number", + "format": "double" + }, + "billingDate": { + "type": "string", + "format": "date-time" + }, + "clientSecret": { + "type": "string" + }, + "isChargeAutomatically": { + "type": "boolean" + }, + "isPaid": { + "type": "boolean", + "writeOnly": true + }, + "limitedAmount": { + "type": "number", + "format": "double" + }, + "limitedQuantity": { + "type": "integer", + "format": "int64" + }, + "nextSubscriptionType": { + "type": "string", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + }, + "paid": { + "type": "boolean" + }, + "paymentMethodId": { + "type": "string" + }, + "quantity": { + "type": "integer", + "format": "int64" + }, + "requiresAction": { + "type": "boolean" + }, + "totalAmount": { + "type": "number", + "format": "double" + }, + "type": { + "type": "string", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + }, + "upcomingPriceDetails": { + "$ref": "#/components/schemas/UpgradePriceDto" + } + } + }, + "BreakSettingsDto": { + "type": "object", + "properties": { + "breaksEnabled": { + "type": "boolean" + }, + "defaultBreakEntities": { + "$ref": "#/components/schemas/DefaultBreakEntitiesDto" + } + } + }, + "BreakSettingsRequest": { + "type": "object", + "properties": { + "breaksEnabled": { + "type": "boolean" + }, + "defaultBreakEntities": { + "$ref": "#/components/schemas/DefaultBreakEntitiesRequest" + } + } + }, + "BulkEditUsersRequest": { + "required": [ + "userIds" + ], + "type": "object", + "properties": { + "billableRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "costRate": { + "$ref": "#/components/schemas/CostRateRequest" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "statuses": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + }, + "userCustomFields": { + "type": "array", + "description": "Represents a list of upsert user custom field request.", + "items": { + "$ref": "#/components/schemas/UpsertUserCustomFieldRequest" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents a unique list of user ids.", + "example": [ + "5a0ab5acb07987125438b60f", + "98j4b5acb07987125437y32" + ], + "items": { + "type": "string", + "description": "Represents a unique list of user ids.", + "example": "[\"5a0ab5acb07987125438b60f\",\"98j4b5acb07987125437y32\"]" + } + }, + "weekStart": { + "$ref": "#/components/schemas/DayOfWeek" + }, + "workCapacity": { + "type": "string", + "description": "Represents work capacity as duration.", + "example": "50000" + }, + "workingDays": { + "$ref": "#/components/schemas/DayOfWeek" + } + } + }, + "BulkProjectEditDto": { + "type": "object", + "properties": { + "bulkTaskEditResult": { + "$ref": "#/components/schemas/BulkTaskEditResultDto" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDtoImpl" + } + } + } + }, + "BulkTaskEditResultDto": { + "type": "object", + "properties": { + "allTasksOverwrittenSuccessfully": { + "type": "boolean" + }, + "reasons": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "BulkTaskInfoRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "BulkUpdateCompaniesRequest": { + "type": "object", + "properties": { + "companies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CompanyRequest" + } + }, + "companiesForCreate": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CompanyRequest" + } + }, + "companiesForUpdate": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CompanyRequest" + } + } + } + }, + "BulkUpdateKioskDefaultsRequest": { + "type": "object", + "properties": { + "kioskIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "kiosks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskDefault" + } + }, + "projectIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "taskIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CakeAccessTokenExchangeDto": { + "type": "object", + "properties": { + "cakeAccessToken": { + "type": "string" + }, + "localAuthToken": { + "type": "string" + }, + "localRefreshToken": { + "type": "string" + }, + "selectedWorkspaceId": { + "type": "string" + } + } + }, + "CakeAuthenticationRequest": { + "required": [ + "lang" + ], + "type": "object", + "properties": { + "cakeOrganizationId": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "limboTokenRequest": { + "$ref": "#/components/schemas/LimboTokenRequest" + }, + "terms": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "timeZone": { + "type": "string" + }, + "workspaceName": { + "type": "string" + } + } + }, + "CakeExchangeTokenDto": { + "type": "object", + "properties": { + "cakeExchangeToken": { + "type": "string" + } + } + }, + "CakeMigrationInput": { + "type": "object", + "properties": { + "emails": { + "type": "array", + "items": { + "type": "string" + } + }, + "invitationWorkspaceId": { + "type": "string" + }, + "workspaceIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CakeMigrationRevertStartedRequest": { + "type": "object", + "properties": { + "workspaceIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CakeMigrationStartedRequest": { + "required": [ + "migrationInfoId", + "workspacesToLock" + ], + "type": "object", + "properties": { + "cakeMigrationInput": { + "$ref": "#/components/schemas/CakeMigrationInput" + }, + "cakeMigrationType": { + "type": "string", + "enum": [ + "MANUAL", + "AUTOMATIC" + ] + }, + "migrationInfoId": { + "type": "string" + }, + "workspacesToLock": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CakeOrganization": { + "type": "object", + "properties": { + "cakeOrganizationId": { + "type": "string" + }, + "cakeOrganizationName": { + "type": "string" + }, + "cakeOrganizationPermissions": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "CakeOrganizationMembershipDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "workspaces": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CakeWorkspaceMembershipDto" + } + } + } + }, + "CakeUserInfo": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "isTermsAccepted": { + "type": "boolean" + }, + "userName": { + "type": "string" + } + } + }, + "CakeWorkspaceMembershipDto": { + "type": "object", + "properties": { + "loggedIn": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "userStatus": { + "type": "string" + }, + "workspaceExternalId": { + "type": "string" + }, + "workspaceStatus": { + "type": "string" + } + } + }, + "CanChangePasswordResponse": { + "type": "object", + "properties": { + "canChangePassword": { + "type": "boolean" + } + } + }, + "CancellationReasonDto": { + "type": "object", + "properties": { + "additionalMessage": { + "type": "string" + }, + "initialReason": { + "type": "string" + }, + "message": { + "type": "string" + }, + "movingToAnotherTool": { + "type": "string" + }, + "noLongerNeedReason": { + "type": "string" + }, + "selectedTool": { + "type": "string" + } + } + }, + "CaptchaResponseDto": { + "type": "object", + "properties": { + "response": { + "type": "string" + }, + "version": { + "type": "string" + } + } + }, + "ChangeBalanceRequest": { + "required": [ + "userIds", + "value" + ], + "type": "object", + "properties": { + "note": { + "type": "string" + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "value": { + "maximum": 10000, + "type": "number", + "format": "double" + } + } + }, + "ChangeBalanceRequestV1": { + "required": [ + "userIds", + "value" + ], + "type": "object", + "properties": { + "note": { + "type": "string", + "description": "Represents note attached to updating balance.", + "example": "Bonus days added." + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of users' identifiers whose balance is to be updated.", + "example": [ + "5b715448b079875110792222", + "5b715448b079875110791111" + ], + "items": { + "type": "string", + "description": "Represents list of users' identifiers whose balance is to be updated.", + "example": "[\"5b715448b079875110792222\",\"5b715448b079875110791111\"]" + } + }, + "value": { + "maximum": 10000, + "minimum": -10000, + "type": "number", + "description": "Represents new balance value.", + "format": "double", + "example": 22 + } + } + }, + "ChangeEmailRequest": { + "required": [ + "email", + "passwordConfirm" + ], + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Represents email address of the user.", + "example": "johndoe@example.com" + } + } + }, + "ChangeInvoiceStatusRequest": { + "type": "object", + "properties": { + "invoiceStatus": { + "type": "string", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + } + } + }, + "ChangeInvoiceStatusRequestV1": { + "type": "object", + "properties": { + "invoiceStatus": { + "type": "string", + "description": "Represents the invoice status to be set.", + "example": "PAID", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + } + } + }, + "ChangePolicyStatusRequestV1": { + "required": [ + "status" + ], + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Provide the status you would like to use for changing the policy.", + "example": "ACTIVE", + "enum": [ + "ACTIVE", + "ARCHIVED", + "ALL" + ] + } + } + }, + "ChangeUsernameRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "ChangeWorkspaceStatusWithNotificationMarkRequest": { + "required": [ + "notificationId", + "workspaceId" + ], + "type": "object", + "properties": { + "notificationId": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "workspaceId": { + "type": "string" + } + } + }, + "CheckUsersResponse": { + "type": "object", + "properties": { + "workspaceNonMembers": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ClientDto": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "archived": { + "type": "boolean" + }, + "currencyId": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "note": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ClientDtoV1": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Represents client's address.", + "example": "Ground Floor, ABC Bldg., Palo Alto, California, USA 94020" + }, + "archived": { + "type": "boolean", + "description": "Represents whether a client is archived or not." + }, + "currencyId": { + "type": "string", + "description": "Represents currency identifier across the system.", + "example": "33t687e29ae1f428e7ebe505" + }, + "email": { + "type": "string", + "description": "Represents client email.", + "example": "clientx@example.com" + }, + "id": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "44a687e29ae1f428e7ebe305" + }, + "name": { + "type": "string", + "description": "Represents client name.", + "example": "Client X" + }, + "note": { + "type": "string", + "description": "Represents saved notes for the client.", + "example": "This is a sample note for the client." + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ClientIdsRequest": { + "type": "object", + "properties": { + "excludedIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "ids": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ClientWithCurrencyDto": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "archived": { + "type": "boolean" + }, + "currencyCode": { + "type": "string" + }, + "currencyId": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "note": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ClientWithCurrencyDtoV1": { + "type": "object", + "properties": { + "address": { + "type": "string", + "description": "Represents client's address.", + "example": "Ground Floor, ABC Bldg., Palo Alto, California, USA 94020" + }, + "archived": { + "type": "boolean", + "description": "Represents whether a client is archived or not." + }, + "currencyCode": { + "type": "string", + "description": "Represents client currency code.", + "example": "USD" + }, + "currencyId": { + "type": "string", + "description": "Represents currency identifier across the system.", + "example": "33t687e29ae1f428e7ebe505" + }, + "email": { + "type": "string", + "description": "Represents client email.", + "example": "clientx@example.com" + }, + "id": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "44a687e29ae1f428e7ebe305" + }, + "name": { + "type": "string", + "description": "Represents client name.", + "example": "Client X" + }, + "note": { + "type": "string", + "description": "Represents saved notes for the client.", + "example": "This is a sample note for the client." + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "CompanyDto": { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isDefault": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, + "CompanyRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "address": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "default": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "isDefault": { + "type": "boolean", + "writeOnly": true + }, + "name": { + "maxLength": 2147483647, + "minLength": 2, + "type": "string" + } + } + }, + "ContainsArchivedFilterRequest": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + }, + "ContainsClientsFilterRequest": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + }, + "ContainsCompaniesFilterRequest": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + }, + "ContainsFilterRequest": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents ids upon which filtering is performed.", + "example": [ + "5b715612b079875110791111", + "5b715612b079875110791222" + ], + "items": { + "type": "string", + "description": "Represents ids upon which filtering is performed.", + "example": "[\"5b715612b079875110791111\",\"5b715612b079875110791222\"]" + } + }, + "status": { + "type": "string", + "description": "Represents user status.", + "example": "ALL", + "enum": [ + "ALL", + "ACTIVE", + "INACTIVE" + ] + } + } + }, + "ContainsProjectsFilterRequest": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + }, + "ContainsUserGroupFilterRequest": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + }, + "ContainsUserGroupFilterRequestV1": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + }, + "description": "Represents a user group filter request object." + }, + "ContainsUsersFilterRequest": { + "type": "object", + "properties": { + "archivedFilterValue": { + "type": "boolean" + }, + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "sourceType": { + "type": "string", + "enum": [ + "USER_GROUP" + ] + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "statuses": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + } + }, + "ContainsUsersFilterRequestForHoliday": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "statuses": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ContainsUsersFilterRequestV1": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "description": "Filter type.", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN", + "CONTAINS_ONLY" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents a list of filter identifiers.", + "example": [ + "5a0ab5acb07987125438b60f", + "64c777ddd3fcab07cfbb210c" + ], + "items": { + "type": "string", + "description": "Represents a list of filter identifiers.", + "example": "[\"5a0ab5acb07987125438b60f\",\"64c777ddd3fcab07cfbb210c\"]" + } + }, + "sourceType": { + "type": "string", + "description": "Valid authorization source type.", + "example": "USER_GROUP", + "enum": [ + "USER_GROUP" + ] + }, + "status": { + "type": "string", + "description": "Filters entities by status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "statuses": { + "type": "array", + "description": "Valid array of membership statuses.", + "example": [ + "PENDING", + "INACTIVE" + ], + "items": { + "type": "string", + "description": "Valid array of membership statuses.", + "example": "[\"PENDING\",\"INACTIVE\"]", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + } + } + }, + "description": "Represents a user filter request object." + }, + "CopiedEntriesDto": { + "type": "object", + "properties": { + "entriesCreated": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryWithCustomFieldsDto" + } + }, + "entriesSkipped": { + "type": "integer", + "format": "int32" + } + } + }, + "CopyAssignmentRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "seriesUpdateOption": { + "type": "string", + "enum": [ + "THIS_ONE", + "THIS_AND_FOLLOWING", + "ALL" + ] + }, + "userId": { + "type": "string" + } + } + }, + "CopyAssignmentRequestV1": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "seriesUpdateOption": { + "type": "string", + "description": "Represents series update option.", + "example": "THIS_ONE", + "enum": [ + "THIS_ONE", + "THIS_AND_FOLLOWING", + "ALL" + ] + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "72k687e29ae1f428e7ebe109" + } + } + }, + "CopyEntriesRequest": { + "type": "object", + "properties": { + "dayOffset": { + "type": "integer", + "format": "int32" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "CostRateRequest": { + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "integer", + "description": "Represents an amount as integer.", + "format": "int32", + "example": 2000 + }, + "since": { + "type": "string", + "description": "Represents a datetime in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + }, + "sinceAsInstant": { + "type": "string", + "format": "date-time" + } + } + }, + "CostRateRequestV1": { + "required": [ + "amount" + ], + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "integer", + "description": "Represents an amount as integer.", + "format": "int32", + "example": 20000 + }, + "since": { + "type": "string", + "description": "Represents a date and time in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + } + } + }, + "CreateAlertRequest": { + "type": "object", + "properties": { + "alertPerson": { + "type": "string", + "enum": [ + "WORKSPACE_ADMIN", + "PROJECT_MANAGER", + "TEAM_MEMBERS" + ] + }, + "alertType": { + "type": "string", + "enum": [ + "PROJECT", + "TASK" + ] + }, + "percentage": { + "type": "number", + "format": "double" + } + } + }, + "CreateApprovalRequest": { + "required": [ + "periodStart" + ], + "type": "object", + "properties": { + "period": { + "type": "string", + "description": "Specifies the approval period. It has to match the workspace approval period setting.", + "example": "MONTHLY", + "enum": [ + "WEEKLY", + "SEMI_MONTHLY", + "MONTHLY" + ] + }, + "periodStart": { + "type": "string", + "description": "Specifies an approval period start date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00.000Z" + } + } + }, + "CreateClientRequest": { + "type": "object", + "properties": { + "address": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string" + }, + "note": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + } + } + }, + "CreateClientRequestV1": { + "type": "object", + "properties": { + "address": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents client's address.", + "example": "Ground Floor, ABC Bldg., Palo Alto, California, USA 94020" + }, + "email": { + "type": "string", + "description": "Represents client email.", + "example": "clientx@example.com" + }, + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents client name.", + "example": "Client X" + }, + "note": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents additional notes for the client.", + "example": "This is a sample note for the client." + } + } + }, + "CreateCurrencyRequest": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + }, + "CreateCustomAttributeRequest": { + "required": [ + "name", + "namespace", + "value" + ], + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Represents custom attribute name.", + "example": "race" + }, + "namespace": { + "type": "string", + "description": "Represents custom attribute namespace.", + "example": "user_info" + }, + "value": { + "type": "string", + "description": "Represents custom attribute value.", + "example": "Asian" + } + } + }, + "CreateEmailContentRequest": { + "required": [ + "body", + "subject" + ], + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + }, + "CreateExpenseRequest": { + "required": [ + "amount", + "userId" + ], + "type": "object", + "properties": { + "amount": { + "maximum": 92233720368547760, + "type": "number", + "format": "double" + }, + "billable": { + "type": "boolean" + }, + "categoryId": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time" + }, + "file": { + "type": "string", + "format": "binary" + }, + "notes": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "CreateExpenseV1Request": { + "required": [ + "amount", + "categoryId", + "date", + "file", + "projectId", + "userId" + ], + "type": "object", + "properties": { + "amount": { + "maximum": 92233720368547760, + "type": "number", + "description": "Represents expense amount as double data type.", + "format": "double", + "example": 99.5 + }, + "billable": { + "type": "boolean", + "description": "Indicates whether expense is billable or not." + }, + "categoryId": { + "type": "string", + "description": "Represents category identifier across the system.", + "example": "45y687e29ae1f428e7ebe890" + }, + "date": { + "type": "string", + "description": "Provides a valid yyyy-MM-ddThh:mm:ssZ format date.", + "format": "date-time", + "example": "2020-01-01T00:00:00Z" + }, + "file": { + "type": "string", + "format": "binary" + }, + "notes": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents notes for an expense.", + "example": "This is a sample note for this expense." + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "54m377ddd3fcab07cfbb432w" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "89b687e29ae1f428e7ebe912" + } + } + }, + "CreateFavoriteEntriesRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "REGULAR", + "BREAK", + "HOLIDAY", + "TIME_OFF" + ] + } + } + }, + "CreateFromTemplateRequest": { + "required": [ + "templateId" + ], + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "isPublic": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "templateId": { + "type": "string" + } + } + }, + "CreateHolidayRequestV1": { + "required": [ + "datePeriod", + "name" + ], + "type": "object", + "properties": { + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string", + "description": "Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#8BC34A" + }, + "datePeriod": { + "$ref": "#/components/schemas/DatePeriodRequest" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the holiday is shown to new users.", + "example": true + }, + "name": { + "maxLength": 100, + "minLength": 2, + "type": "string", + "description": "Provide the name of the holiday.", + "example": "Labour Day" + }, + "occursAnnually": { + "type": "boolean", + "description": "Indicates whether the holiday occurs annually.", + "example": true + }, + "userGroups": { + "$ref": "#/components/schemas/UserGroupIdsSchema" + }, + "users": { + "$ref": "#/components/schemas/UserIdsSchema" + } + } + }, + "CreateInvoiceDto": { + "type": "object", + "properties": { + "billFrom": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "dueDate": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "issuedDate": { + "type": "string", + "format": "date-time" + }, + "number": { + "type": "string" + } + } + }, + "CreateInvoiceDtoV1": { + "type": "object", + "properties": { + "billFrom": { + "type": "string", + "description": "Represents to whom the invoice should be billed from.", + "example": "Business X" + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "34p687e29ae1f428e7ebe562" + }, + "currency": { + "type": "string", + "description": "Represents the currency used by the invoice.", + "example": "USD" + }, + "dueDate": { + "type": "string", + "description": "Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-06-01T08:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents invoice identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "issuedDate": { + "type": "string", + "description": "Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "number": { + "type": "string", + "description": "Represents an invoice number.", + "example": "202306121129" + } + } + }, + "CreateInvoiceEmailTemplateRequest": { + "required": [ + "emailContent" + ], + "type": "object", + "properties": { + "emailContent": { + "$ref": "#/components/schemas/CreateEmailContentRequest" + }, + "invoiceEmailTemplateType": { + "type": "string" + } + } + }, + "CreateInvoiceItemTypeDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "CreateInvoiceItemTypeRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "CreateInvoicePaymentRequest": { + "type": "object", + "properties": { + "amount": { + "minimum": 1, + "type": "integer", + "description": "Represents an invoice payment amount as long.", + "format": "int64", + "example": 100 + }, + "note": { + "maxLength": 1000, + "minLength": 0, + "type": "string", + "description": "Represents an invoice payment note.", + "example": "This is a sample note for this invoice payment." + }, + "paymentDate": { + "type": "string", + "description": "Represents an invoice payment date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2021-01-01T12:00:00Z" + } + } + }, + "CreateInvoiceRequest": { + "required": [ + "clientId", + "currency", + "dueDate", + "issuedDate", + "number" + ], + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "98h687e29ae1f428e7ebe707" + }, + "currency": { + "type": "string", + "description": "Represents the currency used by the invoice.", + "example": "USD" + }, + "dueDate": { + "type": "string", + "description": "Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-06-01T08:00:00Z" + }, + "issuedDate": { + "type": "string", + "description": "Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "number": { + "type": "string", + "description": "Represents an invoice number.", + "example": "202306121129" + } + } + }, + "CreateKioskRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "defaultBreakProjectId": { + "type": "string" + }, + "defaultBreakTaskId": { + "type": "string" + }, + "defaultEntities": { + "$ref": "#/components/schemas/DefaultKioskEntitiesRequest" + }, + "defaultProjectId": { + "type": "string" + }, + "defaultTaskId": { + "type": "string" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "groups": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "name": { + "maxLength": 250, + "minLength": 2, + "pattern": "^[^!@#$%^&*()\\-_=+\\[\\]{}|;:'\",./?<>~`\u00a6\u00ac\u00a2\u00a3\u20ac\u00a5\u00a9\u00ae\u2122\u00a7\u00b0\u00b5\u03c0\u2206\u221e\u2030\u2260\u2211]+$", + "type": "string" + }, + "pin": { + "$ref": "#/components/schemas/PinSettingRequest" + }, + "sessionDuration": { + "type": "integer", + "format": "int32" + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + } + } + }, + "CreateOrganizationRequest": { + "type": "object", + "properties": { + "organizationName": { + "type": "string" + } + } + }, + "CreatePolicyRequest": { + "required": [ + "approve", + "name" + ], + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean" + }, + "allowNegativeBalance": { + "type": "boolean" + }, + "approve": { + "$ref": "#/components/schemas/ApproveDto" + }, + "archived": { + "type": "boolean" + }, + "automaticAccrual": { + "$ref": "#/components/schemas/AutomaticAccrualRequest" + }, + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceRequest" + }, + "timeUnit": { + "type": "string" + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsFilterRequest" + } + } + }, + "CreatePolicyRequestV1": { + "required": [ + "approve", + "name" + ], + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean", + "description": "Indicates whether policy allows half days.", + "example": false + }, + "allowNegativeBalance": { + "type": "boolean", + "description": "Indicates whether policy allows negative balances.", + "example": true + }, + "approve": { + "$ref": "#/components/schemas/ApproveDto" + }, + "archived": { + "type": "boolean", + "description": "Indicates whether policy is archived.", + "example": true + }, + "automaticAccrual": { + "$ref": "#/components/schemas/AutomaticAccrualRequest" + }, + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string", + "description": "Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#8BC34A" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the policy is to be applied to future new users.", + "example": false + }, + "name": { + "type": "string", + "description": "Represents name of new policy.", + "example": "Mental health days" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceRequest" + }, + "timeUnit": { + "type": "string", + "description": "Indicates time unit of the policy. ", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "userGroups": { + "$ref": "#/components/schemas/UserGroupIdsSchema" + }, + "users": { + "$ref": "#/components/schemas/UserIdsSchema" + } + } + }, + "CreateProjectRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "estimate": { + "$ref": "#/components/schemas/EstimateRequest" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "isPublic": { + "type": "boolean" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipRequest" + } + }, + "name": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskRequest" + } + } + } + }, + "CreateReminderRequest": { + "type": "object", + "properties": { + "dateRange": { + "type": "string", + "enum": [ + "DAY", + "WEEK", + "MONTH" + ] + }, + "days": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "hours": { + "minimum": 0, + "type": "number", + "format": "double" + }, + "less": { + "type": "boolean" + }, + "receivers": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + } + } + }, + "CreateSubscriptionQuantityRequest": { + "required": [ + "regularQuantity" + ], + "type": "object", + "properties": { + "limitedQuantity": { + "type": "integer", + "format": "int32" + }, + "quantity": { + "type": "integer", + "format": "int32", + "writeOnly": true + }, + "regularQuantity": { + "type": "integer", + "format": "int32" + } + } + }, + "CreateTimeEntryForManyRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "projectId": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "tagIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + } + } + }, + "CreateTimeEntryRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customAttributes": { + "maxItems": 10, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/CreateCustomAttributeRequest" + } + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "projectId": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "startAsString": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "CreateTimeOffRequestRequest": { + "required": [ + "timeOffPeriod" + ], + "type": "object", + "properties": { + "note": { + "type": "string" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriodRequest" + } + } + }, + "CreateTimeOffRequestV1Request": { + "required": [ + "timeOffPeriod" + ], + "type": "object", + "properties": { + "note": { + "type": "string", + "description": "Provide the note you would like to use for creating the time off request.", + "example": "Create Time Off Note" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriodV1Request" + } + } + }, + "CreateUserGroupRequest": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string" + } + } + }, + "CreateWebhookRequestV1": { + "required": [ + "triggerSource", + "triggerSourceType", + "url", + "webhookEvent" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 30, + "minLength": 2, + "type": "string", + "description": "Represents webhook name.", + "example": "stripe" + }, + "triggerSource": { + "type": "array", + "description": "Represents a list of trigger sources.", + "example": [ + "54a687e29ae1f428e7ebe909", + "87p187e29ae1f428e7ebej56" + ], + "items": { + "type": "string", + "description": "Represents a list of trigger sources.", + "example": "[\"54a687e29ae1f428e7ebe909\",\"87p187e29ae1f428e7ebej56\"]" + } + }, + "triggerSourceType": { + "type": "string", + "description": "Represents a webhook event trigger source type.", + "example": "PROJECT_ID", + "enum": [ + "PROJECT_ID", + "USER_ID", + "TAG_ID", + "TASK_ID", + "WORKSPACE_ID", + "USER_GROUP_ID", + "INVOICE_ID", + "ASSIGNMENT_ID", + "EXPENSE_ID" + ] + }, + "url": { + "type": "string", + "description": "Represents webhook target url.", + "example": "https://example-clockify.com/stripeEndpoint" + }, + "webhookEvent": { + "type": "string", + "description": "Represents webhook event type.", + "enum": [ + "NEW_PROJECT", + "NEW_TASK", + "NEW_CLIENT", + "NEW_TIMER_STARTED", + "TIMER_STOPPED", + "TIME_ENTRY_UPDATED", + "TIME_ENTRY_DELETED", + "NEW_TIME_ENTRY", + "NEW_TAG", + "USER_DELETED_FROM_WORKSPACE", + "USER_JOINED_WORKSPACE", + "USER_DEACTIVATED_ON_WORKSPACE", + "USER_ACTIVATED_ON_WORKSPACE", + "USER_EMAIL_CHANGED", + "USER_UPDATED", + "NEW_INVOICE", + "INVOICE_UPDATED", + "NEW_APPROVAL_REQUEST", + "APPROVAL_REQUEST_STATUS_UPDATED", + "TIME_OFF_REQUESTED", + "TIME_OFF_REQUEST_APPROVED", + "TIME_OFF_REQUEST_REJECTED", + "TIME_OFF_REQUEST_WITHDRAWN", + "BALANCE_UPDATED" + ] + } + } + }, + "CreateWorkspaceRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "organizationId": { + "type": "string" + } + } + }, + "CreateWorkspaceRequestV1": { + "type": "object", + "properties": { + "name": { + "maxLength": 50, + "minLength": 1, + "type": "string", + "description": "Represents a workspace name.", + "example": "Cool Company" + }, + "organizationId": { + "type": "string", + "description": "Organization ID for Cake Account WS sync" + } + } + }, + "CurrencyDto": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "id": { + "type": "string" + } + } + }, + "CurrencyWithAmountDto": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "currency": { + "type": "string" + } + } + }, + "CurrencyWithDefaultInfoDtoV1": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Represents currency code.", + "example": "USD" + }, + "id": { + "type": "string", + "description": "Represents currency identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "isDefault": { + "type": "boolean", + "description": "Indicates whether curency should be set as default.", + "example": true + } + }, + "description": "Represents currency with default info object." + }, + "CustomAttributeDto": { + "type": "object", + "properties": { + "entityId": { + "type": "string" + }, + "entityType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + }, + "value": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "CustomEmailsSettingsDto": { + "type": "object", + "properties": { + "errorEmail": { + "type": "string" + }, + "supportEmail": { + "type": "string" + }, + "teamEmail": { + "type": "string" + } + } + }, + "CustomEmailsSettingsRequest": { + "type": "object", + "properties": { + "errorEmail": { + "type": "string" + }, + "supportEmail": { + "type": "string" + }, + "teamEmail": { + "type": "string" + } + } + }, + "CustomFieldDefaultValuesDto": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "status": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "CustomFieldDefaultValuesDtoV1": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "status": { + "type": "string", + "description": "Represents custom field status", + "example": "VISIBLE" + }, + "value": { + "type": "object", + "description": "Represents a custom field's default value", + "example": "NA" + } + }, + "description": "Represents a list of custom field default values data transfer objects." + }, + "CustomFieldDto": { + "type": "object", + "properties": { + "allowedValues": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "entityType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "onlyAdminCanEdit": { + "type": "boolean" + }, + "placeholder": { + "type": "string" + }, + "projectDefaultValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldDefaultValuesDto" + } + }, + "required": { + "type": "boolean" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "workspaceDefaultValue": { + "type": "object" + }, + "workspaceId": { + "type": "string" + } + } + }, + "CustomFieldDtoV1": { + "type": "object", + "properties": { + "allowedValues": { + "type": "array", + "description": "Represents a list of custom field's allowed values.", + "example": [ + "NA", + "White", + "Black", + "Asian", + "Hispanic" + ], + "items": { + "type": "string", + "description": "Represents a list of custom field's allowed values.", + "example": "[\"NA\",\"White\",\"Black\",\"Asian\",\"Hispanic\"]" + } + }, + "description": { + "type": "string", + "description": "Represents custom field description.", + "example": "This field contains a user's race." + }, + "entityType": { + "type": "string", + "description": "Represents custom field entity type", + "example": "USER" + }, + "id": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "44a687e29ae1f428e7ebe305" + }, + "name": { + "type": "string", + "description": "Represents custom field name.", + "example": "race" + }, + "onlyAdminCanEdit": { + "type": "boolean", + "description": "Flag to set whether custom field is modifiable only by admin users." + }, + "placeholder": { + "type": "string", + "description": "Represents custom field placeholder value.", + "example": "Race/ethnicity" + }, + "projectDefaultValues": { + "type": "array", + "description": "Represents a list of custom field default values data transfer objects.", + "items": { + "$ref": "#/components/schemas/CustomFieldDefaultValuesDtoV1" + } + }, + "required": { + "type": "boolean", + "description": "Flag to set whether custom field is mandatory or not." + }, + "status": { + "type": "string", + "description": "Represents custom field status", + "example": "VISIBLE" + }, + "type": { + "type": "string", + "description": "Represents custom field type.", + "example": "DROPDOWN_MULTIPLE" + }, + "workspaceDefaultValue": { + "type": "object", + "description": "Represents a custom field's default value in the workspace.", + "example": "NA" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "CustomFieldFilter": { + "type": "object", + "properties": { + "empty": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "isEmpty": { + "type": "boolean", + "writeOnly": true + }, + "numberComparison": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "CustomFieldProjectDefaultValuesRequest": { + "type": "object", + "properties": { + "defaultValue": { + "type": "object", + "description": "Represents a custom field's default value.", + "example": "NA" + }, + "status": { + "type": "string", + "description": "Represents custom field status.", + "example": "VISIBLE", + "enum": [ + "INACTIVE", + "VISIBLE", + "INVISIBLE" + ] + } + } + }, + "CustomFieldRequest": { + "type": "object", + "properties": { + "allowedValues": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "entityType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "onlyAdminCanEdit": { + "type": "boolean" + }, + "placeholder": { + "type": "string" + }, + "required": { + "type": "boolean" + }, + "status": { + "type": "string", + "enum": [ + "INACTIVE", + "VISIBLE", + "INVISIBLE" + ] + }, + "type": { + "type": "string", + "enum": [ + "TXT", + "NUMBER", + "DROPDOWN_SINGLE", + "DROPDOWN_MULTIPLE", + "CHECKBOX", + "LINK" + ] + }, + "workspaceDefaultValue": { + "type": "object" + } + } + }, + "CustomFieldRequestV1": { + "required": [ + "name", + "type" + ], + "type": "object", + "properties": { + "allowedValues": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "entityType": { + "type": "string" + }, + "name": { + "type": "string" + }, + "onlyAdminCanEdit": { + "type": "boolean" + }, + "placeholder": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "TXT", + "NUMBER", + "DROPDOWN_SINGLE", + "DROPDOWN_MULTIPLE", + "CHECKBOX", + "LINK" + ] + }, + "workspaceDefaultValue": { + "type": "object", + "description": "
  • if type = NUMBER, then value must be a number
  • if type = DROPDOWN_MULTIPLE, value must be a list
  • if type = CHECKBOX, value must be true/false
  • otherwise any string
  • " + } + } + }, + "CustomFieldRequiredAvailabilityDto": { + "type": "object", + "properties": { + "allowedValues": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "entityType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "onlyAdminCanEdit": { + "type": "boolean" + }, + "placeholder": { + "type": "string" + }, + "projectDefaultValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldDefaultValuesDto" + } + }, + "required": { + "type": "boolean" + }, + "requiredStatus": { + "$ref": "#/components/schemas/CustomFieldRequiredStatusDto" + }, + "status": { + "type": "string" + }, + "type": { + "type": "string" + }, + "workspaceDefaultValue": { + "type": "object" + }, + "workspaceId": { + "type": "string" + } + } + }, + "CustomFieldRequiredStatusDto": { + "type": "object", + "properties": { + "canBeRequired": { + "type": "boolean" + }, + "reason": { + "type": "string" + } + } + }, + "CustomFieldType": { + "type": "string", + "description": "Represents custom field type.", + "enum": [ + "TXT", + "NUMBER", + "DROPDOWN_SINGLE", + "DROPDOWN_MULTIPLE", + "CHECKBOX", + "LINK" + ] + }, + "CustomFieldValueDto": { + "type": "object", + "properties": { + "customFieldId": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "44a687e29ae1f428e7ebe305" + }, + "sourceType": { + "type": "string", + "description": "Represents a custom field value source type.", + "example": "WORKSPACE", + "enum": [ + "WORKSPACE", + "PROJECT", + "TIMEENTRY" + ] + }, + "timeEntryId": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "value": { + "type": "object", + "description": "Represents custom field value.", + "example": "20231211-12345" + } + } + }, + "CustomFieldValueDtoV1": { + "type": "object", + "properties": { + "customFieldId": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "5e4117fe8c625f38930d57b7" + }, + "name": { + "type": "string", + "description": "Represents custom field name.", + "example": "TIN" + }, + "timeEntryId": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "type": { + "type": "string", + "description": "Represents a custom field value source type.", + "example": "WORKSPACE" + }, + "value": { + "type": "object", + "description": "Represents custom field value.", + "example": "20231211-12345" + } + }, + "description": "Represents a list of custom field value objects." + }, + "CustomFieldValueFullDto": { + "type": "object", + "properties": { + "customField": { + "$ref": "#/components/schemas/CustomFieldDto" + }, + "customFieldDto": { + "$ref": "#/components/schemas/CustomFieldDto" + }, + "customFieldId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sourceType": { + "type": "string" + }, + "timeEntryId": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "CustomFieldValueUpdatedInfoDto": { + "type": "object", + "properties": { + "auditMetadata": { + "$ref": "#/components/schemas/AuditMetadataDto" + }, + "customFieldId": { + "type": "string" + }, + "documentType": { + "type": "string", + "enum": [ + "TIME_ENTRY", + "TIME_ENTRY_CUSTOM_FIELD_VALUE", + "CUSTOM_ATTRIBUTE", + "EXPENSE", + "CUSTOM_FIELDS" + ] + }, + "id": { + "type": "string" + }, + "sourceType": { + "type": "string" + }, + "timeEntryId": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "CustomLabelsDto": { + "type": "object", + "properties": { + "projectGroupingLabel": { + "type": "string" + }, + "projectLabel": { + "type": "string" + }, + "taskLabel": { + "type": "string" + } + } + }, + "CustomLabelsRequest": { + "type": "object", + "properties": { + "projectGroupingLabel": { + "maxLength": 200, + "minLength": 1, + "type": "string" + }, + "projectLabel": { + "maxLength": 200, + "minLength": 1, + "type": "string" + }, + "taskLabel": { + "maxLength": 200, + "minLength": 1, + "type": "string" + } + } + }, + "CustomSupportLinksSettings": { + "type": "object", + "properties": { + "customLinks": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/Link" + } + }, + "enabled": { + "type": "boolean" + } + } + }, + "CustomSupportLinksSettingsDto": { + "type": "object", + "properties": { + "customLinks": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/LinkDto" + } + }, + "enabled": { + "type": "boolean" + } + } + }, + "CustomSupportLinksSettingsRequest": { + "type": "object", + "properties": { + "customLinks": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/LinkRequest" + } + }, + "enabled": { + "type": "boolean" + }, + "links": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/LinkRequest" + } + } + } + }, + "CustomerBillingInformationDto": { + "type": "object", + "properties": { + "accountType": { + "type": "string" + }, + "address1": { + "type": "string" + }, + "address2": { + "type": "string" + }, + "billingCountry": { + "type": "string" + }, + "city": { + "type": "string" + }, + "companyName": { + "type": "string" + }, + "country": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "email": { + "type": "string" + }, + "source": { + "type": "string" + }, + "state": { + "type": "string" + }, + "taxIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "zip": { + "type": "string" + } + } + }, + "CustomerBillingRequest": { + "type": "object", + "properties": { + "companyName": { + "type": "string" + }, + "customerId": { + "type": "string" + }, + "email": { + "type": "string" + }, + "invoiceAddress1": { + "type": "string" + }, + "invoiceAddress2": { + "type": "string" + }, + "invoiceCity": { + "type": "string" + }, + "invoiceZip": { + "type": "string" + }, + "taxIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, + "CustomerDto": { + "type": "object", + "properties": { + "countryCode": { + "type": "string" + }, + "source": { + "type": "string", + "enum": [ + "CAKE_AG", + "COING_INC", + "CAKE_INC", + "CSM_CAKE_AG" + ] + } + } + }, + "CustomerInformationDto": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "customerId": { + "type": "string" + } + } + }, + "CustomerPaymentInformationDto": { + "type": "object", + "properties": { + "cardExpMonth": { + "type": "string" + }, + "cardExpYear": { + "type": "string" + }, + "cardHolder": { + "type": "string" + }, + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "last4": { + "type": "string" + }, + "state": { + "type": "string" + }, + "street": { + "type": "string" + }, + "type": { + "type": "string" + }, + "zip": { + "type": "string" + } + } + }, + "CustomerRequest": { + "type": "object", + "properties": { + "accountType": { + "type": "string" + }, + "country": { + "type": "string" + }, + "state": { + "type": "string" + } + } + }, + "DatePeriod": { + "type": "object", + "properties": { + "endDate": { + "type": "string", + "format": "date" + }, + "startDate": { + "type": "string", + "format": "date" + } + }, + "description": "Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd" + }, + "DatePeriodRequest": { + "required": [ + "endDate", + "startDate" + ], + "type": "object", + "properties": { + "endDate": { + "type": "string", + "description": "yyyy-MM-dd format date", + "example": "2023-02-16" + }, + "startDate": { + "type": "string", + "description": "yyyy-MM-dd format date", + "example": "2023-02-14" + } + } + }, + "DateRange": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "DateRangeDto": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "DayOfWeek": { + "type": "string", + "description": "Represents a day of the week.", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "DefaultBreakEntitiesDto": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "DefaultBreakEntitiesRequest": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "DefaultEntitiesDto": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "DefaultEntitiesRequest": { + "type": "object", + "properties": { + "projectId": { + "type": "string", + "description": "Default project for automatically created time entries" + }, + "taskId": { + "type": "string", + "description": "Default task for automatically created time entries" + } + }, + "description": "Provides information about default project and task for automatically created time entries." + }, + "DefaultKioskEntitiesRequest": { + "type": "object", + "properties": { + "breakProjectId": { + "type": "string" + }, + "breakTaskId": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "DefaultWorkspaceRequest": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "DeleteCustomAttributeRequest": { + "required": [ + "name", + "namespace" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "DisableAccessRequest": { + "type": "object", + "properties": { + "accessDisabledDetails": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "entityId": { + "type": "string" + }, + "entityType": { + "type": "string", + "enum": [ + "USER", + "WORKSPACE" + ] + }, + "reason": { + "type": "string" + } + } + }, + "DisableAccessToEntitiesInTransferRequest": { + "type": "object", + "properties": { + "accessDisabledDetails": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "domainName": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "userEmails": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "DiscardStopwatchRequest": { + "type": "object", + "properties": { + "userId": { + "type": "string" + } + } + }, + "DomainDto": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "writeOnly": true + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "valid": { + "type": "boolean" + } + } + }, + "DomainDtoAndCount": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "domains": { + "type": "array", + "items": { + "$ref": "#/components/schemas/DomainDto" + } + } + } + }, + "DomainRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "valid": { + "type": "boolean" + } + } + }, + "DraftAssignmentsCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + } + } + }, + "DurationAndAmount": { + "type": "object", + "properties": { + "billable": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "billableExpenses": { + "type": "number", + "format": "double", + "writeOnly": true + }, + "expenseBillableAmount": { + "type": "number", + "format": "double" + }, + "expenseNonBillableAmount": { + "type": "number", + "format": "double" + }, + "nonBillable": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "nonBillableExpenses": { + "type": "number", + "format": "double", + "writeOnly": true + }, + "totalAmount": { + "type": "number", + "format": "double" + }, + "totalExpensesAmount": { + "type": "number", + "format": "double" + } + } + }, + "EmailAddress": { + "type": "object", + "properties": { + "address": { + "type": "string", + "writeOnly": true + } + } + }, + "EmailContentDto": { + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "subject": { + "type": "string" + } + } + }, + "EmailPreferencesDto": { + "type": "object", + "properties": { + "alerts": { + "type": "boolean" + }, + "approval": { + "type": "boolean" + }, + "longRunning": { + "type": "boolean" + }, + "onboarding": { + "type": "boolean" + }, + "pto": { + "type": "boolean" + }, + "reminders": { + "type": "boolean" + }, + "scheduledReports": { + "type": "boolean" + }, + "scheduling": { + "type": "boolean" + }, + "sendNewsletter": { + "type": "boolean" + }, + "session": { + "type": "string" + }, + "weeklyUpdates": { + "type": "boolean" + } + } + }, + "EmailSessionDto": { + "type": "object", + "properties": { + "lang": { + "type": "string" + }, + "session": { + "type": "string" + } + } + }, + "EmailUnsubscribeRequest": { + "required": [ + "key" + ], + "type": "object", + "properties": { + "key": { + "type": "string" + } + } + }, + "EmailVerificationRequest": { + "type": "object", + "properties": { + "newsletter": { + "type": "boolean", + "deprecated": true + } + } + }, + "EntityCreationPermissionsDto": { + "type": "object", + "properties": { + "whoCanCreateProjectsAndClients": { + "type": "string", + "enum": [ + "ADMINS", + "ADMINS_AND_PROJECT_MANAGERS", + "EVERYONE" + ] + }, + "whoCanCreateTags": { + "type": "string", + "enum": [ + "ADMINS", + "ADMINS_AND_PROJECT_MANAGERS", + "EVERYONE" + ] + }, + "whoCanCreateTasks": { + "type": "string", + "enum": [ + "ADMINS", + "ADMINS_AND_PROJECT_MANAGERS", + "EVERYONE" + ] + } + } + }, + "EntityIdNameDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "EstimateDto": { + "type": "object", + "properties": { + "estimate": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "type": { + "type": "string", + "enum": [ + "AUTO", + "MANUAL" + ] + } + } + }, + "EstimateDtoV1": { + "type": "object", + "properties": { + "estimate": { + "type": "string", + "description": "Represents a task duration estimate.", + "example": "PT1H30M" + }, + "type": { + "type": "string", + "description": "Represents an estimate type enum.", + "example": "AUTO", + "enum": [ + "AUTO", + "MANUAL" + ] + } + }, + "description": "Represents project estimate object." + }, + "EstimateRequest": { + "type": "object", + "properties": { + "estimate": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + }, + "description": "Represents a time duration in ISO-8601 format.", + "example": "PT1H30M" + }, + "type": { + "type": "string", + "description": "Represents an estimate type enum.", + "example": "AUTO", + "enum": [ + "AUTO", + "MANUAL" + ] + } + } + }, + "EstimateResetDto": { + "type": "object", + "properties": { + "dayOfMonth": { + "type": "integer", + "format": "int32" + }, + "dayOfWeek": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "hour": { + "type": "integer", + "format": "int32" + }, + "interval": { + "type": "string", + "enum": [ + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + }, + "month": { + "type": "string", + "enum": [ + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER" + ] + } + } + }, + "EstimateResetRequest": { + "type": "object", + "properties": { + "dayOfMonth": { + "maximum": 31, + "minimum": 1, + "type": "integer", + "description": "Represents a day of the month.", + "format": "int32", + "example": 20 + }, + "dayOfWeek": { + "type": "string", + "description": "Represents a day of the week.", + "example": "MONDAY", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "hour": { + "maximum": 23, + "minimum": 0, + "type": "integer", + "description": "Represents an hour of the day in 24 hour time format.", + "format": "int32", + "example": 15 + }, + "interval": { + "type": "string", + "description": "Represents a reset option enum.", + "example": "MONTHLY", + "enum": [ + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + }, + "month": { + "type": "string", + "description": "Represents a month enum.", + "example": "FEBRUARY", + "enum": [ + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER" + ] + } + }, + "description": "Represents estimate reset request object." + }, + "EstimateWithOptionsDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "estimate": { + "type": "integer", + "description": "Represents an estimate as long.", + "format": "int64", + "example": 600000 + }, + "includeExpenses": { + "type": "boolean", + "description": "Indicates whether estimate includes non-billable or not." + }, + "resetOption": { + "type": "string", + "description": "Represents a reset option enum.", + "example": "WEEKLY", + "enum": [ + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + }, + "type": { + "type": "string", + "description": "Represents an estimate type enum.", + "example": "AUTO", + "enum": [ + "AUTO", + "MANUAL" + ] + } + } + }, + "EstimateWithOptionsRequest": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "description": "Flag whether to set estimate as active or not." + }, + "estimate": { + "minimum": 0, + "type": "integer", + "description": "Represents an estimate as long.", + "format": "int64", + "example": 10000 + }, + "includeExpenses": { + "type": "boolean", + "description": "Flag whether to include billable expenses." + }, + "resetOption": { + "type": "string", + "description": "Represents a reset option enum.", + "example": "MONTHLY", + "enum": [ + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + }, + "type": { + "type": "string", + "description": "Represents an estimate type enum.", + "example": "AUTO", + "enum": [ + "AUTO", + "MANUAL" + ] + } + }, + "description": "Represents estimate with options request object." + }, + "ExchangeTokenRequest": { + "required": [ + "exchangeToken" + ], + "type": "object", + "properties": { + "exchangeToken": { + "type": "string" + } + } + }, + "ExchangeTokenResponse": { + "type": "object", + "properties": { + "exchangeToken": { + "type": "string" + } + } + }, + "ExpenseCategoriesWithCountDto": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + } + }, + "count": { + "type": "integer", + "format": "int32" + } + } + }, + "ExpenseCategoriesWithCountDtoV1": { + "type": "object", + "properties": { + "categories": { + "type": "array", + "description": "Represents a list of expense categories data transfer object.", + "items": { + "$ref": "#/components/schemas/ExpenseCategoryDtoV1" + } + }, + "count": { + "type": "integer", + "description": "Indicates the number of expense categories returned.", + "format": "int32", + "example": 20 + } + } + }, + "ExpenseCategoryArchiveRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + } + } + }, + "ExpenseCategoryArchiveV1Request": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Flag whether to archive the expense category or not." + } + } + }, + "ExpenseCategoryDto": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Flag that indicates whether the expense category is archived or not." + }, + "hasUnitPrice": { + "type": "boolean", + "description": "Represents whether expense category has unit price or none." + }, + "id": { + "type": "string", + "description": "Represents expense category identifier across the system.", + "example": "89a687e29ae1f428e7ebe303" + }, + "name": { + "type": "string", + "description": "Represents expense category name.", + "example": "Procurement" + }, + "priceInCents": { + "type": "integer", + "description": "Represents price in cents as integer.", + "format": "int32", + "example": 1000 + }, + "unit": { + "type": "string", + "description": "Represents expense category unit.", + "example": "piece" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ExpenseCategoryDtoV1": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Flag that indicates whether the expense category is archived or not." + }, + "hasUnitPrice": { + "type": "boolean", + "description": "Represents whether expense category has unit price or none." + }, + "id": { + "type": "string", + "description": "Represents expense category identifier across the system.", + "example": "89a687e29ae1f428e7ebe303" + }, + "name": { + "type": "string", + "description": "Represents expense category name.", + "example": "Procurement" + }, + "priceInCents": { + "type": "integer", + "description": "Represents price in cents as integer.", + "format": "int32", + "example": 1000 + }, + "unit": { + "type": "string", + "description": "Represents expense category unit.", + "example": "piece" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ExpenseCategoryRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "hasUnitPrice": { + "type": "boolean", + "writeOnly": true + }, + "name": { + "maxLength": 250, + "minLength": 0, + "type": "string" + }, + "priceInCents": { + "type": "integer", + "format": "int32" + }, + "unit": { + "type": "string" + } + } + }, + "ExpenseCategoryV1Request": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "hasUnitPrice": { + "type": "boolean", + "description": "Flag whether expense category has unit price or none." + }, + "name": { + "maxLength": 250, + "minLength": 0, + "type": "string", + "description": "Represents a valid expense category name.", + "example": "Procurement" + }, + "priceInCents": { + "type": "integer", + "description": "Represents price in cents as integer.", + "format": "int32", + "example": 1000 + }, + "unit": { + "type": "string", + "description": "Represents a valid expense category unit.", + "example": "piece" + } + } + }, + "ExpenseDailyTotalsDto": { + "type": "object", + "properties": { + "currencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "date": { + "type": "string" + }, + "dateAsInstant": { + "type": "string", + "format": "date-time" + }, + "total": { + "type": "number", + "format": "double" + } + } + }, + "ExpenseDailyTotalsDtoV1": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format.", + "example": "2020-01-01" + }, + "dateAsInstant": { + "type": "string", + "format": "date-time" + }, + "total": { + "type": "number", + "description": "Represents expense total.", + "format": "double", + "example": 1500.75 + } + }, + "description": "Represents a list of expense daily total data transfer objects." + }, + "ExpenseDeletedDto": { + "type": "object", + "properties": { + "approvalRequestWithdrawn": { + "type": "boolean" + } + } + }, + "ExpenseDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "categoryId": { + "type": "string" + }, + "date": { + "type": "string" + }, + "fileId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean", + "writeOnly": true + }, + "locked": { + "type": "boolean" + }, + "notes": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "quantity": { + "type": "number", + "format": "double" + }, + "taskId": { + "type": "string" + }, + "total": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ExpenseDtoV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether expense is billable or not." + }, + "categoryId": { + "type": "string", + "description": "Represents category identifier across the system.", + "example": "45y687e29ae1f428e7ebe890" + }, + "date": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format.", + "example": "2020-01-01" + }, + "fileId": { + "type": "string", + "description": "Represents file identifier across the system.", + "example": "745687e29ae1f428e7ebe890" + }, + "id": { + "type": "string", + "description": "Represents expense identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "isLocked": { + "type": "boolean", + "writeOnly": true + }, + "locked": { + "type": "boolean" + }, + "notes": { + "type": "string", + "description": "Represents notes for an expense.", + "example": "This is a sample note for this expense." + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "quantity": { + "type": "number", + "description": "Represents expense quantity as double data type.", + "format": "double" + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "total": { + "type": "number", + "description": "Represents expense total as double data type.", + "format": "double", + "example": 10500.5 + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "89b687e29ae1f428e7ebe912" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ExpenseHydratedDto": { + "type": "object", + "properties": { + "approvalRequestId": { + "type": "string", + "description": "Represents approval request identifier across the system.", + "example": "445687e29ae1f428e7ebe893" + }, + "approvalStatus": { + "type": "string", + "description": "Represents the approval status of the expense", + "example": "PENDING", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + }, + "billable": { + "type": "boolean", + "description": "Indicates whether expense is billable or not." + }, + "category": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + }, + "currency": { + "type": "string", + "description": "Represents a currency.", + "example": "USD" + }, + "date": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format.", + "example": "2020-01-01" + }, + "fileId": { + "type": "string", + "description": "Represents file identifier across the system.", + "example": "745687e29ae1f428e7ebe890" + }, + "fileName": { + "type": "string", + "description": "Represents file name.", + "example": "file_12345.csv" + }, + "id": { + "type": "string", + "description": "Represents expense identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "isLocked": { + "type": "boolean", + "writeOnly": true + }, + "locked": { + "type": "boolean" + }, + "notes": { + "type": "string", + "description": "Represents notes for an expense.", + "example": "This is a sample note for this expense." + }, + "project": { + "$ref": "#/components/schemas/ProjectInfoDto" + }, + "quantity": { + "type": "number", + "description": "Represents expense quantity as double data type.", + "format": "double" + }, + "task": { + "$ref": "#/components/schemas/TaskInfoDto" + }, + "total": { + "type": "number", + "description": "Represents expense total as double data type.", + "format": "double", + "example": 10500.5 + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "89b687e29ae1f428e7ebe912" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ExpenseHydratedDtoV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether expense is billable or not." + }, + "category": { + "$ref": "#/components/schemas/ExpenseCategoryDto" + }, + "date": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format.", + "example": "89b687e29ae1f428e7ebe912" + }, + "fileId": { + "type": "string", + "description": "Represents file identifier across the system.", + "example": "745687e29ae1f428e7ebe890" + }, + "fileName": { + "type": "string", + "description": "Represents file name.", + "example": "expense_20200101" + }, + "id": { + "type": "string", + "description": "Represents expense identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "isLocked": { + "type": "boolean", + "writeOnly": true + }, + "locked": { + "type": "boolean" + }, + "notes": { + "type": "string", + "description": "Represents notes for an expense.", + "example": "This is a sample note for this expense." + }, + "project": { + "$ref": "#/components/schemas/ProjectInfoDto" + }, + "quantity": { + "type": "number", + "description": "Represents expense quantity as double data type.", + "format": "double" + }, + "task": { + "$ref": "#/components/schemas/TaskInfoDto" + }, + "total": { + "type": "number", + "description": "Represents expense total as double data type.", + "format": "double", + "example": 10500.5 + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "89b687e29ae1f428e7ebe912" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + }, + "description": "Represent a list of hydrated expense objects." + }, + "ExpensePeriodTotalsDto": { + "type": "object", + "properties": { + "currencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "date": { + "type": "string" + }, + "dateAsInstant": { + "type": "string", + "format": "date-time" + }, + "dateRange": { + "$ref": "#/components/schemas/DateRange" + }, + "total": { + "type": "number", + "format": "double" + } + } + }, + "ExpenseWeekApprovalStatusDto": { + "type": "object", + "properties": { + "approvalRequestId": { + "type": "string" + }, + "approvedCount": { + "type": "integer", + "format": "int64" + }, + "currencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "dateRange": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "expensesCount": { + "type": "integer", + "format": "int64" + }, + "hasUnSubmitted": { + "type": "boolean" + }, + "status": { + "type": "string" + }, + "submitterName": { + "type": "string" + }, + "total": { + "type": "number", + "format": "double" + }, + "unsubmittedExpensesCount": { + "type": "integer", + "format": "int64" + } + } + }, + "ExpenseWeeklyTotalsDtoV1": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format.", + "example": "2020-01-01" + }, + "total": { + "type": "number", + "description": "Represents expense total.", + "format": "double", + "example": 20000.75 + } + }, + "description": "Represents a list of expense weekly total data transfer objects." + }, + "ExpenseWithApprovalRequestUpdatedDto": { + "type": "object", + "properties": { + "approvalRequestWithdrawn": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "categoryId": { + "type": "string" + }, + "date": { + "type": "string" + }, + "fileId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean", + "writeOnly": true + }, + "locked": { + "type": "boolean" + }, + "notes": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "quantity": { + "type": "number", + "format": "double" + }, + "taskId": { + "type": "string" + }, + "total": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ExpensesAndTotalsDto": { + "type": "object", + "properties": { + "approvalPeriod": { + "type": "string", + "enum": [ + "WEEKLY", + "SEMI_MONTHLY", + "MONTHLY" + ] + }, + "dailyTotals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseDailyTotalsDto" + } + }, + "expenses": { + "$ref": "#/components/schemas/ExpensesWithCountDto" + }, + "periodStatusMap": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/ExpenseWeekApprovalStatusDto" + } + }, + "periodTotals": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpensePeriodTotalsDto" + } + }, + "weeklyStatusMap": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/ExpenseWeekApprovalStatusDto" + }, + "deprecated": true + }, + "weeklyTotals": { + "type": "array", + "deprecated": true, + "items": { + "$ref": "#/components/schemas/ExpensePeriodTotalsDto" + } + } + } + }, + "ExpensesAndTotalsDtoV1": { + "type": "object", + "properties": { + "dailyTotals": { + "type": "array", + "description": "Represents a list of expense daily total data transfer objects.", + "items": { + "$ref": "#/components/schemas/ExpenseDailyTotalsDtoV1" + } + }, + "expenses": { + "$ref": "#/components/schemas/ExpensesWithCountDtoV1" + }, + "weeklyTotals": { + "type": "array", + "description": "Represents a list of expense weekly total data transfer objects.", + "items": { + "$ref": "#/components/schemas/ExpenseWeeklyTotalsDtoV1" + } + } + } + }, + "ExpensesIdsRequest": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ExpensesWithCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32" + }, + "expenses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ExpenseHydratedDto" + } + } + } + }, + "ExpensesWithCountDtoV1": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Represent result count.", + "format": "int32", + "example": 25 + }, + "expenses": { + "type": "array", + "description": "Represent a list of hydrated expense objects.", + "items": { + "$ref": "#/components/schemas/ExpenseHydratedDtoV1" + } + } + }, + "description": "Represents an expense with count data transfer object." + }, + "FavoriteTimeEntryFullDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "client": { + "$ref": "#/components/schemas/ClientDto" + }, + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDto" + } + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "order": { + "type": "integer", + "format": "int32" + }, + "project": { + "$ref": "#/components/schemas/ProjectDtoImpl" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + }, + "task": { + "$ref": "#/components/schemas/TaskDtoImpl" + }, + "type": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/UserDto" + }, + "workspaceId": { + "type": "string" + } + } + }, + "Feature": { + "type": "array", + "description": "Represents a list of features.", + "example": [ + "ADD_TIME_FOR_OTHERS", + "ADMIN_PANEL", + "ALERTS", + "APPROVAL" + ], + "items": { + "type": "string", + "enum": [ + "ADD_TIME_FOR_OTHERS", + "ADMIN_PANEL", + "ALERTS", + "APPROVAL", + "AUDIT_LOG", + "AUTOMATIC_LOCK", + "BRANDED_REPORTS", + "BULK_EDIT", + "CUSTOM_FIELDS", + "CUSTOM_REPORTING", + "CUSTOM_SUBDOMAIN", + "DECIMAL_FORMAT", + "DISABLE_MANUAL_MODE", + "EDIT_MEMBER_PROFILE", + "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE", + "EXPENSES", + "FILE_IMPORT", + "HIDE_PAGES", + "HISTORIC_RATES", + "INVOICING", + "INVOICE_EMAILS", + "LABOR_COST", + "LOCATIONS", + "MANAGER_ROLE", + "MULTI_FACTOR_AUTHENTICATION", + "PROJECT_BUDGET", + "PROJECT_TEMPLATES", + "QUICKBOOKS_INTEGRATION", + "RECURRING_ESTIMATES", + "REQUIRED_FIELDS", + "SCHEDULED_REPORTS", + "SCHEDULING", + "SCREENSHOTS", + "SSO", + "SUMMARY_ESTIMATE", + "TARGETS_AND_REMINDERS", + "TASK_RATES", + "TIME_OFF", + "UNLIMITED_REPORTS", + "USER_CUSTOM_FIELDS", + "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY", + "BREAKS", + "KIOSK_SESSION_DURATION", + "KIOSK_PIN_REQUIRED", + "WHO_CAN_SEE_ALL_TIME_ENTRIES", + "WHO_CAN_SEE_PROJECT_STATUS", + "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES", + "WHO_CAN_SEE_TEAMS_DASHBOARD", + "WORKSPACE_LOCK_TIMEENTRIES", + "WORKSPACE_TIME_AUDIT", + "WORKSPACE_TIME_ROUNDING", + "KIOSK", + "FORECASTING", + "TIME_TRACKING", + "ATTENDANCE_REPORT", + "WORKSPACE_TRANSFER", + "FAVORITE_ENTRIES", + "SPLIT_TIME_ENTRY", + "CLIENT_CURRENCY", + "SCHEDULING_FORECASTING" + ] + } + }, + "FeatureSubscriptionType": { + "type": "string", + "description": "Represents a feature subscription type enum.", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + }, + "FeatureSubscriptionsDto": { + "type": "object", + "properties": { + "endDate": { + "type": "string", + "format": "date-time" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "TERMINATED", + "PAST_DUE" + ] + }, + "type": { + "type": "string", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + } + } + }, + "FetchCustomAttributesRequest": { + "required": [ + "customAttributes", + "namespace" + ], + "type": "object", + "properties": { + "customAttributes": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "entityType": { + "type": "string" + }, + "namespace": { + "type": "string" + } + } + }, + "FileImportRequest": { + "type": "object", + "properties": { + "importDataId": { + "type": "string" + } + } + }, + "FilterActivitiesRequest": { + "type": "object", + "properties": { + "activityTypes": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "userEmails": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "FinishBreakRequest": { + "required": [ + "clockIn" + ], + "type": "object", + "properties": { + "clockIn": { + "$ref": "#/components/schemas/KioskEntryRequest" + }, + "clockInRequest": { + "$ref": "#/components/schemas/KioskEntryRequest" + }, + "finishBreak": { + "$ref": "#/components/schemas/KioskEntryRequest" + }, + "finishBreakRequest": { + "$ref": "#/components/schemas/KioskEntryRequest" + } + } + }, + "GetApprovalTotalsRequest": { + "type": "object", + "properties": { + "end": { + "type": "string" + }, + "start": { + "type": "string" + } + } + }, + "GetApprovalsRequest": { + "type": "object", + "properties": { + "group-by": { + "type": "string", + "writeOnly": true, + "x-go-name": "Groupby" + }, + "groupBy": { + "type": "string", + "x-go-name": "Groupby1" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "offset": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32", + "writeOnly": true + }, + "page-size": { + "type": "integer", + "format": "int32", + "writeOnly": true, + "x-go-name": "Pagesize" + }, + "pageSize": { + "type": "integer", + "format": "int32", + "x-go-name": "Pagesize1" + }, + "states": { + "type": "array", + "items": { + "type": "string" + } + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "GetCountRequest": { + "type": "object", + "properties": { + "states": { + "type": "array", + "items": { + "type": "string" + } + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "GetDraftCountRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "search": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "viewType": { + "type": "string", + "enum": [ + "PROJECTS", + "TEAM", + "ALL" + ] + } + } + }, + "GetMainReportRequest": { + "type": "object", + "properties": { + "access": { + "type": "string", + "enum": [ + "ME", + "TEAM" + ] + }, + "endDate": { + "type": "string" + }, + "startDate": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "PROJECT", + "BILLABILITY" + ] + }, + "zoomLevel": { + "type": "string", + "enum": [ + "WEEK", + "MONTH", + "YEAR" + ] + } + } + }, + "GetProjectsAuthorizationsForUserRequest": { + "required": [ + "projectIds" + ], + "type": "object", + "properties": { + "projectIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GetTimeOffRequestsRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "limit": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "offset": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "page": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "pageSize": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "status": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + }, + "statuses": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "REJECTED", + "ALL" + ] + } + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsFilterRequest" + } + } + }, + "GetTimeOffRequestsV1Request": { + "type": "object", + "properties": { + "end": { + "type": "string", + "description": "Return time off requests created before the specified time in requester's time zone. Provide end in format YYYY-MM-DDTHH:MM:SS.ssssssZ", + "format": "date-time", + "example": "2022-08-26T23:55:06.281873Z" + }, + "page": { + "maximum": 1000, + "type": "integer", + "description": "Page number.", + "format": "int32", + "example": 1, + "default": 1 + }, + "pageSize": { + "maximum": 200, + "type": "integer", + "description": "Page size.", + "format": "int32", + "example": 50, + "default": 50 + }, + "start": { + "type": "string", + "description": "Return time off requests created after the specified time in requester's time zone. Provide start in format YYYY-MM-DDTHH:MM:SS.ssssssZ", + "format": "date-time", + "example": "2022-08-26T08:00:06.281873Z" + }, + "statuses": { + "type": "string", + "description": "Filters time off requests by status.", + "example": "[\"APPROVED\",\"PENDING\"]", + "enum": [ + "PENDING", + "APPROVED", + "REJECTED", + "ALL" + ] + }, + "userGroups": { + "uniqueItems": true, + "type": "array", + "description": "Provide the user group ids of time off requests.", + "example": [ + "5b715612b079875110791342", + "5b715612b079875110791324", + "5b715612b079875110793142" + ], + "items": { + "type": "string", + "description": "Provide the user group ids of time off requests.", + "example": "[\"5b715612b079875110791342\",\"5b715612b079875110791324\",\"5b715612b079875110793142\"]" + } + }, + "users": { + "uniqueItems": true, + "type": "array", + "description": "Provide the user ids of time off requests. If empty, will return time off requests of all users (with a maximum of 5000 users).", + "example": [ + "5b715612b079875110791432", + "b715612b079875110791234" + ], + "items": { + "type": "string", + "description": "Provide the user ids of time off requests. If empty, will return time off requests of all users (with a maximum of 5000 users).", + "example": "[\"5b715612b079875110791432\",\"b715612b079875110791234\"]" + } + } + } + }, + "GetTimelineRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "forceFilter": { + "type": "boolean" + }, + "requestStatuses": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "start": { + "type": "string", + "format": "date-time" + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsFilterRequest" + } + } + }, + "GetUnsubmittedEntriesDurationRequest": { + "type": "object", + "properties": { + "end": { + "type": "string" + }, + "showUsers": { + "type": "string", + "enum": [ + "TRACKED", + "UNTRACKED", + "ALL" + ] + }, + "start": { + "type": "string" + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "GetUserGroupByIdsRequest": { + "type": "object", + "properties": { + "excludeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GetUserTotalsRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "page-size": { + "type": "integer", + "format": "int32", + "writeOnly": true, + "x-go-name": "Pagesize" + }, + "pageSize": { + "type": "integer", + "format": "int32", + "x-go-name": "Pagesize1" + }, + "search": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "statusFilter": { + "type": "string", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ] + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "GetUserTotalsRequestV1": { + "required": [ + "end", + "start" + ], + "type": "object", + "properties": { + "end": { + "type": "string", + "description": "Represents end date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2021-01-01T00:00:00Z" + }, + "page": { + "type": "integer", + "description": "Page number.", + "format": "int32", + "example": 1 + }, + "pageSize": { + "maximum": 200, + "type": "integer", + "description": "Page size.", + "format": "int32", + "example": 50 + }, + "search": { + "type": "string", + "description": "Represents keyword for searching users by name or email.", + "example": "keyword" + }, + "start": { + "type": "string", + "description": "Represents start date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T00:00:00Z" + }, + "statusFilter": { + "type": "string", + "description": "Filters assignments by status.", + "example": "PUBLISHED", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ] + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequestV1" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequestV1" + } + } + }, + "GetUsersByIdsRequest": { + "type": "object", + "properties": { + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GetUsersRequestV1": { + "type": "object", + "properties": { + "accountStatuses": { + "uniqueItems": true, + "type": "array", + "description": "If provided, you'll get a filtered list of users with the corresponding account status filter. If not, this will only filter ACTIVE, PENDING_EMAIL_VERIFICATION, and NOT_REGISTERED Users.", + "example": [ + "LIMITED", + "ACTIVE" + ], + "items": { + "type": "string", + "description": "If provided, you'll get a filtered list of users with the corresponding account status filter. If not, this will only filter ACTIVE, PENDING_EMAIL_VERIFICATION, and NOT_REGISTERED Users.", + "example": "[\"LIMITED\",\"ACTIVE\"]" + } + }, + "email": { + "type": "string", + "description": "If provided, you'll get a filtered list of users that contain the provided string in their email address.", + "example": "mail@example.com" + }, + "includeRoles": { + "type": "boolean", + "description": "If you pass along includeRoles=true, you'll get each user's detailed manager role (including projects and members for whom they're managers)" + }, + "memberships": { + "type": "string", + "description": "If provided, you'll get all users along with workspaces, groups, or projects they have access to.", + "example": "NONE", + "enum": [ + "ALL", + "NONE", + "WORKSPACE", + "PROJECT", + "USERGROUP" + ], + "default": "NONE" + }, + "name": { + "type": "string", + "description": "If provided, you'll get a filtered list of users that contain the provided string in their name.", + "example": "John" + }, + "page": { + "type": "integer", + "description": "Page number.", + "format": "int32", + "example": 1 + }, + "pageSize": { + "type": "integer", + "description": "Page size.", + "format": "int32", + "example": 50 + }, + "projectId": { + "type": "string", + "description": "If provided, you'll get a list of users that have access to the project.", + "example": "21a687e29ae1f428e7ebe606" + }, + "roles": { + "uniqueItems": true, + "type": "array", + "description": "If provided, you'll get a filtered list of users that have any of the specified roles. Owners are counted as admins when filtering.", + "example": [ + "WORKSPACE_ADMIN", + "OWNER" + ], + "items": { + "type": "string", + "description": "If provided, you'll get a filtered list of users that have any of the specified roles. Owners are counted as admins when filtering.", + "example": "[\"WORKSPACE_ADMIN\",\"OWNER\"]", + "enum": [ + "WORKSPACE_ADMIN", + "OWNER", + "TEAM_MANAGER", + "PROJECT_MANAGER" + ] + } + }, + "sortColumn": { + "type": "string", + "description": "Sorting criteria", + "example": "ID", + "enum": [ + "ID", + "EMAIL", + "NAME", + "NAME_LOWERCASE", + "ACCESS", + "HOURLYRATE", + "COSTRATE" + ] + }, + "sortOrder": { + "type": "string", + "description": "Sorting mode", + "example": "ASCENDING", + "enum": [ + "ASCENDING", + "DESCENDING" + ] + }, + "status": { + "type": "string", + "description": "If provided, you'll get a filtered list of users with the corresponding status.", + "example": "ACTIVE", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "userGroups": { + "uniqueItems": true, + "type": "array", + "description": "If provided, you'll get a list of users that belong to the specified user group IDs.", + "example": [ + "5a0ab5acb07987125438b60f", + "72wab5acb07987125438b564" + ], + "items": { + "type": "string", + "description": "If provided, you'll get a list of users that belong to the specified user group IDs.", + "example": "[\"5a0ab5acb07987125438b60f\",\"72wab5acb07987125438b564\"]" + } + } + } + }, + "GetWorkspacesAuthorizationsForUserRequest": { + "type": "object", + "properties": { + "workspaceIds": { + "maxItems": 250, + "minItems": 1, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "GoogleAnalyticsEventUserProperties": { + "required": [ + "clientId" + ], + "type": "object", + "properties": { + "clientId": { + "type": "string", + "x-go-name": "Clientid" + }, + "client_id": { + "type": "string", + "writeOnly": true, + "x-go-name": "Clientid1" + }, + "userId": { + "type": "string", + "x-go-name": "Userid" + }, + "user_id": { + "type": "string", + "writeOnly": true, + "x-go-name": "Userid1" + }, + "workspaceId": { + "type": "string", + "x-go-name": "Workspaceid" + }, + "workspace_id": { + "type": "string", + "writeOnly": true, + "x-go-name": "Workspaceid1" + } + } + }, + "GroupsAndCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupDto" + } + } + } + }, + "HolidayDto": { + "type": "object", + "properties": { + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationDto" + }, + "color": { + "type": "string", + "description": "Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#8BC34A" + }, + "datePeriod": { + "$ref": "#/components/schemas/DatePeriod" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the holiday is shown to new users.", + "example": false + }, + "id": { + "type": "string", + "description": "Represents holiday identifier across the system.", + "example": "5b715612b079875110791111" + }, + "name": { + "type": "string", + "description": "Represents the name of the holiday.", + "example": "New Year's Day" + }, + "occursAnnually": { + "type": "boolean", + "description": "Indicates whether the holiday occurs annually.", + "example": true + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "description": "Indicates which user groups are included.", + "example": [ + "5b715612b079875110791342", + "5b715612b079875110791324", + "5b715612b079875110793142" + ], + "items": { + "type": "string", + "description": "Indicates which user groups are included.", + "example": "[\"5b715612b079875110791342\",\"5b715612b079875110791324\",\"5b715612b079875110793142\"]" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "description": "Indicates which users are included.", + "example": [ + "5b715612b079875110791432", + "5b715612b079875110791234" + ], + "items": { + "type": "string", + "description": "Indicates which users are included.", + "example": "[\"5b715612b079875110791432\",\"5b715612b079875110791234\"]" + } + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "5b715612b079875110792222" + } + } + }, + "HolidayDtoV1": { + "type": "object", + "properties": { + "automaticTimeEntryCreation": { + "type": "boolean", + "description": "Indicates that time entries will be automatically created for this holiday.", + "example": false + }, + "datePeriod": { + "$ref": "#/components/schemas/DatePeriod" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the holiday is shown to new users.", + "example": false + }, + "id": { + "type": "string", + "description": "Represents holiday identifier across the system.", + "example": "5b715612b079875110791111" + }, + "name": { + "type": "string", + "description": "Represents the name of the holiday.", + "example": "New Year's Day" + }, + "occursAnnually": { + "type": "boolean", + "description": "Indicates whether the holiday occurs annually.", + "example": true + }, + "projectId": { + "type": "string", + "description": "Represents projectId for automatic time entry creation.", + "example": "65b36d3c525e243c48f9150f" + }, + "taskId": { + "type": "string", + "description": "Represents taskId for automatic time entry creation.", + "example": "65b36d46fa3df8607e42d21a" + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "description": "Indicates which user groups are included.", + "example": [ + "5b715612b079875110791342", + "5b715612b079875110791324", + "5b715612b079875110793142" + ], + "items": { + "type": "string", + "description": "Indicates which user groups are included.", + "example": "[\"5b715612b079875110791342\",\"5b715612b079875110791324\",\"5b715612b079875110793142\"]" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "description": "Indicates which users are included.", + "example": [ + "5b715612b079875110791432", + "5b715612b079875110791234" + ], + "items": { + "type": "string", + "description": "Indicates which users are included.", + "example": "[\"5b715612b079875110791432\",\"5b715612b079875110791234\"]" + } + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "5b715612b079875110792222" + } + } + }, + "HolidayProjection": { + "type": "object", + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "HolidayRequest": { + "required": [ + "datePeriod", + "name" + ], + "type": "object", + "properties": { + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "automaticTimeEntryCreationEnabled": { + "type": "boolean" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "datePeriod": { + "$ref": "#/components/schemas/DatePeriodRequest" + }, + "datePeriodRequest": { + "$ref": "#/components/schemas/DatePeriodRequest" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "name": { + "maxLength": 100, + "minLength": 2, + "type": "string" + }, + "occursAnnually": { + "type": "boolean" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequestForHoliday" + } + } + }, + "HourlyRateDtoV1": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an amount as integer.", + "format": "int32", + "example": 10500 + }, + "currency": { + "type": "string", + "description": "Represents a currency.", + "example": "USD" + } + }, + "description": "Represents an hourly rate object." + }, + "HourlyRateRequest": { + "required": [ + "amount" + ], + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "integer", + "description": "Represents a cost rate amount as integer.", + "format": "int32", + "example": 20000 + }, + "since": { + "type": "string", + "description": "Represents a datetime in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + } + } + }, + "HourlyRateRequestV1": { + "required": [ + "amount" + ], + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "integer", + "description": "Represents an hourly rate amount as integer.", + "format": "int32", + "example": 20000 + }, + "since": { + "type": "string", + "description": "Represents a date and time in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + } + } + }, + "IdNamePairDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ImportTimeEntriesAndExpensesRequest": { + "type": "object", + "properties": { + "expenseDescriptionConfig": { + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + }, + "expenseDescriptionConfigs": { + "type": "array", + "items": { + "type": "string" + } + }, + "expensesGroupBy": { + "type": "string" + }, + "expensesGroupType": { + "type": "string" + }, + "fieldsForDetailed": { + "type": "array", + "items": { + "type": "string" + } + }, + "from": { + "type": "string" + }, + "groupEntries": { + "type": "string" + }, + "includeExpenses": { + "type": "boolean" + }, + "primaryGroupBy": { + "type": "string" + }, + "projectsFilter": { + "$ref": "#/components/schemas/ContainsProjectsFilterRequest" + }, + "roundEntries": { + "type": "boolean", + "writeOnly": true + }, + "roundEntryDuration": { + "type": "boolean" + }, + "secondaryGroupBy": { + "type": "string" + }, + "to": { + "type": "string" + } + } + }, + "InitialPriceRequest": { + "required": [ + "quantity", + "type" + ], + "type": "object", + "properties": { + "address1": { + "type": "string" + }, + "city": { + "type": "string" + }, + "country": { + "type": "string" + }, + "customerExists": { + "type": "boolean" + }, + "customerType": { + "type": "string" + }, + "limitedQuantity": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "quantity": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "source": { + "type": "string" + }, + "state": { + "type": "string" + }, + "taxIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "type": { + "type": "string" + }, + "zip": { + "type": "string" + } + } + }, + "IntegrationPublicKeyDto": { + "type": "object", + "properties": { + "publicKey": { + "type": "string" + } + } + }, + "IntegrationTokenDto": { + "type": "object", + "properties": { + "integrationToken": { + "type": "string" + } + } + }, + "InvalidateTokenRequest": { + "required": [ + "refreshToken", + "token" + ], + "type": "object", + "properties": { + "refreshToken": { + "type": "string" + }, + "token": { + "type": "string" + } + } + }, + "InvisibleReCaptchaRequest": { + "type": "object", + "properties": { + "captchaValue": { + "$ref": "#/components/schemas/CaptchaResponseDto" + } + } + }, + "InvitationDto": { + "type": "object", + "properties": { + "cakeOrganizationId": { + "type": "string" + }, + "cakeOrganizationName": { + "type": "string" + }, + "creation": { + "type": "string", + "format": "date-time" + }, + "invitationCode": { + "type": "string" + }, + "invitationId": { + "type": "string" + }, + "invitedBy": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "notificationId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceDetail": { + "$ref": "#/components/schemas/WorkspaceDetailDto" + }, + "workspaceId": { + "type": "string", + "deprecated": true + }, + "workspaceImageUrl": { + "type": "string", + "deprecated": true + }, + "workspaceName": { + "type": "string", + "deprecated": true + } + } + }, + "InvitedEmailsInfo": { + "type": "object", + "properties": { + "alreadyInvitedEmails": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "invalidEmails": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "InvitedUserDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "invitation": { + "$ref": "#/components/schemas/InvitationDto" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "userInfo": { + "$ref": "#/components/schemas/CakeUserInfo" + } + } + }, + "InvoiceDefaultSettingsDto": { + "type": "object", + "properties": { + "companyId": { + "type": "string", + "description": "Represents company identifier across the system.", + "example": "34a687e29ae1f428e7ebe101" + }, + "defaultImportExpenseItemTypeId": { + "type": "string", + "description": "Represents item type identifier across the system.", + "example": "88a687e29ae1f428e7ebe303" + }, + "defaultImportTimeItemTypeId": { + "type": "string", + "description": "Represents item type identifier across the system.", + "example": "18a687e29ae1f428e7ebe303" + }, + "dueDays": { + "type": "integer", + "description": "Represents an invoice number of due days.", + "format": "int32", + "example": 2 + }, + "itemType": { + "type": "string", + "writeOnly": true + }, + "itemTypeId": { + "type": "string", + "description": "Represents item type identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "notes": { + "type": "string", + "description": "Represents an invoice note.", + "example": "This is a sample note for this invoice." + }, + "subject": { + "type": "string", + "description": "Represents an invoice subject.", + "example": "January salary" + }, + "tax": { + "type": "integer", + "format": "int64", + "deprecated": true + }, + "tax2": { + "type": "integer", + "format": "int64", + "deprecated": true + }, + "tax2Percent": { + "type": "number", + "description": "Represents a tax amount in percentage.", + "format": "double", + "example": 1 + }, + "taxPercent": { + "type": "number", + "description": "Represents a tax amount in percentage.", + "format": "double", + "example": 5 + }, + "taxType": { + "type": "string", + "description": "Represents a tax type.", + "example": "COMPOUND", + "enum": [ + "COMPOUND", + "SIMPLE", + "NONE" + ] + } + } + }, + "InvoiceDefaultSettingsRequest": { + "required": [ + "notes", + "subject" + ], + "type": "object", + "properties": { + "companyId": { + "type": "string" + }, + "dueDays": { + "type": "integer", + "format": "int32" + }, + "itemTypeId": { + "type": "string" + }, + "notes": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "tax2Percent": { + "type": "number", + "format": "double" + }, + "taxPercent": { + "type": "number", + "format": "double" + }, + "taxType": { + "type": "string", + "enum": [ + "COMPOUND", + "SIMPLE", + "NONE" + ] + } + } + }, + "InvoiceDefaultSettingsRequestV1": { + "required": [ + "notes", + "subject" + ], + "type": "object", + "properties": { + "companyId": { + "type": "string", + "description": "Represents company identifier across the system.", + "example": "34a687e29ae1f428e7ebe101" + }, + "dueDays": { + "type": "integer", + "description": "Represents an invoice number of due days.", + "format": "int32", + "example": 2 + }, + "itemTypeId": { + "type": "string", + "description": "Represents item type identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "notes": { + "type": "string", + "description": "Represents an invoice note.", + "example": "This is a sample note for this invoice." + }, + "subject": { + "type": "string", + "description": "Represents an invoice subject.", + "example": "January salary" + }, + "tax2Percent": { + "type": "number", + "description": "Represents a tax amount in percentage.", + "format": "double", + "example": 5 + }, + "taxPercent": { + "type": "number", + "description": "Represents a tax amount in percentage.", + "format": "double", + "example": 5 + }, + "taxType": { + "type": "string", + "description": "Represents a tax type.", + "example": "COMPOUND", + "enum": [ + "COMPOUND", + "SIMPLE", + "NONE" + ] + } + }, + "description": "Represents an invoice default settings object." + }, + "InvoiceDtoV1": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an invoice amount as long.", + "format": "int64", + "example": 100 + }, + "balance": { + "type": "integer", + "description": "Represents an invoice balance amount as long.", + "format": "int64", + "example": 50 + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "98h687e29ae1f428e7ebe707" + }, + "clientName": { + "type": "string", + "description": "Represents client name for an invoice.", + "example": "Client X" + }, + "currency": { + "type": "string", + "description": "Represents the currency used by the invoice.", + "example": "USD" + }, + "dueDate": { + "type": "string", + "description": "Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-06-01T08:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents invoice identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "issuedDate": { + "type": "string", + "description": "Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "number": { + "type": "string", + "description": "Represents an invoice number.", + "example": "202306121129" + }, + "paid": { + "type": "integer", + "description": "Represents an invoice paid amount as long.", + "format": "int64", + "example": 50 + }, + "status": { + "type": "string", + "description": "Represents the status of an invoice.", + "example": "PAID", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + } + }, + "description": "Represents a list of invoices." + }, + "InvoiceEmailDataDto": { + "required": [ + "body", + "fromEmail", + "subject", + "toEmail" + ], + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "fromEmail": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "toEmail": { + "type": "string" + } + } + }, + "InvoiceEmailDataRequest": { + "required": [ + "body", + "subject" + ], + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "toEmail": { + "type": "string" + } + } + }, + "InvoiceEmailLinkDto": { + "type": "object", + "properties": { + "blockExpiresAt": { + "type": "string", + "format": "date-time" + }, + "linkExpiresAt": { + "type": "string", + "format": "date-time" + } + } + }, + "InvoiceEmailLinkPinRequest": { + "type": "object", + "properties": { + "enteredPin": { + "type": "string" + } + } + }, + "InvoiceEmailLinkPinValidationDto": { + "type": "object", + "properties": { + "blockExpiresAt": { + "type": "string", + "format": "date-time" + }, + "validPin": { + "type": "boolean" + } + } + }, + "InvoiceEmailTemplateDto": { + "type": "object", + "properties": { + "_id": { + "type": "string", + "writeOnly": true + }, + "emailContent": { + "$ref": "#/components/schemas/EmailContentDto" + }, + "identity": { + "type": "string" + }, + "invoiceEmailTemplateType": { + "type": "string", + "writeOnly": true, + "enum": [ + "INVOICE", + "REMINDER" + ] + }, + "invoiceEmailType": { + "type": "string", + "enum": [ + "INVOICE", + "REMINDER" + ] + }, + "workspaceId": { + "type": "string" + } + } + }, + "InvoiceExportFields": { + "type": "object", + "properties": { + "RTL": { + "type": "boolean", + "writeOnly": true, + "x-go-name": "Rtl" + }, + "itemType": { + "type": "boolean" + }, + "quantity": { + "type": "boolean" + }, + "rtl": { + "type": "boolean", + "x-go-name": "Rtl1" + }, + "unitPrice": { + "type": "boolean" + } + } + }, + "InvoiceExportFieldsRequest": { + "type": "object", + "properties": { + "itemType": { + "type": "boolean", + "description": "Indicates whether to export item type." + }, + "quantity": { + "type": "boolean", + "description": "Indicates whether to export quantity." + }, + "rtl": { + "type": "boolean", + "description": "Indicates whether to export RTL." + }, + "unitPrice": { + "type": "boolean", + "description": "Indicates whether to export unit price." + } + } + }, + "InvoiceFilterNumericData": { + "type": "object", + "properties": { + "exactValue": { + "type": "integer", + "format": "int64" + }, + "greaterThanValue": { + "type": "integer", + "format": "int64" + }, + "lessThanValue": { + "type": "integer", + "format": "int64" + } + } + }, + "InvoiceFilterRequest": { + "required": [ + "page", + "pageSize" + ], + "type": "object", + "properties": { + "amountFilterData": { + "$ref": "#/components/schemas/InvoiceFilterNumericData" + }, + "balanceFilterData": { + "$ref": "#/components/schemas/InvoiceFilterNumericData" + }, + "clients": { + "$ref": "#/components/schemas/ContainsClientsFilterRequest" + }, + "companies": { + "$ref": "#/components/schemas/ContainsCompaniesFilterRequest" + }, + "containsClientsFilterRequest": { + "$ref": "#/components/schemas/ContainsClientsFilterRequest" + }, + "containsCompaniesFilterRequest": { + "$ref": "#/components/schemas/ContainsCompaniesFilterRequest" + }, + "exact-amount": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "exact-balance": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "greater-than-amount": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "greater-than-balance": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "invoice-number": { + "type": "string", + "writeOnly": true, + "x-go-name": "Invoicenumber" + }, + "invoiceNumber": { + "type": "string", + "x-go-name": "Invoicenumber1" + }, + "issue-date": { + "$ref": "#/components/schemas/TimeRangeRequest" + }, + "less-than-amount": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "less-than-balance": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "page": { + "type": "integer", + "format": "int32" + }, + "page-size": { + "type": "integer", + "format": "int32", + "writeOnly": true, + "x-go-name": "Pagesize" + }, + "pageSize": { + "type": "integer", + "format": "int32", + "x-go-name": "Pagesize1" + }, + "sort-column": { + "type": "string", + "writeOnly": true, + "x-go-name": "Sortcolumn" + }, + "sort-order": { + "type": "string", + "writeOnly": true, + "x-go-name": "Sortorder" + }, + "sortColumn": { + "type": "string", + "x-go-name": "Sortcolumn1" + }, + "sortOrder": { + "type": "string", + "x-go-name": "Sortorder1" + }, + "statuses": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + } + }, + "strict-id-search": { + "type": "boolean", + "writeOnly": true + }, + "strictSearch": { + "type": "boolean" + }, + "timeRangeRequest": { + "$ref": "#/components/schemas/TimeRangeRequest" + } + } + }, + "InvoiceFilterRequestV1": { + "required": [ + "page", + "page-size", + "pageSize" + ], + "type": "object", + "properties": { + "clients": { + "$ref": "#/components/schemas/ContainsClientsFilterRequest" + }, + "companies": { + "$ref": "#/components/schemas/ContainsCompaniesFilterRequest" + }, + "exactAmount": { + "type": "integer", + "description": "Represents an invoice amount. If provided, you'll get a filtered list of invoices that has the equal amount as specified.", + "format": "int64", + "example": 1000 + }, + "exactBalance": { + "type": "integer", + "description": "Represents an invoice balance. If provided, you'll get a filtered list of invoices that has the equal balance as specified.", + "format": "int64", + "example": 1000 + }, + "greaterThanAmount": { + "type": "integer", + "description": "Represents an invoice amount. If provided, you'll get a filtered list of invoices that has amount greater than specified.", + "format": "int64", + "example": 500 + }, + "greaterThanBalance": { + "type": "integer", + "description": "Represents an invoice balance. If provided, you'll get a filtered list of invoices that has balance greater than specified.", + "format": "int64", + "example": 500 + }, + "invoiceNumber": { + "type": "string", + "description": "If provided, you'll get a filtered list of invoices that contain the provided string in their invoice number.", + "example": "Invoice-01" + }, + "issueDate": { + "$ref": "#/components/schemas/TimeRangeRequestDtoV1" + }, + "lessThanAmount": { + "type": "integer", + "description": "Represents an invoice amount. If provided, you'll get a filtered list of invoices that has amount less than specified.", + "format": "int64", + "example": 500 + }, + "lessThanBalance": { + "type": "integer", + "description": "Represents an invoice balance. If provided, you'll get a filtered list of invoices that has balance less than specified.", + "format": "int64", + "example": 500 + }, + "page": { + "type": "integer", + "description": "Page number.", + "format": "int32", + "example": 1 + }, + "pageSize": { + "type": "integer", + "description": "Page size.", + "format": "int32", + "example": 50 + }, + "sortColumn": { + "type": "string", + "description": "Represents the column name to be used as sorting criteria.", + "example": "ID", + "enum": [ + "ID", + "CLIENT", + "DUE_ON", + "ISSUE_DATE", + "AMOUNT", + "BALANCE" + ] + }, + "sortOrder": { + "type": "string", + "description": "Represents the sorting order.", + "example": "ASCENDING", + "enum": [ + "ASCENDING", + "DESCENDING" + ] + }, + "statuses": { + "type": "array", + "description": "Represents a list of invoice statuses. If provided, you'll get a filtered list of invoices that matches any of the invoice status provided.", + "example": [ + "SENT", + "PAID", + "PARTIALLY_PAID" + ], + "items": { + "type": "string", + "description": "Represents a list of invoice statuses. If provided, you'll get a filtered list of invoices that matches any of the invoice status provided.", + "example": "[\"SENT\",\"PAID\",\"PARTIALLY_PAID\"]", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + } + }, + "strictSearch": { + "type": "boolean", + "description": "Flag to toggle on/off strict search mode. When set to true, search by invoice number only will return invoices whose number exactly matches the string value given for the 'invoiceNumber' parameter. When set to false, results will also include invoices whose number contain the string value, but could be longer than the string value itself. For example, if there is an invoice with the number '123456', and the search value is '123', setting strict-name-search to true will not return that invoice in the results, whereas setting it to false will." + } + } + }, + "InvoiceInfoDto": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "balance": { + "type": "integer", + "format": "int64" + }, + "billFrom": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "daysOverdue": { + "type": "integer", + "format": "int64" + }, + "dueDate": { + "type": "string", + "format": "date-time" + }, + "hasPayments": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "issuedDate": { + "type": "string", + "format": "date-time" + }, + "number": { + "type": "string" + }, + "paid": { + "type": "integer", + "format": "int64" + }, + "status": { + "type": "string", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + }, + "visibleZeroFields": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "TAX", + "TAX_2", + "DISCOUNT" + ] + } + } + } + }, + "InvoiceInfoResponseDto": { + "type": "object", + "properties": { + "invoices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InvoiceInfoDto" + } + }, + "total": { + "type": "integer", + "format": "int64" + } + } + }, + "InvoiceInfoResponseDtoV1": { + "type": "object", + "properties": { + "invoices": { + "type": "array", + "description": "Represents a list of invoice info.", + "items": { + "$ref": "#/components/schemas/InvoiceInfoV1" + } + }, + "total": { + "type": "integer", + "description": "Represents the total invoice count.", + "format": "int64", + "example": 100 + } + } + }, + "InvoiceInfoV1": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an invoice amount as long.", + "format": "int64", + "example": 100 + }, + "balance": { + "type": "integer", + "description": "Represents an invoice balance amount as long.", + "format": "int64", + "example": 50 + }, + "billFrom": { + "type": "string", + "description": "Represents to whom an invoice is billed from.", + "example": "Company XYZ" + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "98h687e29ae1f428e7ebe707" + }, + "clientName": { + "type": "string", + "description": "Represents client name for an invoice.", + "example": "Client X" + }, + "currency": { + "type": "string", + "description": "Represents the currency used by the invoice.", + "example": "USD" + }, + "daysOverdue": { + "type": "integer", + "description": "Represents the number of days an invoice is overdue.", + "format": "int64", + "example": 10 + }, + "dueDate": { + "type": "string", + "description": "Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-06-01T08:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents invoice identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "issuedDate": { + "type": "string", + "description": "Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "number": { + "type": "string", + "description": "Represents an invoice number.", + "example": "202306121129" + }, + "paid": { + "type": "integer", + "description": "Represents an invoice paid amount as long.", + "format": "int64", + "example": 50 + }, + "status": { + "type": "string", + "description": "Represents the status of an invoice.", + "example": "PAID", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + }, + "visibleZeroFields": { + "$ref": "#/components/schemas/VisibleZeroFieldsInvoice" + } + }, + "description": "Represents a list of invoice info." + }, + "InvoiceItemDto": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents item amount.", + "format": "int64", + "example": 5000 + }, + "description": { + "type": "string", + "description": "Represents an invoice item description.", + "example": "This is a description of an invoice item." + }, + "itemType": { + "type": "string", + "description": "Represents item type.", + "example": "Goods" + }, + "order": { + "type": "integer", + "description": "Represents an integer.", + "format": "int32", + "example": 100 + }, + "quantity": { + "type": "integer", + "description": "Represents item quantity.", + "format": "int64", + "example": 10 + }, + "timeEntryIds": { + "type": "array", + "description": "Represents a list of time entrry IDs.", + "example": [ + "5b715448b0798751107918ab", + "5b641568b07987035750505e" + ], + "items": { + "type": "string", + "description": "Represents a list of time entrry IDs.", + "example": "[\"5b715448b0798751107918ab\",\"5b641568b07987035750505e\"]" + } + }, + "unitPrice": { + "type": "integer", + "description": "Represents item unit price.", + "format": "int64", + "example": 500 + } + } + }, + "InvoiceItemTypeDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "InvoiceOverviewDto": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "balance": { + "type": "integer", + "format": "int64" + }, + "billFrom": { + "type": "string" + }, + "clientAddress": { + "type": "string" + }, + "clientArchived": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "companyId": { + "type": "string" + }, + "containsAttachedReceipts": { + "type": "boolean" + }, + "containsImportedExpenses": { + "type": "boolean" + }, + "containsImportedTimes": { + "type": "boolean" + }, + "currency": { + "type": "string" + }, + "daysOverdue": { + "type": "integer", + "format": "int64" + }, + "discount": { + "type": "number", + "format": "double", + "deprecated": true + }, + "discountAmount": { + "type": "integer", + "format": "int64" + }, + "discountPercent": { + "type": "number", + "format": "double" + }, + "dueDate": { + "type": "string", + "format": "date-time" + }, + "hasPayments": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "issuedDate": { + "type": "string", + "format": "date-time" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InvoiceItemDto" + } + }, + "note": { + "type": "string" + }, + "number": { + "type": "string" + }, + "paid": { + "type": "integer", + "format": "int64" + }, + "status": { + "type": "string", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + }, + "subject": { + "type": "string" + }, + "subtotal": { + "type": "integer", + "format": "int64" + }, + "tax": { + "type": "number", + "format": "double", + "deprecated": true + }, + "tax2": { + "type": "number", + "format": "double", + "deprecated": true + }, + "tax2Amount": { + "type": "integer", + "format": "int64" + }, + "tax2Percent": { + "type": "number", + "format": "double" + }, + "taxAmount": { + "type": "integer", + "format": "int64" + }, + "taxPercent": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "visibleZeroFields": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "TAX", + "TAX_2", + "DISCOUNT" + ] + } + } + } + }, + "InvoiceOverviewDtoV1": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an invoice amount as long.", + "format": "int64", + "example": 100 + }, + "balance": { + "type": "integer", + "description": "Represents an invoice balance amount as long.", + "format": "int64", + "example": 50 + }, + "billFrom": { + "type": "string", + "description": "Represents to whom the invoice should be billed from.", + "example": "Business X" + }, + "clientAddress": { + "type": "string", + "description": "Represents client address.", + "example": "Ground Floor, ABC Bldg., Palo Alto, California, USA 94020" + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "98h687e29ae1f428e7ebe707" + }, + "clientName": { + "type": "string", + "description": "Represents client name for an invoice.", + "example": "Client X" + }, + "companyId": { + "type": "string", + "description": "Represents company identifier across the system.", + "example": "04g687e29ae1f428e7ebe123" + }, + "containsImportedExpenses": { + "type": "boolean", + "description": "Indicates whether invoice contains imported expenses." + }, + "containsImportedTimes": { + "type": "boolean", + "description": "Indicates whether invoice contains imported items." + }, + "currency": { + "type": "string", + "description": "Represents the currency used by the invoice.", + "example": "USD" + }, + "discount": { + "type": "number", + "description": "Represents an invoice discount amount as double.", + "format": "double", + "example": 10.5 + }, + "discountAmount": { + "type": "integer", + "description": "Represents an invoice discount amount as long.", + "format": "int64", + "example": 11 + }, + "dueDate": { + "type": "string", + "description": "Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-06-01T08:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents invoice identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "issuedDate": { + "type": "string", + "description": "Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "items": { + "type": "array", + "description": "Represents a list of invoice item datatransfer objects.", + "items": { + "$ref": "#/components/schemas/InvoiceItemDto" + } + }, + "note": { + "type": "string", + "description": "Represents an invoice note.", + "example": "This is a sample note for this invoice." + }, + "number": { + "type": "string", + "description": "Represents an invoice number.", + "example": "202306121129" + }, + "paid": { + "type": "integer", + "description": "Represents an invoice paid amount as long.", + "format": "int64", + "example": 50 + }, + "status": { + "type": "string", + "description": "Represents the status of an invoice.", + "example": "PAID", + "enum": [ + "UNSENT", + "SENT", + "PAID", + "PARTIALLY_PAID", + "VOID", + "OVERDUE" + ] + }, + "subject": { + "type": "string", + "description": "Represents an invoice subject.", + "example": "January salary" + }, + "subtotal": { + "type": "integer", + "description": "Represents an invoice subtotal as long.", + "format": "int64", + "example": 5000 + }, + "tax": { + "type": "number", + "description": "Represents an invoice tax amount as double.", + "format": "double", + "example": 1.5 + }, + "tax2": { + "type": "number", + "description": "Represents an invoice tax amount as double.", + "format": "double", + "example": 0 + }, + "tax2Amount": { + "type": "integer", + "description": "Represents an invoice tax amount as long.", + "format": "int64", + "example": 0 + }, + "taxAmount": { + "type": "integer", + "description": "Represents an invoice tax amount as long.", + "format": "int64", + "example": 1 + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "12t687e29ae1f428e7ebe202" + }, + "visibleZeroFields": { + "$ref": "#/components/schemas/VisibleZeroFieldsInvoice" + } + } + }, + "InvoicePaymentDto": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "format": "int64" + }, + "author": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "note": { + "type": "string" + } + } + }, + "InvoicePaymentDtoV1": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an invoice payment amount as long.", + "format": "int64", + "example": 100 + }, + "author": { + "type": "string", + "description": "Represents an invoice payment author.", + "example": "John Doe" + }, + "date": { + "type": "string", + "description": "Represents an invoice payment date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2021-01-01T12:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents invoice payment identifier across the system.", + "example": "78a687e29ae1f428e7ebe303" + }, + "note": { + "type": "string", + "description": "Represents an invoice payment note.", + "example": "This is a sample note for this invoice payment." + } + } + }, + "InvoicePermissionsDto": { + "type": "object", + "properties": { + "everyoneIncludingNew": { + "type": "boolean" + }, + "selectedUsersCount": { + "type": "integer", + "format": "int32" + }, + "specificMembersAllowed": { + "type": "boolean" + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "InvoicePermissionsRequest": { + "type": "object", + "properties": { + "everyoneIncludingNew": { + "type": "boolean" + }, + "specificMembersAllowed": { + "type": "boolean" + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "InvoiceSettingsDto": { + "type": "object", + "properties": { + "defaults": { + "$ref": "#/components/schemas/InvoiceDefaultSettingsDto" + }, + "exportFields": { + "$ref": "#/components/schemas/InvoiceExportFields" + }, + "labels": { + "$ref": "#/components/schemas/LabelsCustomization" + } + } + }, + "InvoiceSettingsDtoV1": { + "type": "object", + "properties": { + "defaults": { + "$ref": "#/components/schemas/InvoiceDefaultSettingsDto" + }, + "exportFields": { + "$ref": "#/components/schemas/InvoiceExportFields" + }, + "labels": { + "$ref": "#/components/schemas/LabelsCustomization" + } + } + }, + "InvoicesListDtoV1": { + "type": "object", + "properties": { + "invoices": { + "type": "array", + "description": "Represents a list of invoices.", + "items": { + "$ref": "#/components/schemas/InvoiceDtoV1" + } + }, + "total": { + "type": "integer", + "description": "Represents the total invoice count.", + "format": "int64", + "example": 100 + } + } + }, + "KioskAuthenticationCodeRequest": { + "type": "object", + "properties": { + "currentLang": { + "type": "string" + }, + "email": { + "type": "string" + }, + "timeZone": { + "type": "string" + } + } + }, + "KioskAuthenticationRequest": { + "type": "object", + "properties": { + "email": { + "$ref": "#/components/schemas/EmailAddress" + } + } + }, + "KioskClockInRequest": { + "type": "object", + "properties": { + "isSwitched": { + "type": "boolean", + "writeOnly": true + }, + "notEmptyRequest": { + "type": "boolean" + }, + "projectId": { + "type": "string" + }, + "switched": { + "type": "boolean" + }, + "taskId": { + "type": "string" + } + } + }, + "KioskDefault": { + "required": [ + "kioskId", + "projectId" + ], + "type": "object", + "properties": { + "kioskId": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "KioskDto": { + "type": "object", + "properties": { + "defaultEntities": { + "$ref": "#/components/schemas/DefaultEntitiesDto" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "groupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "pin": { + "$ref": "#/components/schemas/PinSettingDto" + }, + "sessionDuration": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE", + "DELETED" + ] + }, + "urlSlug": { + "type": "string" + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "KioskEntryRequest": { + "type": "object", + "properties": { + "notEmptyRequest": { + "type": "boolean" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "KioskHydratedDto": { + "type": "object", + "properties": { + "defaultEntities": { + "$ref": "#/components/schemas/DefaultEntitiesDto" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "groups": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/UserGroupInfoDto" + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "pin": { + "$ref": "#/components/schemas/PinSettingDto" + }, + "sessionDuration": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE", + "DELETED" + ] + }, + "urlSlug": { + "type": "string" + }, + "urlToken": { + "type": "string" + }, + "users": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/UserInfoWithMembershipStatusDto" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "KioskHydratedWithCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32" + }, + "kiosks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskHydratedDto" + } + } + } + }, + "KioskLoginSettingsDto": { + "type": "object", + "properties": { + "appleConfiguration": { + "$ref": "#/components/schemas/AppleConfigurationDto" + }, + "autoLogin": { + "type": "string" + }, + "kioskAutoLoginEnabled": { + "type": "boolean", + "x-go-name": "Kioskautologinenabled" + }, + "kioskAutologinEnabled": { + "type": "boolean", + "writeOnly": true, + "x-go-name": "Kioskautologinenabled1" + }, + "kioskId": { + "type": "string" + }, + "loginPreferences": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "logoUrl": { + "type": "string", + "writeOnly": true + }, + "name": { + "type": "string" + }, + "oAuthConfiguration": { + "$ref": "#/components/schemas/OAuthConfigurationDto" + }, + "saml2Settings": { + "$ref": "#/components/schemas/SAML2LoginSettingsDto" + }, + "ssoLogoUrl": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE", + "DELETED" + ] + }, + "urlSlug": { + "type": "string" + }, + "workspaceId": { + "type": "string" + }, + "workspaceLogoUrl": { + "type": "string" + } + } + }, + "KioskLogoutRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "pinCode": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "KioskMemberDetailsDto": { + "type": "object", + "properties": { + "belongsToKiosk": { + "type": "boolean" + }, + "dayTotal": { + "$ref": "#/components/schemas/KioskSummaryDto" + }, + "email": { + "type": "string" + }, + "entries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryKioskInfoDto" + } + }, + "id": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "isAdmin": { + "type": "boolean" + }, + "isProjectManager": { + "type": "boolean" + }, + "isTeamManager": { + "type": "boolean" + }, + "mostRecentProject": { + "$ref": "#/components/schemas/MostRecentKioskProjectDto" + }, + "name": { + "type": "string" + }, + "runningEntry": { + "$ref": "#/components/schemas/TimeEntryKioskInfoDto" + }, + "status": { + "type": "string", + "enum": [ + "CLOCKED_IN", + "ON_BREAK", + "CLOCKED_OUT" + ] + }, + "weekTotal": { + "$ref": "#/components/schemas/KioskSummaryDto" + } + } + }, + "KioskMemberDto": { + "type": "object", + "properties": { + "belongsToKiosk": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "isAdmin": { + "type": "boolean" + }, + "isProjectManager": { + "type": "boolean" + }, + "isTeamManager": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "CLOCKED_IN", + "ON_BREAK", + "CLOCKED_OUT" + ] + } + } + }, + "KioskProjectDto": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "favorite": { + "type": "boolean" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskTaskDto" + } + } + } + }, + "KioskProjectDtoList": { + "type": "object", + "properties": { + "hasMoreData": { + "type": "boolean" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KioskProjectDto" + } + } + } + }, + "KioskSummaryDto": { + "type": "object", + "properties": { + "breakDuration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "totalDuration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "workDuration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + } + } + }, + "KioskTaskDto": { + "type": "object", + "properties": { + "favorite": { + "type": "boolean" + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + } + } + }, + "KioskTokenDto": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "KioskUserLoginRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "pinCode": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "KioskUserPinCodeDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "pinCode": { + "$ref": "#/components/schemas/PinCode" + }, + "pinCodeContext": { + "type": "string", + "enum": [ + "ADMIN", + "UNIVERSAL", + "USER", + "INITIAL" + ] + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "LabelsCustomization": { + "type": "object", + "properties": { + "amount": { + "type": "string", + "description": "Represents invoice amount.", + "example": "1000" + }, + "billFrom": { + "type": "string", + "description": "Represents a string an invoice is billed from.", + "example": "Entity A" + }, + "billTo": { + "type": "string", + "description": "Represents a string an invoice is billed to.", + "example": "Entity B" + }, + "description": { + "type": "string", + "description": "Represents a description of an invoice.", + "example": "This is a sample description for this invoice." + }, + "discount": { + "type": "string", + "description": "Represents invoice discount amount.", + "example": "0" + }, + "dueDate": { + "type": "string", + "description": "Represents a due date in yyyy-MM-dd format.", + "example": "2020-01-01" + }, + "issueDate": { + "type": "string", + "description": "Represents an issue date in yyyy-MM-dd format.", + "example": "2020-01-01" + }, + "itemType": { + "type": "string", + "description": "Represents an item type.", + "example": "Service" + }, + "notes": { + "type": "string", + "description": "Represents notes for an invoice.", + "example": "This is a sample note for this invoice." + }, + "paid": { + "type": "string", + "description": "Represents invoice paid amount.", + "example": "1000" + }, + "quantity": { + "type": "string", + "description": "Represents quantity.", + "example": "10" + }, + "subtotal": { + "type": "string", + "description": "Represents invoice subtotal.", + "example": "1000" + }, + "tax": { + "type": "string", + "description": "Represents invoice tax amount.", + "example": "10" + }, + "tax2": { + "type": "string", + "description": "Represents invoice tax amount.", + "example": "0" + }, + "total": { + "type": "string", + "description": "Represents invoice total amount.", + "example": "1010" + }, + "totalAmount": { + "type": "string", + "description": "Represents invoice total amount.", + "example": "1010" + }, + "unitPrice": { + "type": "string", + "description": "Represents unit price.", + "example": "100" + } + } + }, + "LabelsCustomizationRequest": { + "required": [ + "amount", + "billFrom", + "billTo", + "description", + "discount", + "dueDate", + "issueDate", + "itemType", + "notes", + "paid", + "quantity", + "subtotal", + "tax", + "tax2", + "total", + "totalAmountDue", + "unitPrice" + ], + "type": "object", + "properties": { + "amount": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice amount label.", + "example": "AMOUNT" + }, + "billFrom": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice bill from label.", + "example": "BILL FROM" + }, + "billTo": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice bill to label.", + "example": "BILL TO" + }, + "description": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice description label.", + "example": "DESCRIPTION" + }, + "discount": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice discount amount label.", + "example": "DISCOUNT" + }, + "dueDate": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice due date label.", + "example": "DUE DATE" + }, + "issueDate": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice issue date label.", + "example": "ISSUE DATE" + }, + "itemType": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice item type label.", + "example": "ITEM TYPE" + }, + "notes": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice notes label.", + "example": "NOTES" + }, + "paid": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice paid amount label.", + "example": "PAID" + }, + "quantity": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice quantity label.", + "example": "QUANTITY" + }, + "subtotal": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice subtotal label.", + "example": "SUBTOTAL" + }, + "tax": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice tax amount label.", + "example": "TAX" + }, + "tax2": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice tax 2 amount label.", + "example": "TAX2" + }, + "total": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice total amount label.", + "example": "AMOUNT" + }, + "totalAmountDue": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice total amount due label.", + "example": "TOTAL AMOUNT DUE" + }, + "unitPrice": { + "maxLength": 20, + "minLength": 0, + "type": "string", + "description": "Represents invoice unit price label.", + "example": "UNIT PRICE" + } + } + }, + "LatestActivityItemDto": { + "type": "object", + "properties": { + "clientName": { + "type": "string" + }, + "color": { + "type": "string" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "label": { + "type": "string" + }, + "percentage": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "transformedLabel": { + "type": "string", + "writeOnly": true + }, + "transformedProjectName": { + "type": "string", + "writeOnly": true + } + } + }, + "LegacyPlanNotificationRequest": { + "type": "object", + "properties": { + "workspaceIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "LegacyPlanUpgradeDataDto": { + "type": "object", + "properties": { + "hasLegacyWorkspace": { + "type": "boolean" + }, + "isAcknowledged": { + "type": "boolean" + }, + "isCurrentWorkspaceLegacy": { + "type": "boolean" + } + } + }, + "LimboTokenRequest": { + "type": "object", + "properties": { + "cakeAccessToken": { + "type": "string" + }, + "clockifyAccessToken": { + "type": "string" + }, + "exchangeToken": { + "type": "string" + } + } + }, + "Link": { + "type": "object", + "properties": { + "copy": { + "type": "string" + }, + "uri": { + "type": "string" + } + } + }, + "LinkDto": { + "type": "object", + "properties": { + "copy": { + "type": "string" + }, + "uri": { + "type": "string" + } + } + }, + "LinkRequest": { + "type": "object", + "properties": { + "copy": { + "type": "string" + }, + "uri": { + "type": "string" + } + } + }, + "LogBinDocumentDto": { + "type": "object", + "properties": { + "deletedAt": { + "type": "string", + "format": "date-time" + }, + "deletionBinId": { + "type": "string" + }, + "document": { + "type": "object" + }, + "documentType": { + "type": "string", + "enum": [ + "TIME_ENTRY", + "TIME_ENTRY_CUSTOM_FIELD_VALUE", + "CUSTOM_ATTRIBUTE", + "EXPENSE", + "CUSTOM_FIELDS" + ] + }, + "eligibleForRestore": { + "type": "boolean" + }, + "id": { + "type": "string" + } + } + }, + "LoggedInKioskInfoDto": { + "type": "object", + "properties": { + "kiosk": { + "$ref": "#/components/schemas/KioskHydratedDto" + }, + "user": { + "$ref": "#/components/schemas/UserDto" + }, + "workspace": { + "$ref": "#/components/schemas/WorkspaceDto" + } + } + }, + "LoginPreferenceRequest": { + "type": "object", + "properties": { + "loginPreference": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "LoginSettingsDto": { + "type": "object", + "properties": { + "appleConfiguration": { + "$ref": "#/components/schemas/AppleConfigurationDto" + }, + "autoLogin": { + "type": "string" + }, + "getoAuthConfiguration": { + "$ref": "#/components/schemas/OAuthConfigurationDto" + }, + "isoAuthAutomaticJoinWorkspace": { + "type": "boolean" + }, + "loginPreferences": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "logoURL": { + "type": "string" + }, + "oauth2Forced": { + "type": "boolean" + }, + "registrationLocked": { + "type": "boolean" + }, + "saml2AutomaticJoinWorkspace": { + "type": "boolean" + }, + "saml2Forced": { + "type": "boolean" + }, + "saml2Settings": { + "$ref": "#/components/schemas/SAML2LoginSettingsDto" + } + } + }, + "MainReportDto": { + "type": "object", + "properties": { + "billableAndTotalTime": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/TotalTimeItemDto" + } + }, + "dateAndTotalTime": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TotalTimeItemDto" + } + } + }, + "earningByUserMap": { + "type": "object", + "additionalProperties": { + "type": "integer", + "format": "int64" + } + }, + "earningWithCurrencyByUserMap": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + } + } + }, + "projectAndTotalTime": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/TotalTimeItemDto" + } + }, + "topClient": { + "type": "string" + }, + "topProject": { + "type": "string" + }, + "totalBillable": { + "type": "string" + }, + "totalEarned": { + "type": "integer", + "format": "int64" + }, + "totalEarnedByCurrency": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + } + }, + "totalTime": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "MemberProfileDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "hasPassword": { + "type": "boolean" + }, + "hasPendingApprovalRequest": { + "type": "boolean" + }, + "imageUrl": { + "type": "string" + }, + "name": { + "type": "string" + }, + "userCustomFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserCustomFieldValueFullDto" + } + }, + "weekStart": { + "type": "string" + }, + "workCapacity": { + "type": "string" + }, + "workingDays": { + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceNumber": { + "type": "integer", + "format": "int32" + } + } + }, + "MemberProfileDtoV1": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "Represents email address of the user.", + "example": "johndoe@example.com" + }, + "hasPassword": { + "type": "boolean", + "description": "Indicates whether user has password or none." + }, + "hasPendingApprovalRequest": { + "type": "boolean", + "description": "Indicates whether user has pending approval request." + }, + "imageUrl": { + "type": "string", + "description": "Represents an image url.", + "example": "https://www.url.com/imageurl-1234567890.jpg" + }, + "name": { + "type": "string", + "description": "Represents name of the user.", + "example": "John Doe" + }, + "userCustomFieldValues": { + "type": "array", + "description": "Represents a list of value objects for user\u2019s custom fields.", + "items": { + "$ref": "#/components/schemas/UserCustomFieldValueFullDtoV1" + } + }, + "weekStart": { + "$ref": "#/components/schemas/DayOfWeek" + }, + "workCapacity": { + "type": "string", + "description": "Represents work capacity as duration.", + "example": "50000" + }, + "workingDays": { + "$ref": "#/components/schemas/DayOfWeek" + }, + "workspaceNumber": { + "type": "integer", + "description": "Represents the number of workspace(s) the user is associated to.", + "format": "int32", + "example": 3 + } + } + }, + "MemberProfileFullRequest": { + "type": "object", + "properties": { + "imageUrl": { + "$ref": "#/components/schemas/Url" + }, + "name": { + "type": "string" + }, + "removeProfileImage": { + "type": "boolean" + }, + "userCustomFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpsertUserCustomFieldRequest" + } + }, + "userCustomFieldsOptional": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpsertUserCustomFieldRequest" + } + }, + "weekStart": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "workCapacity": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "workingDays": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + } + } + }, + "MemberProfileFullRequestV1": { + "type": "object", + "properties": { + "imageUrl": { + "type": "string", + "description": "Represents an image url.", + "example": "https://www.url.com/imageurl-1234567890.jpg" + }, + "name": { + "maxLength": 250, + "minLength": 2, + "type": "string", + "description": "Represents name of the user.", + "example": "John Doe" + }, + "removeProfileImage": { + "type": "boolean", + "description": "Indicates whether to remove profile image or not." + }, + "userCustomFields": { + "type": "array", + "description": "Represents a list of upsert user custom field objects.", + "items": { + "$ref": "#/components/schemas/UpsertUserCustomFieldRequest" + } + }, + "weekStart": { + "type": "string", + "description": "Represents a day of the week.", + "example": "MONDAY", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "workCapacity": { + "type": "string", + "description": "Represents work capacity as duration in seconds. For example, for a 7hr work day, input should be 25200.", + "example": "25200" + }, + "workingDays": { + "$ref": "#/components/schemas/DayOfWeek" + } + } + }, + "MemberProfileRequest": { + "type": "object", + "properties": { + "imageUrl": { + "$ref": "#/components/schemas/Url" + }, + "name": { + "type": "string" + }, + "removeProfileImage": { + "type": "boolean" + }, + "weekStart": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "workCapacity": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "workingDays": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + } + } + }, + "MemberSettingsRequest": { + "type": "object", + "properties": { + "weekStart": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "workCapacity": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "workingDays": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + } + } + }, + "MembersCountDto": { + "type": "object", + "properties": { + "activeLimitedMembersCount": { + "type": "integer", + "format": "int32" + }, + "activeMembersCount": { + "type": "integer", + "format": "int32" + }, + "inactiveMembersCount": { + "type": "integer", + "format": "int32" + } + } + }, + "MembershipDto": { + "type": "object", + "properties": { + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "membershipStatus": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "membershipType": { + "type": "string" + }, + "targetId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "MembershipDtoV1": { + "type": "object", + "properties": { + "costRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateDtoV1" + }, + "membershipStatus": { + "type": "string", + "description": "Represents a membership status enum.", + "example": "PENDING", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "membershipType": { + "type": "string", + "description": "Represents membership type enum.", + "example": "PROJECT", + "enum": [ + "WORKSPACE", + "PROJECT", + "USERGROUP" + ] + }, + "targetId": { + "type": "string", + "description": "Represents target identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + } + }, + "description": "Represents a list of membership objects." + }, + "MembershipRequest": { + "type": "object", + "properties": { + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "membershipStatus": { + "type": "string", + "description": "Represents a membership status enum.", + "example": "PENDING", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "membershipType": { + "type": "string", + "description": "Represents membership type enum.", + "example": "PROJECT", + "enum": [ + "WORKSPACE", + "PROJECT", + "USERGROUP" + ] + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "12t687e29ae1f428e7ebe202" + } + } + }, + "MilestoneCreateRequest": { + "required": [ + "projectId" + ], + "type": "object", + "properties": { + "date": { + "type": "string" + }, + "name": { + "type": "string" + }, + "projectId": { + "type": "string" + } + } + }, + "MilestoneDateRequest": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time" + } + } + }, + "MilestoneDto": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "Represents a date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents milestone identifier across the system.", + "example": "34a687e29ae1f428e7ebe303" + }, + "name": { + "type": "string", + "description": "Represents milestone name.", + "example": "Q3" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "MilestoneUpdateRequest": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time" + }, + "name": { + "type": "string" + } + } + }, + "MostRecentKioskProjectDto": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + } + } + }, + "MostTrackedDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "clientName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "id": { + "type": "string" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + } + } + }, + "MultiFactorAuthUserDto": { + "type": "object", + "properties": { + "auth": { + "$ref": "#/components/schemas/AuthDto" + }, + "user": { + "$ref": "#/components/schemas/UserDto" + } + } + }, + "MultiFactorCodeConfirmationRequest": { + "required": [ + "code", + "multiFactorToken" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "multiFactorToken": { + "type": "string" + } + } + }, + "MultiFactorConfirmation": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "multiFactorEnabled": { + "type": "boolean" + } + } + }, + "MultiFactorRequest": { + "type": "object", + "properties": { + "multiFactorEnabled": { + "type": "boolean" + } + } + }, + "MultiFactorResendCodeLoginRequest": { + "required": [ + "multiFactorToken" + ], + "type": "object", + "properties": { + "action": { + "type": "string" + }, + "multiFactorToken": { + "type": "string" + } + } + }, + "MultiFactorResendCodeOptionalActionRequest": { + "type": "object", + "properties": { + "action": { + "type": "string" + } + } + }, + "MultiFactorUserSettingsCodeConfirmationRequest": { + "required": [ + "code", + "multiFactorEnabled" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "multiFactorEnabled": { + "type": "boolean" + } + } + }, + "MultiFactorWorkspaceConfirmationRequest": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "multiFactorEnabled": { + "type": "boolean" + } + } + }, + "NegativeBalanceDto": { + "type": "object", + "properties": { + "amount": { + "type": "number", + "format": "double" + }, + "period": { + "type": "string" + }, + "timeUnit": { + "type": "string" + } + } + }, + "NegativeBalanceRequest": { + "required": [ + "amount" + ], + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "number", + "description": "Represents negative balance amount.", + "format": "double", + "example": 2 + }, + "amountValidForTimeUnit": { + "type": "boolean" + }, + "period": { + "type": "string", + "description": "Represents negative balance period.", + "example": "MONTH", + "enum": [ + "MONTH", + "YEAR" + ] + }, + "timeUnit": { + "type": "string", + "description": "Represents negative balance time unit.", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + } + } + }, + "NewUserJoinsRequest": { + "required": [ + "invitationCode", + "lang" + ], + "type": "object", + "properties": { + "invitationCode": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "name": { + "type": "string" + }, + "newsletter": { + "type": "boolean" + }, + "password": { + "type": "string" + }, + "terms": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "timeZone": { + "type": "string" + } + } + }, + "NewsDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "image": { + "$ref": "#/components/schemas/NewsImageInfo" + }, + "link": { + "type": "string" + }, + "linkText": { + "type": "string" + }, + "message": { + "type": "string" + }, + "title": { + "type": "string" + }, + "userRole": { + "type": "string", + "enum": [ + "USER", + "MANAGER", + "ADMIN", + "NOTIFIER", + "SUPPORT_AGENT", + "SALES_AGENT", + "SALES_ADMIN", + "SALES_PANEL", + "BILLING" + ] + }, + "workspacePlan": { + "type": "string", + "enum": [ + "ALL", + "PAID", + "FREE" + ] + } + } + }, + "NewsImageInfo": { + "type": "object", + "properties": { + "imageName": { + "type": "string" + }, + "imagePath": { + "type": "string" + } + } + }, + "NewsRequest": { + "type": "object", + "properties": { + "body": { + "type": "string" + }, + "header": { + "type": "string" + }, + "image": { + "$ref": "#/components/schemas/NewsImageInfo" + }, + "link": { + "type": "string" + }, + "linkText": { + "type": "string" + }, + "role": { + "type": "string", + "enum": [ + "USER", + "MANAGER", + "ADMIN", + "NOTIFIER", + "SUPPORT_AGENT", + "SALES_AGENT", + "SALES_ADMIN", + "SALES_PANEL", + "BILLING" + ] + }, + "workspaceIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "workspacePlan": { + "type": "string", + "enum": [ + "ALL", + "PAID", + "FREE" + ] + } + } + }, + "NextCustomerInformationDto": { + "type": "object", + "properties": { + "billingAddress": { + "type": "string" + }, + "billingAddress2": { + "type": "string" + }, + "billingCity": { + "type": "string" + }, + "billingCountry": { + "type": "string" + }, + "billingState": { + "type": "string" + }, + "billingZip": { + "type": "string" + }, + "currency": { + "type": "string" + } + } + }, + "NextInvoiceNumberDto": { + "type": "object", + "properties": { + "nextNumber": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "NotificationDataDto": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "WORKSPACE_INVITATION", + "FEATURE_SUBSCRIPTION", + "ACCOUNT_VERIFICATION", + "WORKSPACE_CHANGED", + "USER_SETTINGS", + "PAYMENT_FAILED", + "NEWS", + "MONITORING", + "CONTACT_SALES", + "FILE_IMPORT_COMPLETED", + "PUMBLE_COUPON", + "EMAIL_VERIFICATION" + ] + } + } + }, + "NotificationDto": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/NotificationDataDto" + }, + "id": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "UNREAD", + "READ" + ] + }, + "type": { + "type": "string", + "enum": [ + "WORKSPACE_INVITATION", + "FEATURE_SUBSCRIPTION", + "ACCOUNT_VERIFICATION", + "WORKSPACE_CHANGED", + "USER_SETTINGS", + "PAYMENT_FAILED", + "NEWS", + "MONITORING", + "CONTACT_SALES", + "FILE_IMPORT_COMPLETED", + "PUMBLE_COUPON", + "EMAIL_VERIFICATION" + ] + }, + "userId": { + "type": "string" + } + } + }, + "OAuth2AuthenticationRequest": { + "required": [ + "code", + "nonce", + "redirectURI", + "state" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "invitationCode": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "organizationName": { + "type": "string" + }, + "redirectURI": { + "type": "string" + }, + "state": { + "type": "string" + }, + "terms": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "timeZone": { + "type": "string" + } + } + }, + "OAuth2ConfigurationDto": { + "type": "object", + "properties": { + "accessTokenPath": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "authorizationCodePath": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "emailTokenField": { + "type": "string" + }, + "firstNameTokenField": { + "type": "string" + }, + "forceSSO": { + "type": "boolean" + }, + "isActive": { + "type": "boolean", + "writeOnly": true + }, + "lastNameTokenField": { + "type": "string" + }, + "logoUri": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "userInfoOpenIdPath": { + "type": "string" + }, + "usernameTokenField": { + "type": "string" + } + } + }, + "OAuthConfigurationDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "forceSSO": { + "type": "boolean" + }, + "isActive": { + "type": "boolean", + "writeOnly": true + }, + "logoUri": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "OAuthConfigurationRequest": { + "required": [ + "accessTokenPath", + "authorizationCodePath", + "clientId", + "clientSecret", + "emailTokenField", + "scope", + "userInfoOpenIdPath" + ], + "type": "object", + "properties": { + "accessTokenPath": { + "type": "string" + }, + "active": { + "type": "boolean" + }, + "authorizationCodePath": { + "type": "string" + }, + "clientId": { + "type": "string" + }, + "clientSecret": { + "type": "string" + }, + "emailTokenField": { + "type": "string" + }, + "firstNameTokenField": { + "type": "string" + }, + "forceSSO": { + "type": "boolean" + }, + "lastNameTokenField": { + "type": "string" + }, + "logoUri": { + "type": "string" + }, + "scope": { + "type": "string" + }, + "userInfoOpenIdPath": { + "type": "string" + }, + "usernameTokenField": { + "type": "string" + } + } + }, + "OrganizationDto": { + "type": "object", + "properties": { + "auth": { + "$ref": "#/components/schemas/AuthDto" + }, + "autoLogin": { + "type": "string", + "enum": [ + "SAML2", + "OAUTH2", + "OFF" + ] + }, + "customSupportLinksSettings": { + "$ref": "#/components/schemas/CustomSupportLinksSettingsDto" + }, + "domainName": { + "type": "string" + }, + "id": { + "type": "string" + }, + "loginPreferences": { + "type": "array", + "items": { + "type": "string" + } + }, + "logoURL": { + "type": "string" + }, + "oAuthAutomaticJoinWorkspace": { + "type": "boolean" + }, + "saml2AutomaticJoinWorkspace": { + "type": "boolean" + }, + "workspaceIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "OrganizationNameDto": { + "type": "object", + "properties": { + "domainName": { + "type": "string" + } + } + }, + "OrganizationRequest": { + "type": "object", + "properties": { + "autoLogin": { + "type": "string", + "enum": [ + "SAML2", + "OAUTH2", + "OFF" + ] + }, + "convertedCustomLinks": { + "$ref": "#/components/schemas/CustomSupportLinksSettings" + }, + "customSupportLinksSettings": { + "$ref": "#/components/schemas/CustomSupportLinksSettingsRequest" + }, + "domainName": { + "type": "string" + }, + "loginPreferences": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "logoURL": { + "type": "string" + }, + "oAuthAutomaticJoinWorkspace": { + "type": "boolean" + }, + "saml2AutomaticJoinWorkspace": { + "type": "boolean" + }, + "workspaceId": { + "type": "string" + } + } + }, + "OwnerIdResponse": { + "type": "object", + "properties": { + "ownerId": { + "type": "string" + } + } + }, + "OwnerTimeZoneResponse": { + "type": "object", + "properties": { + "ownerTimeZone": { + "type": "string" + } + } + }, + "PageProjectDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32" + }, + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectDto" + } + } + } + }, + "PasswordResetEmailRequest": { + "required": [ + "email" + ], + "type": "object", + "properties": { + "email": { + "maxLength": 100, + "minLength": 0, + "type": "string" + } + } + }, + "PasswordResetRequest": { + "type": "object", + "properties": { + "newPassword": { + "type": "string", + "writeOnly": true + }, + "password": { + "type": "string" + } + } + }, + "PasswordResetTokenDto": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "identity": { + "type": "string" + }, + "userEmail": { + "type": "string" + } + } + }, + "PatchProjectRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "changeFields": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ARCHIVED", + "BILLABLE", + "CLIENT", + "COLOR", + "ESTIMATE", + "HOURLY_RATE", + "MEMBERS", + "MEMBERS_ADD", + "TASK", + "VISIBILITY" + ] + } + }, + "clientId": { + "type": "string" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "estimate": { + "$ref": "#/components/schemas/EstimateRequest" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "isPublic": { + "type": "boolean" + }, + "overwriteTasks": { + "type": "boolean" + }, + "projectIds": { + "maxItems": 1000, + "minItems": 0, + "type": "array", + "items": { + "type": "string" + } + }, + "public": { + "type": "boolean" + }, + "tasks": { + "maxItems": 20, + "minItems": 0, + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkTaskInfoRequest" + } + }, + "userGroupIds": { + "type": "array", + "deprecated": true, + "items": { + "type": "string", + "deprecated": true + } + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userIds": { + "type": "array", + "deprecated": true, + "items": { + "type": "string", + "deprecated": true + } + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + } + } + }, + "PatchProjectTemplateRequest": { + "type": "object", + "properties": { + "isTemplate": { + "type": "boolean", + "description": "Indicates whether project is a template or not." + } + } + }, + "PaymentCardInformation": { + "type": "object", + "properties": { + "cardHolder": { + "type": "string" + }, + "last4digits": { + "type": "integer", + "format": "int64" + }, + "month": { + "type": "string", + "enum": [ + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER" + ] + }, + "paymentMethodId": { + "type": "string" + }, + "year": { + "type": "object", + "properties": { + "leap": { + "type": "boolean" + }, + "value": { + "type": "integer", + "format": "int32" + } + } + } + } + }, + "PaymentConfigurationRequest": { + "required": [ + "country", + "currency", + "operation", + "source" + ], + "type": "object", + "properties": { + "country": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "operation": { + "type": "string" + }, + "source": { + "type": "string" + } + } + }, + "PaymentMethodAddressRequest": { + "type": "object", + "properties": { + "invoiceCountry": { + "type": "string", + "writeOnly": true + }, + "invoiceState": { + "type": "string", + "writeOnly": true + }, + "paymentAddress": { + "type": "string", + "writeOnly": true + }, + "paymentCity": { + "type": "string", + "writeOnly": true + }, + "paymentZip": { + "type": "string", + "writeOnly": true + }, + "pmAddress": { + "type": "string" + }, + "pmCity": { + "type": "string" + }, + "pmCountry": { + "type": "string" + }, + "pmState": { + "type": "string" + }, + "pmZip": { + "type": "string" + } + } + }, + "PaymentRequest": { + "type": "object", + "properties": { + "cardHolder": { + "type": "string", + "writeOnly": true + }, + "last4": { + "type": "integer", + "format": "int64", + "writeOnly": true + }, + "month": { + "type": "integer", + "format": "int32", + "writeOnly": true + }, + "paymentCardInformation": { + "$ref": "#/components/schemas/PaymentCardInformation" + }, + "paymentMethodId": { + "type": "string", + "writeOnly": true + }, + "type": { + "type": "string", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + }, + "year": { + "type": "integer", + "format": "int32", + "writeOnly": true + } + } + }, + "PenalizeTimeEntryRequest": { + "required": [ + "penalty" + ], + "type": "object", + "properties": { + "penalty": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "penaltyTimePoint": { + "type": "string" + }, + "penaltyType": { + "type": "string", + "enum": [ + "START", + "END", + "DELETE", + "SPLIT" + ] + } + } + }, + "PendingChangeEmailRequestDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "hasActivePendingRequest": { + "type": "boolean" + } + } + }, + "PendingEmailChangeResponse": { + "type": "object", + "properties": { + "newEmailAddress": { + "type": "string" + } + } + }, + "Period": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "PeriodRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "writeOnly": true + }, + "endAsInstant": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "writeOnly": true + }, + "startAsInstant": { + "type": "string", + "format": "date-time" + } + } + }, + "PeriodV1Request": { + "type": "object", + "properties": { + "days": { + "maximum": 999, + "minimum": 1, + "type": "integer", + "description": "Provide number of days.", + "format": "int32", + "example": 3 + }, + "end": { + "type": "string", + "description": "Provide end date in YYYY-MM-DD format.", + "example": "2021-12-25" + }, + "start": { + "type": "string", + "description": "Provide start date in YYYY-MM-DD format.", + "example": "2021-12-23" + } + }, + "description": "Represents period of time off request including start and end date." + }, + "PickerOptions": { + "type": "object" + }, + "PinCode": { + "type": "object", + "properties": { + "code": { + "type": "string" + } + } + }, + "PinCodeDto": { + "type": "object", + "properties": { + "code": { + "type": "string" + } + } + }, + "PinSettingDto": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "required": { + "type": "boolean" + } + } + }, + "PinSettingRequest": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "required": { + "type": "boolean" + } + } + }, + "PolicyAssignmentFullDto": { + "type": "object", + "properties": { + "balance": { + "type": "number", + "format": "double" + }, + "id": { + "type": "string" + }, + "policy": { + "$ref": "#/components/schemas/PolicyDto" + }, + "policyId": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE" + ] + }, + "used": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "PolicyDto": { + "type": "object", + "description": "PolicyDto", + "oneOf": [ + { + "$ref": "#/components/schemas/PolicyFullDto" + }, + { + "$ref": "#/components/schemas/PolicyRedactedDto" + } + ], + "properties": { + "allowHalfDay": { + "type": "boolean" + }, + "allowNegativeBalance": { + "type": "boolean" + }, + "color": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceDto" + }, + "timeUnit": { + "type": "string", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "workspaceId": { + "type": "string" + } + } + }, + "PolicyDtoV1": { + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean", + "description": "Indicates whether the half day is allowed.", + "example": false + }, + "allowNegativeBalance": { + "type": "boolean", + "description": "Indicates whether the negative balance is allowed.", + "example": true + }, + "approve": { + "$ref": "#/components/schemas/ApproveDto" + }, + "archived": { + "type": "boolean", + "description": "Indicates whether the policy is archived.", + "example": true + }, + "automaticAccrual": { + "$ref": "#/components/schemas/AutomaticAccrualDto" + }, + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationDto" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the policy is applied to future new users.", + "example": false + }, + "id": { + "type": "string", + "description": "Represents policy identifier across the system.", + "example": "5b715612b079875110791111" + }, + "name": { + "type": "string", + "description": "Represents the name of the policy.", + "example": "Days" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceDto" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system." + }, + "timeUnit": { + "type": "string", + "description": "Represents the time unit of the policy.", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents user groups' identifiers across the system. Indicates which user groups are included in the policy.", + "example": [ + "5b715612b079875110791342", + "5b715612b079875110791324", + "5b715612b079875110793142" + ], + "items": { + "type": "string", + "description": "Represents user groups' identifiers across the system. Indicates which user groups are included in the policy.", + "example": "[\"5b715612b079875110791342\",\"5b715612b079875110791324\",\"5b715612b079875110793142\"]" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents users' identifiers across the system. Indicates which users are included in the policy.", + "example": [ + "5b715612b079875110791432", + "5b715612b079875110791234" + ], + "items": { + "type": "string", + "description": "Represents users' identifiers across the system. Indicates which users are included in the policy.", + "example": "[\"5b715612b079875110791432\",\"5b715612b079875110791234\"]" + } + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "5b715612b079875110792222" + } + } + }, + "PolicyFullDto": { + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean" + }, + "allowNegativeBalance": { + "type": "boolean" + }, + "approve": { + "$ref": "#/components/schemas/ApproveDto" + }, + "archived": { + "type": "boolean" + }, + "automaticAccrual": { + "$ref": "#/components/schemas/AutomaticAccrualDto" + }, + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationDto" + }, + "color": { + "type": "string" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceDto" + }, + "timeUnit": { + "type": "string", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "PolicyProjection": { + "type": "object", + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "PolicyRedactedDto": { + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean" + }, + "allowNegativeBalance": { + "type": "boolean" + }, + "color": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceDto" + }, + "timeUnit": { + "type": "string", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "workspaceId": { + "type": "string" + } + } + }, + "ProductAccessDto": { + "type": "object", + "properties": { + "authResponse": { + "$ref": "#/components/schemas/AuthResponse" + }, + "organizationName": { + "type": "string" + } + } + }, + "ProductExchangeTokenDto": { + "type": "object", + "properties": { + "token": { + "type": "string" + } + } + }, + "ProjectDto": { + "type": "object", + "properties": { + "color": { + "type": "string" + }, + "duration": { + "type": "string" + }, + "id": { + "type": "string" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "note": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ProjectDtoImpl": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "budgetEstimate": { + "$ref": "#/components/schemas/EstimateWithOptionsDto" + }, + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "color": { + "type": "string" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currency": { + "$ref": "#/components/schemas/CurrencyDto" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "estimate": { + "$ref": "#/components/schemas/EstimateDto" + }, + "estimateReset": { + "$ref": "#/components/schemas/EstimateResetDto" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isPublic": { + "type": "boolean", + "writeOnly": true + }, + "isTemplate": { + "type": "boolean", + "writeOnly": true + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "note": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "template": { + "type": "boolean" + }, + "timeEstimate": { + "$ref": "#/components/schemas/TimeEstimateDto" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ProjectDtoImplV1": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Indicates whether project is archived or not." + }, + "billable": { + "type": "boolean", + "description": "Indicates whether project is billable or not." + }, + "budgetEstimate": { + "$ref": "#/components/schemas/EstimateWithOptionsDto" + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "9t641568b07987035750704" + }, + "clientName": { + "type": "string", + "description": "Represents client name.", + "example": "Client X" + }, + "color": { + "type": "string", + "description": "Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#000000" + }, + "costRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "duration": { + "type": "string", + "description": "Represents project duration in milliseconds.", + "example": "60000" + }, + "estimate": { + "$ref": "#/components/schemas/EstimateDtoV1" + }, + "estimateReset": { + "$ref": "#/components/schemas/EstimateResetDto" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "id": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "isPublic": { + "type": "boolean", + "writeOnly": true + }, + "isTemplate": { + "type": "boolean", + "writeOnly": true + }, + "memberships": { + "type": "array", + "description": "Represents a list of membership objects.", + "items": { + "$ref": "#/components/schemas/MembershipDtoV1" + } + }, + "name": { + "type": "string", + "description": "Represents a project name.", + "example": "Software Development" + }, + "note": { + "type": "string", + "description": "Represents project note.", + "example": "This is a sample note for the project." + }, + "public": { + "type": "boolean", + "description": "Indicates whether project is public or not." + }, + "template": { + "type": "boolean" + }, + "timeEstimate": { + "$ref": "#/components/schemas/TimeEstimateDto" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ProjectDtoV1": { + "type": "object", + "properties": { + "color": { + "type": "string", + "description": "Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#000000" + }, + "duration": { + "type": "string", + "description": "Represents project duration in milliseconds.", + "example": "60000" + }, + "id": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "memberships": { + "type": "array", + "description": "Represents a list of membership objects.", + "items": { + "$ref": "#/components/schemas/MembershipDtoV1" + } + }, + "name": { + "type": "string", + "description": "Represents a project name.", + "example": "Software Development" + }, + "note": { + "type": "string", + "description": "Represents project note.", + "example": "This is a sample note for the project." + }, + "public": { + "type": "boolean", + "description": "Indicates whether project is public or not." + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "ProjectEstimateRequest": { + "type": "object", + "properties": { + "budgetEstimate": { + "$ref": "#/components/schemas/EstimateWithOptionsRequest" + }, + "estimateReset": { + "$ref": "#/components/schemas/EstimateResetRequest" + }, + "timeEstimate": { + "$ref": "#/components/schemas/TimeEstimateRequest" + } + } + }, + "ProjectFavoritesDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "projectId": { + "type": "string" + } + } + }, + "ProjectFilterRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "client-status": { + "type": "string", + "writeOnly": true, + "x-go-name": "Clientstatus" + }, + "clientIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "clientStatus": { + "type": "string", + "x-go-name": "Clientstatus1" + }, + "clients": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + }, + "contains-client": { + "type": "boolean", + "writeOnly": true, + "x-go-name": "Containsclient" + }, + "contains-user": { + "type": "boolean", + "writeOnly": true, + "x-go-name": "Containsuser" + }, + "containsClient": { + "type": "boolean", + "x-go-name": "Containsclient1" + }, + "containsUser": { + "type": "boolean", + "x-go-name": "Containsuser1" + }, + "hydrated": { + "type": "boolean" + }, + "is-template": { + "type": "boolean", + "writeOnly": true, + "x-go-name": "Istemplate" + }, + "isTemplate": { + "type": "boolean", + "x-go-name": "Istemplate1" + }, + "name": { + "type": "string" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "page-size": { + "type": "integer", + "format": "int32", + "writeOnly": true, + "x-go-name": "Pagesize" + }, + "pageSize": { + "type": "integer", + "format": "int32", + "x-go-name": "Pagesize1" + }, + "sort-column": { + "type": "string", + "writeOnly": true, + "x-go-name": "Sortcolumn" + }, + "sort-order": { + "type": "string", + "writeOnly": true, + "x-go-name": "Sortorder" + }, + "sortColumn": { + "type": "string", + "x-go-name": "Sortcolumn1" + }, + "sortOrder": { + "type": "string", + "x-go-name": "Sortorder1" + }, + "strict-name-search": { + "type": "boolean", + "writeOnly": true, + "x-go-name": "Strictnamesearch" + }, + "strictNameSearch": { + "type": "boolean", + "x-go-name": "Strictnamesearch1" + }, + "user-status": { + "type": "string", + "writeOnly": true, + "x-go-name": "Userstatus" + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userStatus": { + "type": "string", + "x-go-name": "Userstatus1" + }, + "users": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + } + } + }, + "ProjectFullDto": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "billableDuration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "billableTime": { + "type": "number", + "format": "double" + }, + "budget": { + "type": "number", + "format": "double" + }, + "budgetEstimate": { + "$ref": "#/components/schemas/EstimateWithOptionsDto" + }, + "client": { + "$ref": "#/components/schemas/ClientDto" + }, + "clientId": { + "type": "string" + }, + "color": { + "type": "string" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currency": { + "$ref": "#/components/schemas/CurrencyDto" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "entriesProgress": { + "type": "number", + "format": "double" + }, + "estimate": { + "$ref": "#/components/schemas/EstimateDto" + }, + "estimateReset": { + "$ref": "#/components/schemas/EstimateResetDto" + }, + "estimateResetDto": { + "$ref": "#/components/schemas/EstimateResetDto" + }, + "expenseBillableAmount": { + "type": "number", + "format": "double" + }, + "expenseNonBillableAmount": { + "type": "number", + "format": "double" + }, + "expensesProgress": { + "type": "number", + "format": "double" + }, + "favorite": { + "type": "boolean" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isFavorite": { + "type": "boolean", + "writeOnly": true + }, + "isPublic": { + "type": "boolean", + "writeOnly": true + }, + "isTemplate": { + "type": "boolean", + "writeOnly": true + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "nonBillableDuration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "note": { + "type": "string" + }, + "permissions": { + "$ref": "#/components/schemas/ProjectFullDto" + }, + "progress": { + "type": "number", + "format": "double" + }, + "public": { + "type": "boolean" + }, + "taskCount": { + "type": "integer", + "format": "int32" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDto" + } + }, + "template": { + "type": "boolean" + }, + "timeEstimate": { + "$ref": "#/components/schemas/TimeEstimateDto" + }, + "workspaceId": { + "type": "string" + } + } + }, + "ProjectId": { + "type": "object", + "properties": { + "dateOfCreationFromObjectId": { + "type": "string", + "format": "date-time" + } + } + }, + "ProjectIdsRequest": { + "type": "object", + "properties": { + "excludedIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "searchValue": { + "type": "string" + } + } + }, + "ProjectInfoDto": { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "clientName": { + "type": "string", + "description": "Represents client name.", + "example": "Client X" + }, + "color": { + "type": "string", + "description": "Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#000000" + }, + "id": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "name": { + "type": "string", + "description": "Represents a project name.", + "example": "Software Development" + } + } + }, + "ProjectPatchRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "isPublic": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "note": { + "type": "string" + } + } + }, + "ProjectReportFilterRequest": { + "type": "object", + "properties": { + "archived": { + "type": "string" + }, + "clients": { + "$ref": "#/components/schemas/ContainsArchivedFilterRequest" + }, + "excludedIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "filterOptions": { + "$ref": "#/components/schemas/ReportFilterOptions" + }, + "ignoreResultGrouping": { + "type": "boolean" + }, + "includedIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "options": { + "$ref": "#/components/schemas/ReportFilterOptions" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "pageSize": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "string", + "writeOnly": true + } + } + }, + "ProjectRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether project is billable or not." + }, + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "9t641568b07987035750704" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string", + "description": "Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#000000" + }, + "costRate": { + "$ref": "#/components/schemas/CostRateRequestV1" + }, + "estimate": { + "$ref": "#/components/schemas/EstimateRequest" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequestV1" + }, + "isPublic": { + "type": "boolean", + "description": "Indicates whether project is public or not." + }, + "memberships": { + "type": "array", + "description": "Represents a list of membership request objects.", + "items": { + "$ref": "#/components/schemas/MembershipRequest" + } + }, + "name": { + "maxLength": 250, + "minLength": 2, + "type": "string", + "description": "Represents a project name.", + "example": "Software Development" + }, + "note": { + "maxLength": 16384, + "type": "string", + "description": "Represents project note.", + "example": "This is a sample note for the project." + }, + "tasks": { + "type": "array", + "description": "Represents a list of task request objects.", + "items": { + "$ref": "#/components/schemas/TaskRequest" + } + } + } + }, + "ProjectStatus": { + "type": "object", + "properties": { + "billable": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "billableExpenses": { + "type": "number", + "format": "double" + }, + "nonBillable": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "nonBillableExpenses": { + "type": "number", + "format": "double" + }, + "progress": { + "type": "number", + "format": "double" + }, + "taskStatus": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/DurationAndAmount" + } + }, + "totalAmount": { + "type": "number", + "format": "double" + }, + "totalExpensesAmount": { + "type": "number", + "format": "double" + } + } + }, + "ProjectSummaryDto": { + "type": "object", + "properties": { + "color": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "ProjectTaskRequest": { + "required": [ + "projectName", + "taskName" + ], + "type": "object", + "properties": { + "projectName": { + "type": "string" + }, + "taskName": { + "type": "string" + } + } + }, + "ProjectTaskTupleDto": { + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + } + } + }, + "ProjectTaskTupleFullDto": { + "type": "object", + "properties": { + "project": { + "$ref": "#/components/schemas/ProjectDtoImpl" + }, + "projectId": { + "$ref": "#/components/schemas/ProjectDtoImpl" + }, + "task": { + "$ref": "#/components/schemas/TaskDtoImpl" + }, + "taskId": { + "$ref": "#/components/schemas/TaskDtoImpl" + }, + "type": { + "type": "string" + } + } + }, + "ProjectTaskTupleRequest": { + "required": [ + "projectId" + ], + "type": "object", + "properties": { + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "ProjectTotalsRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "pageSize": { + "maximum": 200, + "type": "integer", + "format": "int32" + }, + "search": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "statusFilter": { + "type": "string", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ] + } + } + }, + "ProjectTotalsRequestV1": { + "required": [ + "end", + "start" + ], + "type": "object", + "properties": { + "end": { + "type": "string", + "description": "Represents end date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2021-01-01T00:00:00Z" + }, + "page": { + "type": "integer", + "description": "Page number.", + "format": "int32", + "example": 1 + }, + "pageSize": { + "maximum": 200, + "type": "integer", + "description": "Page size.", + "format": "int32", + "example": 50 + }, + "search": { + "type": "string", + "description": "Represents term for searching projects and clients by name.", + "example": "Project name" + }, + "start": { + "type": "string", + "description": "Represents start date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T00:00:00Z" + }, + "statusFilter": { + "type": "string", + "description": "Filters assignments by status.", + "example": "PUBLISHED", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ] + } + } + }, + "ProjectsByClientDto": { + "type": "object", + "properties": { + "client": { + "$ref": "#/components/schemas/ClientDto" + }, + "projects": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectFullDto" + } + }, + "projectsCount": { + "type": "integer", + "format": "int32" + } + } + }, + "PtoRequestPeriodDto": { + "type": "object", + "properties": { + "halfDay": { + "type": "boolean" + }, + "halfDayHours": { + "$ref": "#/components/schemas/Period" + }, + "halfDayPeriod": { + "type": "string" + }, + "period": { + "$ref": "#/components/schemas/Period" + } + } + }, + "PtoTeamMemberDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "PtoTeamMembersAndCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PtoTeamMemberDto" + } + } + } + }, + "PublishAssignmentsRequest": { + "type": "object", + "properties": { + "end": { + "type": "string" + }, + "notifyUsers": { + "type": "boolean" + }, + "search": { + "type": "string" + }, + "start": { + "type": "string" + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "viewType": { + "type": "string", + "enum": [ + "PROJECTS", + "TEAM", + "ALL" + ] + } + } + }, + "PublishAssignmentsRequestV1": { + "required": [ + "end", + "start" + ], + "type": "object", + "properties": { + "end": { + "type": "string", + "description": "Represents end date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2021-01-01T00:00:00Z" + }, + "notifyUsers": { + "type": "boolean", + "description": "Indicates whether to notify users when assignment is published." + }, + "search": { + "type": "string", + "description": "Represents a search string.", + "example": "search keyword" + }, + "start": { + "type": "string", + "description": "Represents start date in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequestV1" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequestV1" + }, + "viewType": { + "type": "string", + "description": "Represents view type.", + "example": "PROJECTS", + "enum": [ + "PROJECTS", + "TEAM", + "ALL" + ] + } + } + }, + "PumbleConnectedDto": { + "type": "object", + "properties": { + "connected": { + "type": "boolean" + }, + "isConnected": { + "type": "boolean", + "writeOnly": true + }, + "pumbleWorkspaceId": { + "type": "string" + }, + "pumbleWorkspaceName": { + "type": "string" + } + } + }, + "PumbleInitialConnectionDto": { + "type": "object", + "properties": { + "skippedUsers": { + "type": "integer", + "format": "int32" + } + } + }, + "PumbleIntegrationRequest": { + "type": "object", + "properties": { + "pumbleWorkspaceId": { + "type": "string" + } + } + }, + "PumbleIntegrationSettingsDto": { + "type": "object", + "properties": { + "showChatWidget": { + "type": "boolean" + } + } + }, + "RateDto": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an amount as integer.", + "format": "int32", + "example": 10500 + }, + "currency": { + "type": "string", + "description": "Represents a currency.", + "example": "USD" + } + } + }, + "RateDtoV1": { + "type": "object", + "properties": { + "amount": { + "type": "integer", + "description": "Represents an amount as integer.", + "format": "int32", + "example": 10500 + }, + "currency": { + "type": "string", + "description": "Represents a currency.", + "example": "USD" + } + }, + "description": "Represents a cost rate object." + }, + "RateLimitSettingsDto": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string" + } + } + }, + "RateWithCurrencyRequestV1": { + "required": [ + "amount", + "currency" + ], + "type": "object", + "properties": { + "amount": { + "minimum": 0, + "type": "integer", + "description": "Represents an amount as integer.", + "format": "int32", + "example": 2000 + }, + "currency": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "Represents a currency.", + "example": "USD", + "default": "USD" + }, + "since": { + "type": "string", + "description": "Represents a date and time in yyyy-MM-ddThh:mm:ssZ format.", + "example": "2020-01-01T00:00:00Z" + } + } + }, + "ReadNewsRequest": { + "required": [ + "newsIds" + ], + "type": "object", + "properties": { + "newsIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "RecurringAssignmentDto": { + "type": "object", + "properties": { + "repeat": { + "type": "boolean", + "description": "Indicates whether assignment is recurring or not." + }, + "seriesId": { + "type": "string", + "description": "Represents series identifier.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "weeks": { + "type": "integer", + "description": "Represents number of weeks for thhis assignment.", + "format": "int32", + "example": 5 + } + } + }, + "RecurringAssignmentRequest": { + "type": "object", + "properties": { + "repeat": { + "type": "boolean", + "description": "Indicates whether assignment is recurring or not." + }, + "weeks": { + "maximum": 99, + "minimum": 1, + "type": "integer", + "description": "Indicates number of weeks for assignment.", + "format": "int32", + "example": 5 + } + } + }, + "RecurringAssignmentRequestV1": { + "required": [ + "weeks" + ], + "type": "object", + "properties": { + "repeat": { + "type": "boolean", + "description": "Indicates whether assignment is recurring or not." + }, + "weeks": { + "maximum": 99, + "minimum": 1, + "type": "integer", + "description": "Indicates number of weeks for assignment.", + "format": "int32", + "example": 5 + } + } + }, + "RefreshTokenRequest": { + "required": [ + "refreshToken" + ], + "type": "object", + "properties": { + "refreshToken": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "RegionDto": { + "type": "object", + "properties": { + "currentlyActive": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "region": { + "type": "string", + "writeOnly": true + }, + "url": { + "type": "string" + } + } + }, + "RejectTimeOffRequestRequest": { + "required": [ + "rejectionNote" + ], + "type": "object", + "properties": { + "rejectionNote": { + "type": "string" + } + } + }, + "RemindToApproveRequest": { + "type": "object", + "properties": { + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "RemindToSubmitAndTrackRequest": { + "type": "object", + "properties": { + "end": { + "type": "string" + }, + "remindToTrack": { + "type": "boolean" + }, + "start": { + "type": "string" + }, + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + } + } + }, + "ReminderDto": { + "type": "object", + "properties": { + "dateRange": { + "type": "string", + "enum": [ + "DAY", + "WEEK", + "MONTH" + ] + }, + "days": { + "type": "array", + "items": { + "type": "integer", + "format": "int32" + } + }, + "hours": { + "type": "number", + "format": "double" + }, + "id": { + "type": "string" + }, + "less": { + "type": "boolean" + }, + "receivers": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "ReorderFavoriteEntriesRequest": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "ReorderInvoiceItemRequest": { + "required": [ + "currentPosition", + "newPosition" + ], + "type": "object", + "properties": { + "currentPosition": { + "minimum": 1, + "type": "integer", + "format": "int32" + }, + "newPosition": { + "minimum": 1, + "type": "integer", + "format": "int32" + } + } + }, + "ReportFilterOptions": { + "type": "object", + "properties": { + "scope": { + "type": "string" + } + } + }, + "ReportFilterUsersWithCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32" + }, + "idNamePairs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/IdNamePairDto" + } + } + } + }, + "ResendUnlockAccountEmailForKiosk": { + "required": [ + "email" + ], + "type": "object", + "properties": { + "email": { + "type": "string" + } + } + }, + "RespondToInvitationRequest": { + "required": [ + "userId", + "workspaceId" + ], + "type": "object", + "properties": { + "invitationCode": { + "type": "string" + }, + "invitationId": { + "type": "string" + }, + "limboTokenRequest": { + "$ref": "#/components/schemas/LimboTokenRequest" + }, + "notificationId": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "RestError": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + } + } + }, + "RoleDetailsDtoV1": { + "type": "object", + "properties": { + "role": { + "$ref": "#/components/schemas/RoleDtoV1" + }, + "userId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "RoleDtoV1": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Represents role identifier across the system.", + "example": "60f91b3ffdaf031696ec61a8" + }, + "name": { + "type": "string", + "description": "Represents a role name.", + "example": "Administrator" + }, + "source": { + "$ref": "#/components/schemas/AuthorizationSourceDtoV1" + } + }, + "description": "Represents a role data transfer object." + }, + "RoleEntityDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source": { + "$ref": "#/components/schemas/AuthorizationSourceDto" + } + } + }, + "RoleInfoDto": { + "type": "object", + "properties": { + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleEntityDto" + } + }, + "formatterRoleName": { + "type": "string" + }, + "role": { + "type": "string" + } + } + }, + "RoleNameDto": { + "type": "object", + "properties": { + "role": { + "type": "string" + } + } + }, + "RoleRequestV1": { + "required": [ + "entityId", + "role", + "sourceType" + ], + "type": "object", + "properties": { + "entityId": { + "type": "string", + "description": "Represents entity identifier across the system.", + "example": "60f924bafdaf031696ec6218" + }, + "role": { + "type": "string", + "description": "Represents valid role.", + "example": "WORKSPACE_ADMIN", + "enum": [ + "WORKSPACE_ADMIN", + "TEAM_MANAGER", + "PROJECT_MANAGER" + ] + }, + "sourceType": { + "type": "string", + "description": "Represents the source type of this request.\nThis helps the API to determine on where to select this 'entity', and applies a corresponding\naction base on the endpoint.\nThe entityId should be relative to this source, and can be used whenever the endpoint needs to\naccess a certain resource. e.g. User group (USER_GROUP)", + "example": "USER_GROUP", + "enum": [ + "USER_GROUP" + ] + } + } + }, + "RoundDto": { + "type": "object", + "properties": { + "minutes": { + "type": "string", + "example": "15" + }, + "round": { + "type": "string", + "example": "Round to nearest" + } + } + }, + "SAML2ConfigurationDto": { + "type": "object", + "properties": { + "assertionConsumerServiceUrl": { + "type": "string" + }, + "certificates": { + "type": "array", + "items": { + "type": "string" + } + }, + "enabled": { + "type": "boolean" + }, + "forceSAML2": { + "type": "boolean" + }, + "loginUrl": { + "type": "string" + }, + "logoutUrl": { + "type": "string" + }, + "metadataUrl": { + "type": "string" + }, + "relyingPartyIdentifier": { + "type": "string" + } + } + }, + "SAML2ConfigurationRequest": { + "required": [ + "assertionConsumerServiceUrl", + "loginUrl", + "metadataUrl", + "relyingPartyIdentifier" + ], + "type": "object", + "properties": { + "assertionConsumerServiceUrl": { + "type": "string" + }, + "certificates": { + "type": "array", + "items": { + "type": "string" + } + }, + "enabled": { + "type": "boolean" + }, + "forceSAML2": { + "type": "boolean" + }, + "loginUrl": { + "type": "string" + }, + "logoutUrl": { + "type": "string" + }, + "metadataUrl": { + "type": "string" + }, + "relyingPartyIdentifier": { + "type": "string" + } + } + }, + "SAML2LoginSettingsDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "forceSAML2": { + "type": "boolean" + }, + "loginUrl": { + "type": "string" + }, + "logoutUrl": { + "type": "string" + }, + "samlRequest": { + "type": "string" + } + } + }, + "SEOEventsTrackingRequest": { + "type": "object", + "properties": { + "analyticsUserId": { + "type": "string" + }, + "pageUrl": { + "type": "string" + } + } + }, + "SMTPConfigurationDto": { + "type": "object", + "properties": { + "debugEnabled": { + "type": "boolean" + }, + "emailAddress": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "fromName": { + "type": "string" + }, + "host": { + "type": "string" + }, + "password": { + "type": "string" + }, + "port": { + "type": "integer", + "format": "int32" + }, + "startTlsEnabled": { + "type": "boolean" + }, + "username": { + "type": "string" + } + } + }, + "SalesPanelUserDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "REGULAR", + "LIMITED" + ] + } + } + }, + "SalesPanelWorkspaceUsersDto": { + "type": "object", + "properties": { + "domainName": { + "type": "string" + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SalesPanelUserDto" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "SchedulingExcludeDay": { + "type": "object", + "properties": { + "date": { + "type": "string", + "description": "Represents a datetimr in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "type": { + "type": "string", + "description": "Represents the scheduling exclude day enum.", + "example": "WEEKEND", + "enum": [ + "WEEKEND", + "HOLIDAY", + "TIME_OFF" + ] + } + } + }, + "SchedulingProjectsBaseDto": { + "type": "object" + }, + "SchedulingProjectsDto": { + "type": "object", + "properties": { + "assignments": { + "type": "array", + "items": { + "type": "object" + } + }, + "clientName": { + "type": "string" + }, + "hasProjectAccess": { + "type": "boolean" + }, + "projectArchived": { + "type": "boolean" + }, + "projectBillable": { + "type": "boolean" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "totalHours": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "SchedulingProjectsTotalsDtoV1": { + "type": "object", + "properties": { + "assignments": { + "type": "array", + "description": "Represents a list of assignment per day objects.", + "items": { + "$ref": "#/components/schemas/AssignmentPerDayDto" + } + }, + "clientName": { + "type": "string", + "description": "Represents project name.", + "example": "Software Development" + }, + "milestones": { + "type": "array", + "description": "Represents a list of milestone objects.", + "items": { + "$ref": "#/components/schemas/MilestoneDto" + } + }, + "projectArchived": { + "type": "boolean", + "description": "Indicates whether project is archived or not." + }, + "projectBillable": { + "type": "boolean", + "description": "Indicates whether project is billable or not." + }, + "projectColor": { + "type": "string", + "description": "Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#000000" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "56b687e29ae1f428e7ebe504" + }, + "projectName": { + "type": "string", + "description": "Represents project name.", + "example": "Software Development" + }, + "totalHours": { + "type": "number", + "description": "Represents project total hours as double.", + "format": "double", + "example": 490.5 + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "SchedulingProjectsTotalsWithoutBillableDto": { + "type": "object", + "properties": { + "assignments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AssignmentPerDayDto" + } + }, + "clientName": { + "type": "string" + }, + "milestones": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MilestoneDto" + } + }, + "projectArchived": { + "type": "boolean" + }, + "projectBillable": { + "type": "boolean" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "totalHours": { + "type": "number", + "format": "double" + }, + "workspaceId": { + "type": "string" + } + } + }, + "SchedulingSettingsDto": { + "type": "object", + "properties": { + "canSeeBillableAndCostAmount": { + "type": "boolean" + }, + "enabled": { + "type": "boolean" + }, + "everyoneCanSeeAllAssignments": { + "type": "boolean" + }, + "whoCanCreateAssignments": { + "type": "string", + "enum": [ + "ADMINS", + "ADMINS_AND_PROJECT_MANAGERS", + "ANYONE" + ] + } + } + }, + "SchedulingUsersBaseDto": { + "type": "object" + }, + "SchedulingUsersTotalsDtoV1": { + "type": "object", + "properties": { + "capacityPerDay": { + "type": "number", + "description": "Represents capacity per day in seconds. For a 7hr work day, value is 25200.", + "format": "double", + "example": 25200 + }, + "totalHoursPerDay": { + "type": "array", + "description": "Represents total hours per day object.", + "items": { + "$ref": "#/components/schemas/TotalsPerDayDto" + } + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "72k687e29ae1f428e7ebe109" + }, + "userImage": { + "type": "string", + "description": "Represents url path to user image." + }, + "userName": { + "type": "string", + "description": "Represents user name.", + "example": "John Doe" + }, + "userStatus": { + "type": "string", + "description": "Represents user status.", + "example": "ACTIVE" + }, + "workingDays": { + "$ref": "#/components/schemas/DayOfWeek" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "SchedulingUsersTotalsWithoutBillableDto": { + "type": "object", + "properties": { + "capacityPerDay": { + "type": "number", + "format": "double" + }, + "totalHoursPerDay": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TotalsPerDayDto" + } + }, + "totalsPerDay": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TotalsPerDayDto" + } + }, + "userId": { + "type": "string" + }, + "userImage": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "userStatus": { + "type": "string" + }, + "weeklyCapacity": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WeeklyCapacityDto" + } + }, + "workingDays": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "SendInvoiceEmailRequest": { + "required": [ + "emailData" + ], + "type": "object", + "properties": { + "attachExpenses": { + "type": "boolean" + }, + "attachInvoice": { + "type": "boolean" + }, + "emailData": { + "$ref": "#/components/schemas/InvoiceEmailDataRequest" + }, + "sendMeCopy": { + "type": "boolean" + } + } + }, + "SetWorkspaceMembershipStatusRequest": { + "type": "object", + "properties": { + "membershipStatus": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "status": { + "type": "string", + "writeOnly": true + }, + "userId": { + "type": "string" + }, + "userIds": { + "maxItems": 250, + "minItems": 1, + "type": "array", + "deprecated": true, + "items": { + "type": "string", + "deprecated": true + } + } + } + }, + "SetupIntentDto": { + "type": "object", + "properties": { + "clientSecret": { + "type": "string" + } + } + }, + "ShiftScheduleRequest": { + "type": "object", + "properties": { + "from": { + "type": "string", + "format": "date-time" + }, + "to": { + "type": "string", + "format": "date-time" + } + } + }, + "SidebarItemRequest": { + "type": "object", + "properties": { + "interactive": { + "type": "boolean" + }, + "order": { + "minimum": 1, + "type": "integer", + "format": "int32" + }, + "sidebarItem": { + "type": "string" + }, + "sidebarSection": { + "type": "string" + } + } + }, + "SidebarResponseDto": { + "type": "object", + "properties": { + "sidebar": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "SmtpConfigurationRequest": { + "type": "object", + "properties": { + "debugEnabled": { + "type": "boolean" + }, + "emailAddress": { + "type": "string" + }, + "enabled": { + "type": "boolean", + "writeOnly": true + }, + "fromName": { + "type": "string" + }, + "host": { + "type": "string", + "writeOnly": true + }, + "password": { + "type": "string", + "writeOnly": true + }, + "port": { + "type": "integer", + "format": "int32", + "writeOnly": true + }, + "startTlsEnabled": { + "type": "boolean" + }, + "username": { + "type": "string", + "writeOnly": true + } + } + }, + "SplitAssignmentRequest": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time" + } + } + }, + "StartStopwatchRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "continueStrategy": { + "type": "string" + }, + "customAttributes": { + "maxItems": 10, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/CreateCustomAttributeRequest" + } + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "type": { + "type": "string" + } + } + }, + "StatusTimeOffRequestV1Request": { + "type": "object", + "properties": { + "note": { + "type": "string", + "description": "Provide the note you would like to use for changing the time off request.", + "example": "Time Off Request Note" + }, + "status": { + "type": "string", + "description": "Provide the status you would like to use for changing the time off request.", + "example": "APPROVED", + "enum": [ + "APPROVED", + "REJECTED" + ] + } + } + }, + "StopStopwatchRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "projectId": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "STOPPED" + ] + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "StopTimeEntryRequest": { + "required": [ + "end" + ], + "type": "object", + "properties": { + "end": { + "type": "string", + "description": "Represents an end date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2021-01-01T00:00:00Z" + } + } + }, + "StripeInvoiceDto": { + "type": "object", + "properties": { + "amount": { + "type": "string" + }, + "cakeProduct": { + "type": "string", + "enum": [ + "CLOCKIFY", + "MARKETPLACE", + "PUMBLE", + "PLAKY", + "BUNDLE", + "UNKNOWN" + ] + }, + "currency": { + "type": "string" + }, + "date": { + "type": "string" + }, + "description": { + "type": "string", + "enum": [ + "MONTHLY_RENEWAL", + "YEARLY_RENEWAL", + "ADDED_SEATS", + "REMOVED_SEATS", + "PLAN_UPGRADE", + "UNKNOWN" + ] + }, + "invoiceId": { + "type": "string" + }, + "invoicePay": { + "type": "string" + }, + "invoicePdf": { + "type": "string" + }, + "status": { + "type": "string" + } + } + }, + "StripeInvoicePayDto": { + "type": "object", + "properties": { + "invoicePay": { + "type": "string" + } + } + }, + "StripeInvoicesDto": { + "type": "object", + "properties": { + "invoices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/StripeInvoiceDto" + } + }, + "nextPage": { + "type": "string" + } + } + }, + "SubmitApprovalRequest": { + "type": "object", + "properties": { + "period": { + "type": "string" + }, + "startTime": { + "type": "string" + } + } + }, + "SubscriptionCouponDto": { + "type": "object", + "properties": { + "coupon": { + "type": "string" + }, + "type": { + "type": "string" + }, + "used": { + "type": "boolean" + } + } + }, + "SubscriptionCouponRequest": { + "required": [ + "coupon" + ], + "type": "object", + "properties": { + "coupon": { + "type": "string" + } + } + }, + "SubscriptionCouponValidationResultDto": { + "type": "object", + "properties": { + "valid": { + "type": "boolean" + } + } + }, + "SummaryReportSettingsDto": { + "required": [ + "group", + "subgroup" + ], + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "subgroup": { + "type": "string" + } + } + }, + "SummaryReportSettingsDtoV1": { + "required": [ + "group", + "subgroup" + ], + "type": "object", + "properties": { + "group": { + "type": "string", + "example": "PROJECT" + }, + "subgroup": { + "type": "string", + "example": "CLIENT" + } + }, + "description": "Represents a summary report settings object." + }, + "SurveyQuestionDto": { + "type": "object", + "properties": { + "flows": { + "type": "array", + "items": { + "type": "string" + } + }, + "id": { + "type": "string" + }, + "localizationKey": { + "type": "string" + }, + "order": { + "type": "integer", + "format": "int32" + }, + "possibleAnswers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SurveyQuestionPossibleAnswerDto" + } + }, + "questionText": { + "type": "string" + }, + "questionType": { + "type": "string" + }, + "step": { + "type": "integer", + "format": "int32" + }, + "surveyType": { + "type": "string" + } + } + }, + "SurveyQuestionPossibleAnswerDto": { + "type": "object", + "properties": { + "answerText": { + "type": "string" + }, + "answerType": { + "type": "string" + }, + "id": { + "type": "string" + }, + "localizationKey": { + "type": "string" + } + } + }, + "SurveyQuestionPossibleAnswerId": { + "type": "object", + "properties": { + "dateOfCreationFromObjectId": { + "type": "string", + "format": "date-time" + } + } + }, + "SurveyResponseAnswer": { + "type": "object", + "properties": { + "answerId": { + "$ref": "#/components/schemas/SurveyQuestionPossibleAnswerId" + }, + "freeInput": { + "type": "string" + } + } + }, + "SurveyResponseAnswerDto": { + "type": "object", + "properties": { + "answerId": { + "type": "string" + }, + "freeInput": { + "type": "string" + } + } + }, + "SurveyResponseDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "response": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SurveyResponseAnswerDto" + } + } + }, + "status": { + "type": "string" + }, + "surveyFlow": { + "type": "string" + }, + "surveyType": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "SyncClientsRequest": { + "required": [ + "clientSyncId" + ], + "type": "object", + "properties": { + "clientSyncId": { + "type": "string" + } + } + }, + "SyncProjectsRequest": { + "required": [ + "projectSyncId" + ], + "type": "object", + "properties": { + "projectSyncId": { + "type": "string" + } + } + }, + "SystemSettingsDefaultWorkspaceDto": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "workspaceId": { + "type": "string" + } + } + }, + "SystemSettingsDto": { + "type": "object", + "properties": { + "autoLogin": { + "type": "string" + }, + "createWorkspaceForbidden": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "loginPreference": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "multiFactorEnabled": { + "type": "boolean" + }, + "specialFeaturesActivated": { + "type": "boolean" + } + } + }, + "SystemSettingsRequest": { + "type": "object", + "properties": { + "allDomainsValidByDefault": { + "type": "boolean" + }, + "createWorkspaceForbidden": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "specialFeaturesActivated": { + "type": "boolean" + } + } + }, + "TagDto": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Indicates whether tag is archived or not." + }, + "id": { + "type": "string", + "description": "Represents tag identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "name": { + "type": "string", + "description": "Represents tag name.", + "example": "Sprint1" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "TagDtoV1": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Indicates whether a tag is archived or not." + }, + "id": { + "type": "string", + "description": "Represents tag identifier across the system.", + "example": "21s687e29ae1f428e7ebe404" + }, + "name": { + "type": "string", + "description": "Represents tag name.", + "example": "Sprint1" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "TagIdsRequest": { + "type": "object", + "properties": { + "ids": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TagRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string" + } + } + }, + "TaskDto": { + "type": "object", + "properties": { + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "billable": { + "type": "boolean" + }, + "budgetEstimate": { + "type": "integer", + "format": "int64" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "estimate": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "progress": { + "type": "number", + "format": "double" + }, + "projectId": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "DONE", + "ALL" + ] + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "TaskDtoImpl": { + "type": "object", + "properties": { + "assigneeId": { + "type": "string", + "deprecated": true + }, + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "billable": { + "type": "boolean" + }, + "budgetEstimate": { + "type": "integer", + "format": "int64" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "estimate": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "progress": { + "type": "number", + "format": "double" + }, + "projectId": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "DONE", + "ALL" + ] + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "TaskDtoV1": { + "type": "object", + "properties": { + "assigneeId": { + "type": "string", + "deprecated": true + }, + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of assignee ids for the task.", + "example": [ + "45b687e29ae1f428e7ebe123", + "67s687e29ae1f428e7ebe678" + ], + "items": { + "type": "string", + "description": "Represents list of assignee ids for the task.", + "example": "[\"45b687e29ae1f428e7ebe123\",\"67s687e29ae1f428e7ebe678\"]" + } + }, + "billable": { + "type": "boolean", + "description": "Indicates whether a task is billable or not." + }, + "budgetEstimate": { + "type": "integer", + "description": "Represents a task budget estimate as long.", + "format": "int64", + "example": 10000 + }, + "costRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "duration": { + "type": "string", + "description": "Represents a task duration.", + "example": "PT1H30M" + }, + "estimate": { + "type": "string", + "description": "Represents a task duration estimate.", + "example": "PT1H30M" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "id": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "57a687e29ae1f428e7ebe107" + }, + "name": { + "type": "string", + "description": "Represents task name.", + "example": "Bugfixing" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "status": { + "$ref": "#/components/schemas/TaskStatus" + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of user group ids for the task.", + "example": [ + "67b687e29ae1f428e7ebe123", + "12s687e29ae1f428e7ebe678" + ], + "items": { + "type": "string", + "description": "Represents list of user group ids for the task.", + "example": "[\"67b687e29ae1f428e7ebe123\",\"12s687e29ae1f428e7ebe678\"]" + } + } + } + }, + "TaskFavoritesDto": { + "type": "object", + "properties": { + "_id": { + "type": "string", + "writeOnly": true, + "x-go-name": "Id" + }, + "id": { + "type": "string", + "x-go-name": "Id1" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TaskFullDto": { + "type": "object", + "properties": { + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "billable": { + "type": "boolean" + }, + "budgetEstimate": { + "type": "integer", + "format": "int64" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "estimate": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "favorite": { + "type": "boolean" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isFavorite": { + "type": "boolean", + "writeOnly": true + }, + "name": { + "type": "string" + }, + "progress": { + "type": "number", + "format": "double" + }, + "projectId": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "DONE", + "ALL" + ] + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "TaskId": { + "type": "object", + "properties": { + "dateOfCreationFromObjectId": { + "type": "string", + "format": "date-time" + } + } + }, + "TaskIdsRequest": { + "type": "object", + "properties": { + "ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TaskInfoDto": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "5b715448b0798751107918ab" + }, + "name": { + "type": "string", + "description": "Represents task name.", + "example": "Bugfixing" + } + } + }, + "TaskReportFilterRequest": { + "type": "object", + "properties": { + "clients": { + "$ref": "#/components/schemas/ContainsArchivedFilterRequest" + }, + "excludedIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "ignoreResultGrouping": { + "type": "boolean" + }, + "includedIds": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "ofIncludedIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "page": { + "type": "integer", + "format": "int32" + }, + "pageSize": { + "type": "integer", + "format": "int32" + }, + "projects": { + "$ref": "#/components/schemas/ContainsArchivedFilterRequest" + }, + "status": { + "type": "string" + } + } + }, + "TaskRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "assigneeId": { + "type": "string", + "deprecated": true + }, + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of assignee ids for the task.", + "example": [ + "45b687e29ae1f428e7ebe123", + "67s687e29ae1f428e7ebe678" + ], + "items": { + "type": "string", + "description": "Represents list of assignee ids for the task.", + "example": "[\"45b687e29ae1f428e7ebe123\",\"67s687e29ae1f428e7ebe678\"]" + } + }, + "billable": { + "type": "boolean", + "description": "Flag to set whether task is billable or not" + }, + "budgetEstimate": { + "minimum": 0, + "type": "integer", + "format": "int64", + "example": 10000 + }, + "costRate": { + "$ref": "#/components/schemas/CostRateRequest" + }, + "estimate": { + "type": "string", + "description": "Represents a task duration estimate.", + "example": "PT1H30M" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "id": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "57a687e29ae1f428e7ebe107" + }, + "name": { + "type": "string", + "description": "Represents task name.", + "example": "Bugfixing" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "5b641568b07987035750505e" + }, + "status": { + "type": "string", + "example": "DONE" + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of user group ids for the task.", + "example": [ + "67b687e29ae1f428e7ebe123", + "12s687e29ae1f428e7ebe678" + ], + "items": { + "type": "string", + "description": "Represents list of user group ids for the task.", + "example": "[\"67b687e29ae1f428e7ebe123\",\"12s687e29ae1f428e7ebe678\"]" + } + } + } + }, + "TaskRequestV1": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "assigneeId": { + "type": "string", + "deprecated": true + }, + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of assignee ids for the task.", + "example": [ + "45b687e29ae1f428e7ebe123", + "67s687e29ae1f428e7ebe678" + ], + "items": { + "type": "string", + "description": "Represents list of assignee ids for the task.", + "example": "[\"45b687e29ae1f428e7ebe123\",\"67s687e29ae1f428e7ebe678\"]" + } + }, + "budgetEstimate": { + "minimum": 0, + "type": "integer", + "description": "Represents a task budget estimate as long.", + "format": "int64", + "example": 10000 + }, + "estimate": { + "type": "string", + "description": "Represents a task duration estimate in ISO-8601 format.", + "example": "PT1H30M" + }, + "id": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "57a687e29ae1f428e7ebe107" + }, + "name": { + "maxLength": 1000, + "minLength": 1, + "type": "string", + "description": "Represents task name.", + "example": "Bugfixing" + }, + "status": { + "type": "string", + "description": "Represents task status.", + "example": "DONE", + "enum": [ + "ACTIVE", + "DONE", + "ALL" + ] + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "description": "Represents list of user group ids for the task.", + "example": [ + "67b687e29ae1f428e7ebe123", + "12s687e29ae1f428e7ebe678" + ], + "items": { + "type": "string", + "description": "Represents list of user group ids for the task.", + "example": "[\"67b687e29ae1f428e7ebe123\",\"12s687e29ae1f428e7ebe678\"]" + } + } + } + }, + "TaskStatus": { + "type": "string", + "description": "Represents task status.", + "enum": [ + "ACTIVE", + "DONE", + "ALL" + ] + }, + "TaskWithProjectDto": { + "type": "object", + "properties": { + "project": { + "$ref": "#/components/schemas/ProjectFullDto" + }, + "task": { + "$ref": "#/components/schemas/TaskFullDto" + } + } + }, + "TasksGroupedByProjectIdDto": { + "type": "object", + "properties": { + "clientName": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "tasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TaskDtoImpl" + } + } + } + }, + "TeamActivityDto": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "latestActivityItems": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LatestActivityItemDto" + } + }, + "project": { + "$ref": "#/components/schemas/ProjectInfoDto" + }, + "task": { + "$ref": "#/components/schemas/TaskInfoDto" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "totalTime": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "transformedActivityItems": { + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/LatestActivityItemDto" + } + }, + "user": { + "$ref": "#/components/schemas/TeamMemberInfoDto" + } + } + }, + "TeamMemberDto": { + "type": "object", + "properties": { + "accessEnabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "removeOptionEnabled": { + "type": "boolean" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleNameDto" + } + } + } + }, + "TeamMemberInfoDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "profilePicture": { + "type": "string" + } + } + }, + "TeamMemberRequest": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "TeamMembersAndCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TeamMemberDto" + } + } + } + }, + "TeamPolicyAssignmentsDistribution": { + "type": "object", + "properties": { + "superiorHasAssignments": { + "type": "boolean" + }, + "teamMembersHaveAssignments": { + "type": "boolean" + } + } + }, + "TemplateDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TemplateDtoImpl": { + "type": "object", + "properties": { + "entries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryWithCustomFieldsDto" + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "projectsAndTasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectTaskTupleDto" + } + }, + "userId": { + "type": "string" + }, + "weekStart": { + "type": "string", + "format": "date" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TemplateFullWithEntitiesFullDto": { + "type": "object", + "properties": { + "entries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeEntryFullDto" + } + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "projectsAndTasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectTaskTupleFullDto" + } + }, + "userId": { + "type": "string" + }, + "weekStart": { + "type": "string", + "format": "date" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TemplatePatchRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "TemplateRequest": { + "required": [ + "name", + "projectsAndTasks" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "projectsAndTasks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProjectTaskTupleRequest" + } + }, + "timeEntryIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "weekStart": { + "type": "string", + "format": "date" + } + } + }, + "TermDto": { + "type": "object", + "properties": { + "term": { + "type": "string" + } + } + }, + "TerminateSubscriptionRequest": { + "type": "object", + "properties": { + "notifyUser": { + "type": "boolean" + } + } + }, + "TimeEntriesDurationRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "TimeEntriesPatchRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "changeFields": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "DESCRIPTION", + "PROJECT", + "TASK", + "TAG", + "TAG_ADD", + "TIMEINTERVAL", + "BILLABLE", + "DATE", + "TIME", + "USER", + "CUSTOM_FIELDS", + "TYPE" + ] + } + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "projectId": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "timeEntryIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "userId": { + "type": "string" + } + } + }, + "TimeEntryApprovalStatusDto": { + "type": "object", + "properties": { + "approvalRequestId": { + "type": "string" + }, + "approvedCount": { + "type": "integer", + "format": "int32" + }, + "dateRange": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "entriesCount": { + "type": "integer", + "format": "int32" + }, + "hasUnSubmitted": { + "type": "boolean" + }, + "status": { + "type": "string" + }, + "submitterName": { + "type": "string" + }, + "total": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "unsubmittedEntriesCount": { + "type": "integer", + "format": "int64" + } + } + }, + "TimeEntryDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "locked": { + "type": "boolean" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "TimeEntryDtoImpl": { + "type": "object", + "properties": { + "approvalStatus": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + }, + "billable": { + "type": "boolean" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currentlyRunning": { + "type": "boolean" + }, + "customFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueFullDto" + } + }, + "description": { + "type": "string" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean" + }, + "kioskId": { + "type": "string" + }, + "projectCurrency": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryDtoImplV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether a time entry is billable." + }, + "customFieldValues": { + "type": "array", + "description": "Represents a list of custom field value objects.", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDtoV1" + } + }, + "description": { + "type": "string", + "description": "Represents time entry description.", + "example": "This is a sample time entry description." + }, + "id": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "isLocked": { + "type": "boolean", + "description": "Represents whether time entry is locked for modification." + }, + "kioskId": { + "type": "string", + "description": "Represents kiosk identifier across the system.", + "example": "94c777ddd3fcab07cfbb210d" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "tagIds": { + "type": "array", + "description": "Represents a list of tag identifiers across the system.", + "example": [ + "321r77ddd3fcab07cfbb567y", + "44x777ddd3fcab07cfbb88f" + ], + "items": { + "type": "string", + "description": "Represents a list of tag identifiers across the system.", + "example": "[\"321r77ddd3fcab07cfbb567y\",\"44x777ddd3fcab07cfbb88f\"]" + } + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "54m377ddd3fcab07cfbb432w" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDtoV1" + }, + "type": { + "type": "string", + "description": "Represents a time entry type enum.", + "example": "BREAK", + "enum": [ + "REGULAR", + "BREAK", + "HOLIDAY", + "TIME_OFF" + ] + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "TimeEntryDtoV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether a time entry is billable." + }, + "customFieldValues": { + "type": "array", + "description": "Represents a list of custom field value objects.", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDtoV1" + } + }, + "description": { + "type": "string", + "description": "Represents time entry description.", + "example": "This is a sample time entry description." + }, + "id": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "isLocked": { + "type": "boolean", + "description": "Represents whether time entry is locked for modification." + }, + "kioskId": { + "type": "string", + "description": "Represents kiosk identifier across the system.", + "example": "94c777ddd3fcab07cfbb210d" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "tagIds": { + "type": "array", + "description": "Represents a list of tag identifiers across the system.", + "example": [ + "321r77ddd3fcab07cfbb567y", + "44x777ddd3fcab07cfbb88f" + ], + "items": { + "type": "string", + "description": "Represents a list of tag identifiers across the system.", + "example": "[\"321r77ddd3fcab07cfbb567y\",\"44x777ddd3fcab07cfbb88f\"]" + } + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "54m377ddd3fcab07cfbb432w" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDtoV1" + }, + "type": { + "type": "string", + "description": "Represents a time entry type enum.", + "example": "BREAK", + "enum": [ + "REGULAR", + "BREAK", + "HOLIDAY", + "TIME_OFF" + ] + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "TimeEntryFullDto": { + "type": "object", + "properties": { + "approvalRequestId": { + "type": "string" + }, + "approvalStatus": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + }, + "billable": { + "type": "boolean" + }, + "customFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueFullDto" + } + }, + "description": { + "type": "string" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean" + }, + "kiosk": { + "$ref": "#/components/schemas/EntityIdNameDto" + }, + "kioskId": { + "type": "string" + }, + "project": { + "$ref": "#/components/schemas/ProjectDtoImpl" + }, + "projectCurrency": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + }, + "task": { + "$ref": "#/components/schemas/TaskDtoImpl" + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "totalBillable": { + "type": "integer", + "format": "int64" + }, + "totalBillableDecimal": { + "type": "number", + "format": "double" + }, + "type": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/UserDto" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryIdsRequest": { + "type": "object", + "properties": { + "timeEntryIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TimeEntryInfoDto": { + "type": "object", + "properties": { + "approvalRequestId": { + "type": "string", + "description": "Represents approval identifier across the system.", + "example": "5e4117fe8c625f38930d57b7" + }, + "billable": { + "type": "boolean", + "description": "Indicates whether time entry is billable or not." + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "customFieldValues": { + "type": "array", + "description": "Represents a list of custom field value objects.", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDto" + } + }, + "description": { + "type": "string", + "description": "Represents a time entry description.", + "example": "This is a sample time entry description." + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "5b715448b0798751107918ab" + }, + "isLocked": { + "type": "boolean", + "description": "Indicates whether time entry is locked or not." + }, + "project": { + "$ref": "#/components/schemas/ProjectInfoDto" + }, + "tags": { + "type": "array", + "description": "Represents a list of tag objects.", + "items": { + "$ref": "#/components/schemas/TagDto" + } + }, + "task": { + "$ref": "#/components/schemas/TaskInfoDto" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string", + "description": "Represents a time entry type enum.", + "example": "REGULAR", + "enum": [ + "REGULAR", + "BREAK", + "HOLIDAY", + "TIME_OFF" + ] + } + } + }, + "TimeEntryKioskInfoDto": { + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "isSwitched": { + "type": "boolean" + }, + "kioskId": { + "type": "string" + }, + "kioskName": { + "type": "string" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string", + "enum": [ + "REGULAR", + "BREAK", + "HOLIDAY", + "TIME_OFF" + ] + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryPatchSplitRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "projectId": { + "type": "string" + }, + "splitTime": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "startAsString": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + } + } + }, + "TimeEntryRecentlyUsedDto": { + "type": "object", + "properties": { + "billableBasedOnCurrentTaskAndProject": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "customFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDto" + } + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "projectBillable": { + "type": "boolean" + }, + "projectColor": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "projectName": { + "type": "string" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + }, + "taskId": { + "type": "string" + }, + "taskName": { + "type": "string" + } + } + }, + "TimeEntrySplitRequest": { + "type": "object", + "properties": { + "splitTime": { + "type": "string", + "format": "date-time" + } + } + }, + "TimeEntrySummaryDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "clientName": { + "type": "string" + }, + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueFullDto" + } + }, + "description": { + "type": "string" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean" + }, + "project": { + "$ref": "#/components/schemas/ProjectSummaryDto" + }, + "tags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TagDto" + } + }, + "task": { + "$ref": "#/components/schemas/TaskDto" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "totalBillable": { + "type": "integer", + "format": "int64" + }, + "totalBillableDecimal": { + "type": "number", + "format": "double" + }, + "user": { + "$ref": "#/components/schemas/UserSummaryDto" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryUpdatedDto": { + "type": "object", + "properties": { + "approvalRequestWithdrawn": { + "type": "boolean" + }, + "approvalStatus": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + }, + "billable": { + "type": "boolean" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currentlyRunning": { + "type": "boolean" + }, + "customFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueFullDto" + } + }, + "description": { + "type": "string" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean" + }, + "kioskId": { + "type": "string" + }, + "projectCurrency": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryUpdatedInfoDto": { + "type": "object", + "properties": { + "approvalStatus": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + }, + "auditMetadata": { + "$ref": "#/components/schemas/AuditMetadataDto" + }, + "billable": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "documentType": { + "type": "string", + "enum": [ + "TIME_ENTRY", + "TIME_ENTRY_CUSTOM_FIELD_VALUE", + "CUSTOM_ATTRIBUTE", + "EXPENSE", + "CUSTOM_FIELDS" + ] + }, + "id": { + "type": "string" + }, + "kioskId": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryWithCustomFieldsDto": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDto" + } + }, + "description": { + "type": "string" + }, + "id": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEntryWithRatesDtoV1": { + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether a time entry is billable." + }, + "costRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "customFieldValues": { + "type": "array", + "description": "Represents a list of custom field value objects.", + "items": { + "$ref": "#/components/schemas/CustomFieldValueDtoV1" + } + }, + "description": { + "type": "string", + "description": "Represents time entry description.", + "example": "This is a sample time entry description." + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "id": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "isLocked": { + "type": "boolean", + "description": "Represents whether time entry is locked for modification." + }, + "kioskId": { + "type": "string", + "description": "Represents kiosk identifier across the system.", + "example": "94c777ddd3fcab07cfbb210d" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "tagIds": { + "type": "array", + "description": "Represents a list of tag identifiers across the system.", + "example": [ + "321r77ddd3fcab07cfbb567y", + "44x777ddd3fcab07cfbb88f" + ], + "items": { + "type": "string", + "description": "Represents a list of tag identifiers across the system.", + "example": "[\"321r77ddd3fcab07cfbb567y\",\"44x777ddd3fcab07cfbb88f\"]" + } + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "54m377ddd3fcab07cfbb432w" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDtoV1" + }, + "type": { + "type": "string", + "description": "Represents a time entry type enum.", + "example": "BREAK", + "enum": [ + "REGULAR", + "BREAK", + "HOLIDAY", + "TIME_OFF" + ] + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "TimeEntryWithUsernameDto": { + "type": "object", + "properties": { + "approvalStatus": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "UNSUBMITTED" + ] + }, + "billable": { + "type": "boolean" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currentlyRunning": { + "type": "boolean" + }, + "customFieldValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldValueFullDto" + } + }, + "description": { + "type": "string" + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "isLocked": { + "type": "boolean" + }, + "kioskId": { + "type": "string" + }, + "projectCurrency": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + }, + "timeInterval": { + "$ref": "#/components/schemas/TimeIntervalDto" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeEstimateDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "estimate": { + "type": "string", + "description": "Represents project duration in milliseconds.", + "example": "60000" + }, + "includeNonBillable": { + "type": "boolean" + }, + "resetOption": { + "type": "string", + "description": "Represents a reset option enum.", + "example": "WEEKLY", + "enum": [ + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + }, + "type": { + "type": "string", + "description": "Represents an estimate type enum.", + "example": "AUTO", + "enum": [ + "AUTO", + "MANUAL" + ] + } + } + }, + "TimeEstimateRequest": { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "description": "Flag whether to include only active or inactive estimates." + }, + "estimate": { + "type": "string", + "description": "Represents a time duration in ISO-8601 format.", + "example": "PT1H30M" + }, + "includeNonBillable": { + "type": "boolean", + "description": "Flag whether to include non-billable expenses." + }, + "resetOption": { + "type": "string", + "description": "Represents a reset option enum.", + "example": "MONTHLY", + "enum": [ + "WEEKLY", + "MONTHLY", + "YEARLY" + ] + }, + "type": { + "type": "string", + "description": "Represents an estimate type enum.", + "example": "AUTO", + "enum": [ + "AUTO", + "MANUAL" + ] + } + }, + "description": "Represents project time estimate request object." + }, + "TimeIntervalDto": { + "type": "object", + "properties": { + "duration": { + "type": "string", + "description": "Represents a time duration.", + "example": "PT1H30M" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "TimeIntervalDtoV1": { + "type": "object", + "properties": { + "duration": { + "type": "string", + "description": "Represents a time duration.", + "example": "8000" + }, + "end": { + "type": "string", + "description": "Represents an end date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2021-01-01T00:00:00Z" + }, + "start": { + "type": "string", + "description": "Represents a start date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T00:00:00Z" + } + }, + "description": "Represents a time interval object." + }, + "TimeOffDto": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "regularUserCanSeeOtherUsersTimeOff": { + "type": "boolean" + }, + "type": { + "type": "boolean", + "writeOnly": true + } + } + }, + "TimeOffPolicyHolidayForClients": { + "type": "object", + "properties": { + "clientIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "holidays": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/HolidayProjection" + } + }, + "policies": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyProjection" + } + }, + "projectIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "taskIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TimeOffPolicyHolidayForProjects": { + "type": "object", + "properties": { + "holidays": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/HolidayProjection" + } + }, + "policies": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyProjection" + } + }, + "projectIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TimeOffPolicyHolidayForTasks": { + "type": "object", + "properties": { + "holidays": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/HolidayProjection" + } + }, + "policies": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/PolicyProjection" + } + }, + "taskIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TimeOffRequestDto": { + "type": "object", + "properties": { + "balanceDiff": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "note": { + "type": "string" + }, + "policyId": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/TimeOffRequestStatus" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriodDto" + }, + "userId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeOffRequestFullDto": { + "type": "object", + "properties": { + "allowNegativeBalance": { + "type": "boolean" + }, + "balance": { + "type": "number", + "format": "double" + }, + "balanceDiff": { + "type": "number", + "format": "double" + }, + "balanceValueAtRequest": { + "type": "number", + "format": "double" + }, + "canBeApproved": { + "type": "boolean" + }, + "canBeWithdrawn": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "id": { + "type": "string" + }, + "limitNegativeBalance": { + "type": "boolean" + }, + "negativeBalance": { + "type": "number", + "format": "double" + }, + "negativeBalanceAmount": { + "type": "number", + "format": "double" + }, + "negativeBalanceUsed": { + "type": "number", + "format": "double" + }, + "note": { + "type": "string" + }, + "policyColor": { + "type": "string" + }, + "policyId": { + "type": "string" + }, + "policyName": { + "type": "string" + }, + "requesterUserId": { + "type": "string" + }, + "requesterUserName": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/TimeOffRequestStatus" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriodDto" + }, + "timeUnit": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "userEmail": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userImageUrl": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimeOffRequestFullV1Dto": { + "type": "object", + "properties": { + "balance": { + "type": "number", + "description": "Represents the time off balance.", + "format": "double", + "example": 10 + }, + "balanceDiff": { + "type": "number", + "description": "Represents the balance difference.", + "format": "double", + "example": 1 + }, + "createdAt": { + "type": "string", + "description": "Represents the date when time off request is created. It is in format YYYY-MM-DDTHH:MM:SS.ssssssZ", + "format": "date-time", + "example": "2022-08-26T08:32:01.640708Z" + }, + "id": { + "type": "string", + "description": "Represents time off requester identifier across the system.", + "example": "5b715612b079875110791111" + }, + "note": { + "type": "string", + "description": "Represents the note of the time off request.", + "example": "Time Off Request Note" + }, + "policyId": { + "type": "string", + "description": "Represents policy identifier across the system.", + "example": "5b715612b079875110792333" + }, + "policyName": { + "type": "string", + "description": "Represents the policy name of the time off request.", + "example": "Days" + }, + "requesterUserId": { + "type": "string", + "description": "Represents requester user's id.", + "example": "5b715612b0798751107925555" + }, + "requesterUserName": { + "type": "string", + "description": "Represents requester user's username.", + "example": "John" + }, + "status": { + "$ref": "#/components/schemas/TimeOffRequestStatus" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriodDto" + }, + "timeUnit": { + "type": "string", + "description": "Represents the time unit of the time off request.", + "example": "DAYS", + "enum": [ + "DAYS", + "HOURS" + ] + }, + "userEmail": { + "type": "string", + "description": "Represents user's email", + "example": "nicholas@clockify.com" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5b715612b079875110794444" + }, + "userName": { + "type": "string", + "description": "Represents user's username.", + "example": "Nicholas" + }, + "userTimeZone": { + "type": "string", + "description": "Represents user's time zone", + "example": "Europe/Budapest" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "5b715612b079875110792222" + } + }, + "description": "Represents the array of time off requests." + }, + "TimeOffRequestPeriod": { + "type": "object", + "properties": { + "halfDayHours": { + "$ref": "#/components/schemas/Period" + }, + "halfDayPeriod": { + "type": "string", + "enum": [ + "FIRST_HALF", + "SECOND_HALF", + "NOT_DEFINED" + ] + }, + "isHalfDay": { + "type": "boolean" + }, + "period": { + "$ref": "#/components/schemas/Period" + } + } + }, + "TimeOffRequestPeriodDto": { + "type": "object", + "properties": { + "halfDayHours": { + "$ref": "#/components/schemas/Period" + }, + "halfDayPeriod": { + "type": "string" + }, + "isHalfDay": { + "type": "boolean" + }, + "period": { + "$ref": "#/components/schemas/Period" + } + } + }, + "TimeOffRequestPeriodRequest": { + "required": [ + "period" + ], + "type": "object", + "properties": { + "halfDayHours": { + "$ref": "#/components/schemas/PeriodRequest" + }, + "halfDayPeriod": { + "type": "string" + }, + "isHalfDay": { + "type": "boolean" + }, + "period": { + "$ref": "#/components/schemas/PeriodRequest" + } + } + }, + "TimeOffRequestPeriodV1Request": { + "required": [ + "period" + ], + "type": "object", + "properties": { + "halfDayPeriod": { + "type": "string", + "description": "Represents the half day period.", + "example": "NOT_DEFINED", + "enum": [ + "FIRST_HALF", + "SECOND_HALF", + "NOT_DEFINED" + ] + }, + "isHalfDay": { + "type": "boolean", + "description": "Indicates whether time off is half day.", + "example": false + }, + "period": { + "$ref": "#/components/schemas/PeriodV1Request" + }, + "timeOffHalfDayPeriod": { + "type": "string", + "enum": [ + "FIRST_HALF", + "SECOND_HALF", + "NOT_DEFINED" + ] + } + }, + "description": "Provide the period you would like to use for creating the time off request." + }, + "TimeOffRequestStatus": { + "type": "object", + "properties": { + "changedAt": { + "type": "string", + "format": "date-time" + }, + "changedByUserId": { + "type": "string" + }, + "changedByUserName": { + "type": "string" + }, + "changedForUserName": { + "type": "string" + }, + "note": { + "type": "string" + }, + "statusType": { + "type": "string", + "enum": [ + "PENDING", + "APPROVED", + "REJECTED", + "ALL" + ] + } + } + }, + "TimeOffRequestV1Dto": { + "type": "object", + "properties": { + "balanceDiff": { + "type": "number", + "description": "Represents the balance difference", + "format": "double", + "example": 1 + }, + "createdAt": { + "type": "string", + "description": "Represents the date when time off request is created. Date is in format YYYY-MM-DDTHH:MM:SS.ssssssZ", + "format": "date-time", + "example": "2022-08-26T08:32:01.640708Z" + }, + "id": { + "type": "string", + "description": "Represents time off requester identifier across the system.", + "example": "5b715612b079875110791111" + }, + "note": { + "type": "string", + "description": "Represents the note of the time off request.", + "example": "Time Off Request Note" + }, + "policyId": { + "type": "string", + "description": "Represents policy identifier across the system.", + "example": "5b715612b079875110792333" + }, + "status": { + "$ref": "#/components/schemas/TimeOffRequestStatus" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriodDto" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5b715612b079875110794444" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "5b715612b079875110792222" + } + } + }, + "TimeOffRequestsWithCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int32" + }, + "requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeOffRequestFullDto" + } + } + } + }, + "TimeOffRequestsWithCountV1Dto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Represents the count of time off requests.", + "format": "int32", + "example": 1 + }, + "requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimeOffRequestFullV1Dto" + } + } + } + }, + "TimeRangeRequest": { + "type": "object", + "properties": { + "issueDateEnd": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format. This is the upper bound of the time range.", + "example": "2021-01-01" + }, + "issueDateStart": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format. This is the lower bound of the time range.", + "example": "2020-01-01" + } + } + }, + "TimeRangeRequestDtoV1": { + "type": "object", + "properties": { + "issue-date-end": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format. This is the lower bound of the time range.", + "example": "2020-01-01" + }, + "issue-date-start": { + "type": "string", + "description": "Represents a date in yyyy-MM-dd format. This is the lower bound of the time range.", + "example": "2020-01-01" + } + }, + "description": "Represents a time range object. If provided, you'll get a filtered list of invoices that has issue date within the time range specified." + }, + "TimelineHolidayDto": { + "type": "object", + "properties": { + "color": { + "type": "string" + }, + "datePeriod": { + "$ref": "#/components/schemas/DatePeriod" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "TimelineTimeOffRequestBaseDto": { + "type": "object", + "properties": { + "balanceDiff": { + "type": "number", + "format": "double" + }, + "id": { + "type": "string" + }, + "note": { + "type": "string" + }, + "policyName": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/TimeOffRequestStatus" + }, + "timeOffPeriod": { + "$ref": "#/components/schemas/TimeOffRequestPeriod" + }, + "timeUnit": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "TimelineUserDto": { + "type": "object", + "properties": { + "holidays": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimelineHolidayDto" + } + }, + "requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimelineTimeOffRequestBaseDto" + } + }, + "timeZone": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "userImageUrl": { + "type": "string" + }, + "userName": { + "type": "string" + }, + "workingDays": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "TimelineUsersDto": { + "type": "object", + "properties": { + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TimelineUserDto" + } + } + } + }, + "TokenExchangeDto": { + "type": "object", + "properties": { + "cakeAccessToken": { + "type": "string" + }, + "productAccess": { + "$ref": "#/components/schemas/ProductAccessDto" + } + } + }, + "TokenExchangeFlowInfoDto": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + } + }, + "TotalTimeItemDto": { + "type": "object", + "properties": { + "amountWithCurrency": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AmountWithCurrencyDto" + } + }, + "billableDuration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "clientName": { + "type": "string" + }, + "color": { + "type": "string" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "earned": { + "type": "integer", + "format": "int64" + }, + "endDateTime": { + "type": "string", + "format": "date-time" + }, + "label": { + "type": "string" + }, + "percentage": { + "type": "string" + }, + "projectName": { + "type": "string" + } + } + }, + "TotalsPerDayDto": { + "type": "object", + "properties": { + "date": { + "type": "string", + "format": "date-time" + }, + "totalHours": { + "type": "number", + "format": "double" + } + } + }, + "TrackingRequest": { + "type": "object", + "properties": { + "abTestingTrackingRequest": { + "$ref": "#/components/schemas/ABTestingTrackingRequest" + }, + "affiliateTrackingRequest": { + "$ref": "#/components/schemas/AffiliateTrackingRequest" + }, + "attributionTrackingRequest": { + "$ref": "#/components/schemas/AttributionTrackingRequest" + }, + "seoEventsTrackingRequest": { + "$ref": "#/components/schemas/SEOEventsTrackingRequest" + } + } + }, + "TransferAuthenticationTypeDto": { + "type": "object", + "properties": { + "transferAuthenticationType": { + "type": "string", + "enum": [ + "PASSWORD", + "MULTI_FACTOR", + "OTP_CODE" + ] + } + } + }, + "TransferOwnerRequest": { + "type": "object", + "properties": { + "userId": { + "type": "string" + } + } + }, + "TransferRequest": { + "required": [ + "targetRegion" + ], + "type": "object", + "properties": { + "targetRegion": { + "type": "string" + } + } + }, + "TransferSeatDetailsDto": { + "type": "object", + "properties": { + "customPrice": { + "type": "boolean" + }, + "payedForLimited": { + "type": "integer", + "format": "int32" + }, + "payedForRegular": { + "type": "integer", + "format": "int32" + } + } + }, + "TrialActivationDataDto": { + "type": "object", + "properties": { + "activateTrial": { + "type": "boolean" + }, + "featuresToActivate": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADD_TIME_FOR_OTHERS", + "ADMIN_PANEL", + "ALERTS", + "APPROVAL", + "AUDIT_LOG", + "AUTOMATIC_LOCK", + "BRANDED_REPORTS", + "BULK_EDIT", + "CUSTOM_FIELDS", + "CUSTOM_REPORTING", + "CUSTOM_SUBDOMAIN", + "DECIMAL_FORMAT", + "DISABLE_MANUAL_MODE", + "EDIT_MEMBER_PROFILE", + "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE", + "EXPENSES", + "FILE_IMPORT", + "HIDE_PAGES", + "HISTORIC_RATES", + "INVOICING", + "INVOICE_EMAILS", + "LABOR_COST", + "LOCATIONS", + "MANAGER_ROLE", + "MULTI_FACTOR_AUTHENTICATION", + "PROJECT_BUDGET", + "PROJECT_TEMPLATES", + "QUICKBOOKS_INTEGRATION", + "RECURRING_ESTIMATES", + "REQUIRED_FIELDS", + "SCHEDULED_REPORTS", + "SCHEDULING", + "SCREENSHOTS", + "SSO", + "SUMMARY_ESTIMATE", + "TARGETS_AND_REMINDERS", + "TASK_RATES", + "TIME_OFF", + "UNLIMITED_REPORTS", + "USER_CUSTOM_FIELDS", + "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY", + "BREAKS", + "KIOSK_SESSION_DURATION", + "KIOSK_PIN_REQUIRED", + "WHO_CAN_SEE_ALL_TIME_ENTRIES", + "WHO_CAN_SEE_PROJECT_STATUS", + "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES", + "WHO_CAN_SEE_TEAMS_DASHBOARD", + "WORKSPACE_LOCK_TIMEENTRIES", + "WORKSPACE_TIME_AUDIT", + "WORKSPACE_TIME_ROUNDING", + "KIOSK", + "FORECASTING", + "TIME_TRACKING", + "ATTENDANCE_REPORT", + "WORKSPACE_TRANSFER", + "FAVORITE_ENTRIES", + "SPLIT_TIME_ENTRY", + "CLIENT_CURRENCY", + "SCHEDULING_FORECASTING" + ] + } + } + } + }, + "UnsubmittedSummaryGroupDto": { + "type": "object", + "properties": { + "periodRange": { + "type": "string" + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UnsubmittedUserSummaryDto" + } + }, + "weekRange": { + "type": "string", + "deprecated": true + } + } + }, + "UnsubmittedUserSummaryDto": { + "type": "object", + "properties": { + "approvedTimeOff": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "currencyTotal": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CurrencyWithAmountDto" + } + }, + "dateRange": { + "$ref": "#/components/schemas/DateRangeDto" + }, + "expenseTotal": { + "type": "integer", + "format": "int64" + }, + "hasSubmittedTimesheet": { + "type": "boolean" + }, + "total": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "userId": { + "type": "string" + }, + "userName": { + "type": "string" + } + } + }, + "UpdateApprovalRequest": { + "required": [ + "state" + ], + "type": "object", + "properties": { + "note": { + "type": "string", + "description": "Additional notes for the approval request.", + "example": "This is a sample note." + }, + "state": { + "type": "string", + "description": "Specifies the approval state to set.", + "example": "PENDING", + "enum": [ + "PENDING", + "APPROVED", + "WITHDRAWN_SUBMISSION", + "WITHDRAWN_APPROVAL", + "REJECTED" + ] + } + } + }, + "UpdateApprovalSettingsRequest": { + "type": "object", + "properties": { + "approvalEnabled": { + "type": "boolean" + }, + "approvalPeriod": { + "type": "string", + "enum": [ + "WEEKLY", + "SEMI_MONTHLY", + "MONTHLY" + ] + }, + "approvalRoles": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADMIN", + "TEAM_MANAGER", + "PROJECT_MANAGER" + ] + } + } + } + }, + "UpdateAudiLogSettingsRequest": { + "required": [ + "auditEnabled", + "clientAuditing", + "expensesAuditing", + "projectAuditing", + "tagAuditing", + "timeEntryAuditing" + ], + "type": "object", + "properties": { + "auditEnabled": { + "type": "boolean" + }, + "clientAuditing": { + "type": "boolean" + }, + "expensesAuditing": { + "type": "boolean" + }, + "projectAuditing": { + "type": "boolean" + }, + "tagAuditing": { + "type": "boolean" + }, + "timeEntryAuditing": { + "type": "boolean" + } + } + }, + "UpdateAutomaticLockRequest": { + "type": "object", + "properties": { + "changeDay": { + "type": "string" + }, + "changeHour": { + "type": "integer", + "format": "int32", + "writeOnly": true + }, + "dayOfMonth": { + "type": "integer", + "format": "int32", + "writeOnly": true + }, + "firstDay": { + "type": "string" + }, + "olderThanPeriod": { + "type": "string" + }, + "olderThanValue": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "timeZone": { + "type": "string", + "writeOnly": true + }, + "type": { + "type": "string" + } + } + }, + "UpdateClientRequest": { + "type": "object", + "properties": { + "address": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "archived": { + "type": "boolean" + }, + "currencyId": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string" + }, + "note": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + } + } + }, + "UpdateClientRequestV1": { + "type": "object", + "properties": { + "address": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents client's address.", + "example": "Ground Floor, ABC Bldg., Palo Alto, California, USA 94020" + }, + "archived": { + "type": "boolean", + "description": "Indicates if client will be archived or not." + }, + "currencyId": { + "type": "string", + "description": "Represents currency identifier across the system.", + "example": "53a687e29ae1f428e7ebe888" + }, + "email": { + "type": "string", + "description": "Represents client email.", + "example": "clientx@example.com" + }, + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents client name.", + "example": "Client X" + }, + "note": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents additional notes for the client.", + "example": "This is a sample note for the client." + } + } + }, + "UpdateCompactViewSettings": { + "required": [ + "isCompactViewOn" + ], + "type": "object", + "properties": { + "isCompactViewOn": { + "type": "boolean" + } + } + }, + "UpdateCurrencyCodeRequest": { + "required": [ + "code" + ], + "type": "object", + "properties": { + "code": { + "maxLength": 100, + "minLength": 1, + "type": "string" + } + } + }, + "UpdateCustomFieldRequest": { + "required": [ + "customFieldId" + ], + "type": "object", + "properties": { + "customFieldId": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "5e4117fe8c625f38930d57b7" + }, + "sourceType": { + "type": "string", + "description": "Represents a custom field value source type.", + "example": "WORKSPACE", + "enum": [ + "WORKSPACE", + "PROJECT", + "TIMEENTRY" + ] + }, + "value": { + "type": "object", + "description": "Represents a custom field's value.", + "example": "new value" + } + } + }, + "UpdateCustomFieldRequestV1": { + "required": [ + "name", + "type" + ], + "type": "object", + "properties": { + "allowedValues": { + "type": "array", + "description": "Represents a list of custom field's allowed values.", + "example": [ + "NA", + "White", + "Black", + "Asian", + "Hispanic" + ], + "items": { + "type": "string", + "description": "Represents a list of custom field's allowed values.", + "example": "[\"NA\",\"White\",\"Black\",\"Asian\",\"Hispanic\"]" + } + }, + "description": { + "type": "string", + "description": "Represents custom field description.", + "example": "This field contains a user's race." + }, + "name": { + "maxLength": 250, + "minLength": 2, + "type": "string", + "description": "Represents custom field name.", + "example": "race" + }, + "onlyAdminCanEdit": { + "type": "boolean", + "description": "Flag to set whether custom field is modifiable only by admin users." + }, + "placeholder": { + "type": "string", + "description": "Represents a custom field placeholder value.", + "example": "This is a sample placeholder." + }, + "required": { + "type": "boolean", + "description": "Flag to set whether custom field is mandatory or not." + }, + "status": { + "type": "string", + "description": "Represents custom field status", + "example": "VISIBLE", + "enum": [ + "INACTIVE", + "VISIBLE", + "INVISIBLE" + ] + }, + "type": { + "type": "string", + "description": "Represents custom field type.", + "example": "DROPDOWN_MULTIPLE", + "enum": [ + "TXT", + "NUMBER", + "DROPDOWN_SINGLE", + "DROPDOWN_MULTIPLE", + "CHECKBOX", + "LINK" + ] + }, + "workspaceDefaultValue": { + "type": "object", + "description": "Represents a custom field's default value in the workspace.", + "example": "NA" + } + } + }, + "UpdateDashboardSelection": { + "required": [ + "dashboardSelection" + ], + "type": "object", + "properties": { + "dashboardSelection": { + "type": "string", + "enum": [ + "ME", + "TEAM" + ] + } + } + }, + "UpdateDefaultWorkspaceCurrencyRequest": { + "type": "object", + "properties": { + "currencyId": { + "type": "string" + } + } + }, + "UpdateEmailPreferencesRequest": { + "required": [ + "session" + ], + "type": "object", + "properties": { + "alerts": { + "type": "boolean" + }, + "approval": { + "type": "boolean" + }, + "longRunning": { + "type": "boolean" + }, + "onboarding": { + "type": "boolean" + }, + "pto": { + "type": "boolean" + }, + "reminders": { + "type": "boolean" + }, + "scheduledReports": { + "type": "boolean" + }, + "scheduling": { + "type": "boolean" + }, + "sendNewsletter": { + "type": "boolean" + }, + "session": { + "type": "string" + }, + "weeklyUpdates": { + "type": "boolean" + } + } + }, + "UpdateEntityCreationPermissionsRequest": { + "type": "object", + "properties": { + "whoCanCreateProjectsAndClients": { + "type": "string" + }, + "whoCanCreateTags": { + "type": "string" + }, + "whoCanCreateTasks": { + "type": "string" + } + } + }, + "UpdateExpenseRequest": { + "required": [ + "amount", + "userId" + ], + "type": "object", + "properties": { + "amount": { + "maximum": 92233720368547760, + "type": "number", + "format": "double" + }, + "billable": { + "type": "boolean" + }, + "categoryId": { + "type": "string" + }, + "changeFields": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "USER", + "DATE", + "PROJECT", + "TASK", + "CATEGORY", + "NOTES", + "AMOUNT", + "BILLABLE", + "FILE" + ] + } + }, + "date": { + "type": "string", + "format": "date-time" + }, + "file": { + "type": "string", + "format": "binary" + }, + "notes": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "projectId": { + "type": "string" + }, + "taskId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "UpdateExpenseV1Request": { + "required": [ + "amount", + "categoryId", + "changeFields", + "date", + "file", + "userId" + ], + "type": "object", + "properties": { + "amount": { + "maximum": 92233720368547760, + "minimum": 0, + "type": "number", + "description": "Represents expense amount as double data type.", + "format": "double", + "example": 99.5 + }, + "billable": { + "type": "boolean", + "description": "Indicates whether expense is billable or not." + }, + "categoryId": { + "type": "string", + "description": "Represents category identifier across the system.", + "example": "45y687e29ae1f428e7ebe890" + }, + "changeFields": { + "type": "array", + "description": "Represents a list of expense change fields.", + "example": [ + "USER", + "DATE", + "PROJECT" + ], + "items": { + "type": "string", + "description": "Represents a list of expense change fields.", + "example": "[\"USER\",\"DATE\",\"PROJECT\"]", + "enum": [ + "USER", + "DATE", + "PROJECT", + "TASK", + "CATEGORY", + "NOTES", + "AMOUNT", + "BILLABLE", + "FILE" + ] + } + }, + "date": { + "type": "string", + "description": "Provides a valid yyyy-MM-ddThh:mm:ssZ format date.", + "format": "date-time", + "example": "2020-01-01T00:00:00Z" + }, + "file": { + "type": "string", + "format": "binary" + }, + "notes": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents notes for an expense.", + "example": "This is a sample note for this expense." + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "89b687e29ae1f428e7ebe912" + } + } + }, + "UpdateFavoriteEntriesRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "type": "string" + }, + "name": { + "type": "string" + }, + "projectId": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + } + } + }, + "UpdateHolidayRequestV1": { + "required": [ + "datePeriod", + "name", + "occursAnnually" + ], + "type": "object", + "properties": { + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string", + "description": "Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#8BC34A" + }, + "datePeriod": { + "$ref": "#/components/schemas/DatePeriodRequest" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the holiday is shown to new users.", + "example": false + }, + "name": { + "type": "string", + "description": "Provide the name you would like to use for updating the holiday.", + "example": "New Year's Day" + }, + "occursAnnually": { + "type": "boolean", + "description": "Indicates whether the holiday occurs annually.", + "example": true + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequestForHoliday" + } + } + }, + "UpdateInvoiceItemRequest": { + "required": [ + "quantity", + "unitPrice" + ], + "type": "object", + "properties": { + "description": { + "maxLength": 5000, + "minLength": 0, + "type": "string" + }, + "itemType": { + "type": "string" + }, + "quantity": { + "type": "integer", + "format": "int32" + }, + "unitPrice": { + "type": "integer", + "format": "int32" + } + } + }, + "UpdateInvoiceItemTypeRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + }, + "UpdateInvoiceRequest": { + "required": [ + "currency", + "number" + ], + "type": "object", + "properties": { + "clientId": { + "type": "string" + }, + "companyId": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "discount": { + "type": "number", + "format": "double", + "writeOnly": true + }, + "discountPercent": { + "type": "number", + "format": "double" + }, + "dueDate": { + "type": "string", + "format": "date-time" + }, + "issuedDate": { + "type": "string", + "format": "date-time" + }, + "note": { + "type": "string" + }, + "number": { + "type": "string" + }, + "subject": { + "type": "string" + }, + "tax": { + "type": "number", + "format": "double", + "writeOnly": true + }, + "tax2": { + "type": "number", + "format": "double", + "writeOnly": true + }, + "tax2Percent": { + "type": "number", + "format": "double" + }, + "taxPercent": { + "type": "number", + "format": "double" + }, + "visibleZeroFields": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UpdateInvoiceRequestV1": { + "required": [ + "currency", + "discountPercent", + "dueDate", + "issuedDate", + "number", + "tax2Percent", + "taxPercent" + ], + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "Represents client identifier across the system.", + "example": "98h687e29ae1f428e7ebe707" + }, + "companyId": { + "type": "string", + "description": "Represents company identifier across the system.", + "example": "04g687e29ae1f428e7ebe123" + }, + "currency": { + "maxLength": 100, + "minLength": 1, + "type": "string", + "description": "Represents the currency used by the invoice.", + "example": "USD" + }, + "discountPercent": { + "type": "number", + "description": "Represents an invoice discount percent as double.", + "format": "double", + "example": 1.5 + }, + "dueDate": { + "type": "string", + "description": "Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-06-01T08:00:00Z" + }, + "issuedDate": { + "type": "string", + "description": "Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T08:00:00Z" + }, + "note": { + "type": "string", + "description": "Represents an invoice note.", + "example": "This is a sample note for this invoice." + }, + "number": { + "type": "string", + "description": "Represents an invoice number.", + "example": "202306121129" + }, + "subject": { + "type": "string", + "description": "Represents an invoice subject.", + "example": "January salary" + }, + "tax2Percent": { + "type": "number", + "description": "Represents an invoice tax 2 percent as double.", + "format": "double", + "example": 0 + }, + "taxPercent": { + "type": "number", + "description": "Represents an invoice tax percent as double.", + "format": "double", + "example": 0.5 + }, + "visibleZeroFields": { + "type": "string", + "description": "Represents a list of zero value invoice fields that will be visible.", + "example": "[\"TAX\",\"TAX_2\",\"DISCOUNT\"]", + "enum": [ + "TAX", + "TAX_2", + "DISCOUNT" + ] + } + } + }, + "UpdateInvoiceSettingsRequest": { + "required": [ + "labels" + ], + "type": "object", + "properties": { + "defaults": { + "$ref": "#/components/schemas/InvoiceDefaultSettingsRequest" + }, + "exportFields": { + "$ref": "#/components/schemas/InvoiceExportFieldsRequest" + }, + "labels": { + "$ref": "#/components/schemas/LabelsCustomizationRequest" + } + } + }, + "UpdateInvoiceSettingsRequestV1": { + "required": [ + "labels" + ], + "type": "object", + "properties": { + "defaults": { + "$ref": "#/components/schemas/InvoiceDefaultSettingsRequestV1" + }, + "exportFields": { + "$ref": "#/components/schemas/InvoiceExportFieldsRequest" + }, + "labels": { + "$ref": "#/components/schemas/LabelsCustomizationRequest" + } + } + }, + "UpdateInvoicedStatusRequest": { + "required": [ + "invoiced", + "timeEntries" + ], + "type": "object", + "properties": { + "invoiced": { + "type": "boolean", + "description": "Indicates whether time entry is invoiced or not." + }, + "timeEntries": { + "type": "array", + "description": "Represents a list of invoiced time entry ids", + "example": [ + "54m377ddd3fcab07cfbb432w", + "25b687e29ae1f428e7ebe123" + ], + "items": { + "type": "string", + "description": "Represents a list of invoiced time entry ids", + "example": "[\"54m377ddd3fcab07cfbb432w\",\"25b687e29ae1f428e7ebe123\"]" + } + } + } + }, + "UpdateKioskRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "defaultBreakProjectId": { + "type": "string" + }, + "defaultBreakTaskId": { + "type": "string" + }, + "defaultEntities": { + "$ref": "#/components/schemas/DefaultKioskEntitiesRequest" + }, + "defaultProjectId": { + "type": "string" + }, + "defaultTaskId": { + "type": "string" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "groups": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "name": { + "maxLength": 250, + "minLength": 2, + "type": "string" + }, + "pin": { + "$ref": "#/components/schemas/PinSettingRequest" + }, + "sessionDuration": { + "type": "integer", + "format": "int32" + }, + "users": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + } + } + }, + "UpdateKioskStatusRequest": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "INACTIVE", + "DELETED" + ] + } + } + }, + "UpdateLangRequest": { + "type": "object", + "properties": { + "lang": { + "type": "string" + } + } + }, + "UpdateManyClientsRequest": { + "required": [ + "archived", + "clientIds" + ], + "type": "object", + "properties": { + "archiveProjects": { + "type": "boolean" + }, + "archived": { + "type": "boolean" + }, + "clientIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "markTasksAsDone": { + "type": "boolean" + } + } + }, + "UpdateManyTagsRequest": { + "required": [ + "archived", + "tagIds" + ], + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UpdateNameAndProfilePictureRequest": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "profilePictureUrl": { + "type": "string" + } + } + }, + "UpdatePinCodeRequest": { + "required": [ + "pinCode" + ], + "type": "object", + "properties": { + "pinCode": { + "type": "string" + }, + "since": { + "type": "string", + "writeOnly": true + } + } + }, + "UpdatePolicyRequest": { + "required": [ + "allowHalfDay", + "allowNegativeBalance", + "approve", + "archived", + "everyoneIncludingNew", + "name", + "userGroups", + "users" + ], + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean" + }, + "allowNegativeBalance": { + "type": "boolean" + }, + "approve": { + "$ref": "#/components/schemas/ApproveDto" + }, + "archived": { + "type": "boolean" + }, + "automaticAccrual": { + "$ref": "#/components/schemas/AutomaticAccrualRequest" + }, + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "everyoneIncludingNew": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceRequest" + }, + "userGroups": { + "$ref": "#/components/schemas/ContainsFilterRequest" + }, + "users": { + "$ref": "#/components/schemas/ContainsFilterRequest" + } + } + }, + "UpdatePolicyRequestV1": { + "required": [ + "allowHalfDay", + "allowNegativeBalance", + "approve", + "archived", + "everyoneIncludingNew", + "name", + "userGroups", + "users" + ], + "type": "object", + "properties": { + "allowHalfDay": { + "type": "boolean", + "description": "Indicates whether policy allows half day.", + "example": true + }, + "allowNegativeBalance": { + "type": "boolean", + "description": "Indicates whether policy allows negative balance.", + "example": false + }, + "approve": { + "$ref": "#/components/schemas/ApproveDto" + }, + "archived": { + "type": "boolean", + "description": "Indicates whether policy is archived.", + "example": false + }, + "automaticAccrual": { + "$ref": "#/components/schemas/AutomaticAccrualRequest" + }, + "automaticTimeEntryCreation": { + "$ref": "#/components/schemas/AutomaticTimeEntryCreationRequest" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string", + "description": "Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.", + "example": "#8BC34A" + }, + "everyoneIncludingNew": { + "type": "boolean", + "description": "Indicates whether the policy is shown to new users.", + "example": false + }, + "name": { + "type": "string", + "description": "Provide the name you would like to use for updating the policy.", + "example": "Days" + }, + "negativeBalance": { + "$ref": "#/components/schemas/NegativeBalanceRequest" + }, + "userGroups": { + "$ref": "#/components/schemas/UserGroupIdsSchema" + }, + "users": { + "$ref": "#/components/schemas/UserIdsSchema" + } + } + }, + "UpdateProjectMembershipsRequest": { + "required": [ + "memberships" + ], + "type": "object", + "properties": { + "memberships": { + "type": "array", + "description": "Represents a list of users with id and rates request objects.", + "items": { + "$ref": "#/components/schemas/UserIdWithRatesRequest" + } + } + } + }, + "UpdateProjectRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean" + }, + "billable": { + "type": "boolean" + }, + "clientId": { + "type": "string" + }, + "color": { + "pattern": "^#(?:[0-9a-fA-F]{6}){1}$", + "type": "string" + }, + "costRate": { + "$ref": "#/components/schemas/CostRateRequest" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequest" + }, + "isPublic": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "note": { + "type": "string" + } + } + }, + "UpdateProjectsRequest": { + "type": "object", + "properties": { + "projectUpdateSyncId": { + "type": "string", + "writeOnly": true + }, + "updateSyncId": { + "type": "string" + } + } + }, + "UpdatePumbleIntegrationSettingsRequest": { + "type": "object", + "properties": { + "showChatWidget": { + "type": "boolean", + "writeOnly": true + } + } + }, + "UpdateQuantityRequest": { + "required": [ + "quantity", + "seatType" + ], + "type": "object", + "properties": { + "itemType": { + "type": "string", + "writeOnly": true + }, + "quantity": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "seatType": { + "type": "string", + "enum": [ + "REGULAR", + "LIMITED" + ] + } + } + }, + "UpdateRateLimitSettingsRequest": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string" + } + } + }, + "UpdateRoleRequest": { + "type": "object", + "properties": { + "containsRoleObjectsFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "entity": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "role": { + "type": "string", + "enum": [ + "WORKSPACE_ADMIN", + "OWNER", + "TEAM_MANAGER", + "PROJECT_MANAGER" + ] + } + } + }, + "UpdateRoundRequest": { + "type": "object", + "properties": { + "minutes": { + "type": "string" + }, + "round": { + "type": "string" + } + } + }, + "UpdateSchedulingSettingsRequest": { + "type": "object", + "properties": { + "canSeeBillableAndCostAmount": { + "type": "boolean", + "writeOnly": true + }, + "enabled": { + "type": "boolean" + }, + "everyoneCanSeeAllAssignments": { + "type": "boolean" + }, + "whoCanCreateAssignments": { + "type": "string" + } + } + }, + "UpdateSidebarRequest": { + "type": "object", + "properties": { + "sidebar": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SidebarItemRequest" + } + } + } + }, + "UpdateSummaryReportSettingsRequest": { + "required": [ + "group", + "subgroup" + ], + "type": "object", + "properties": { + "group": { + "type": "string" + }, + "subgroup": { + "type": "string" + } + } + }, + "UpdateSurveyResponseRequest": { + "required": [ + "response", + "status" + ], + "type": "object", + "properties": { + "response": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SurveyResponseAnswerDto" + } + } + }, + "responseTransformedToDomain": { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SurveyResponseAnswer" + } + } + }, + "status": { + "type": "string" + } + } + }, + "UpdateTagRequest": { + "type": "object", + "properties": { + "archived": { + "type": "boolean", + "description": "Indicates whether a tag will be archived or not." + }, + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents tag name.", + "example": "Sprint1" + } + } + }, + "UpdateTaskRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "assigneeId": { + "type": "string", + "writeOnly": true + }, + "assigneeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "billable": { + "type": "boolean" + }, + "budgetEstimate": { + "minimum": 0, + "type": "integer", + "format": "int64" + }, + "estimate": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "units": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateBased": { + "type": "boolean" + }, + "duration": { + "type": "object", + "properties": { + "nano": { + "type": "integer", + "format": "int32" + }, + "negative": { + "type": "boolean" + }, + "positive": { + "type": "boolean" + }, + "seconds": { + "type": "integer", + "format": "int64" + }, + "zero": { + "type": "boolean" + } + } + }, + "durationEstimated": { + "type": "boolean" + }, + "timeBased": { + "type": "boolean" + } + } + } + }, + "zero": { + "type": "boolean" + } + } + }, + "name": { + "type": "string" + }, + "status": { + "type": "string" + }, + "userGroupIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UpdateTimeEntryBillableRequest": { + "required": [ + "billable" + ], + "type": "object", + "properties": { + "billable": { + "type": "boolean" + } + } + }, + "UpdateTimeEntryBulkRequest": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "billable": { + "type": "boolean", + "description": "Indicates whether a time entry is billable or not." + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string", + "description": "Represents time entry description.", + "example": "This is a sample time entry description." + }, + "end": { + "type": "string", + "description": "Represents an end date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2021-01-01T00:00:00Z" + }, + "id": { + "type": "string", + "description": "Represents time entry identifier across the system.", + "example": "64c777ddd3fcab07cfbb210c" + }, + "projectId": { + "type": "string", + "description": "Represents project identifier across the system.", + "example": "25b687e29ae1f428e7ebe123" + }, + "start": { + "type": "string", + "description": "Represents a start date in yyyy-MM-ddThh:mm:ssZ format.", + "format": "date-time", + "example": "2020-01-01T00:00:00Z" + }, + "tagIds": { + "type": "array", + "description": "Represents a list of tag ids.", + "example": [ + "321r77ddd3fcab07cfbb567y", + "44x777ddd3fcab07cfbb88f" + ], + "items": { + "type": "string", + "description": "Represents a list of tag ids.", + "example": "[\"321r77ddd3fcab07cfbb567y\",\"44x777ddd3fcab07cfbb88f\"]" + } + }, + "taskId": { + "type": "string", + "description": "Represents task identifier across the system.", + "example": "54m377ddd3fcab07cfbb432w" + }, + "type": { + "type": "string", + "enum": [ + "REGULAR", + "BREAK" + ] + } + } + }, + "UpdateTimeEntryDescriptionRequest": { + "type": "object", + "properties": { + "description": { + "type": "string" + } + } + }, + "UpdateTimeEntryEndRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + } + } + }, + "UpdateTimeEntryProjectRequest": { + "type": "object", + "properties": { + "projectId": { + "$ref": "#/components/schemas/ProjectId" + } + } + }, + "UpdateTimeEntryRequest": { + "type": "object", + "properties": { + "billable": { + "type": "boolean" + }, + "customFields": { + "maxItems": 50, + "minItems": 0, + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateCustomFieldRequest" + } + }, + "description": { + "maxLength": 3000, + "minLength": 0, + "type": "string" + }, + "end": { + "type": "string", + "format": "date-time" + }, + "projectId": { + "type": "string" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "startAsString": { + "type": "string" + }, + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "taskId": { + "type": "string" + } + } + }, + "UpdateTimeEntryStartRequest": { + "type": "object", + "properties": { + "start": { + "type": "string", + "format": "date-time" + } + } + }, + "UpdateTimeEntryTagsRequest": { + "type": "object", + "properties": { + "tagIds": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UpdateTimeEntryTaskRequest": { + "type": "object", + "properties": { + "taskId": { + "$ref": "#/components/schemas/TaskId" + } + } + }, + "UpdateTimeEntryUserRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "userId": { + "type": "string" + } + } + }, + "UpdateTimeOffRequest": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + }, + "regularUserCanSeeOtherUsersTimeOff": { + "type": "boolean" + }, + "type": { + "type": "boolean", + "writeOnly": true + } + } + }, + "UpdateTimeTrackingSettingsRequest": { + "required": [ + "timeTrackingManual" + ], + "type": "object", + "properties": { + "timeTrackingManual": { + "type": "boolean" + } + } + }, + "UpdateTimezoneRequest": { + "required": [ + "timezone" + ], + "type": "object", + "properties": { + "timezone": { + "type": "string" + } + } + }, + "UpdateUserGroupNameRequest": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string" + } + } + }, + "UpdateUserGroupRequest": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents user group name.", + "example": "development_team" + } + } + }, + "UpdateUserRolesRequest": { + "type": "object", + "properties": { + "roles": { + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/UpdateRoleRequest" + } + }, + "updateRoleRequests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateRoleRequest" + } + } + } + }, + "UpdateUserSettingsRequest": { + "required": [ + "settings" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "profilePicture": { + "type": "string", + "writeOnly": true + }, + "profilePictureUrl": { + "type": "string" + }, + "settings": { + "$ref": "#/components/schemas/UserSettingsDto" + } + } + }, + "UpdateUserStatusRequest": { + "required": [ + "status" + ], + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Represents membership status.", + "example": "ACTIVE", + "enum": [ + "ACTIVE", + "INACTIVE" + ] + } + } + }, + "UpdateUsersFromUserGroupsRequest": { + "type": "object", + "properties": { + "userFilter": { + "$ref": "#/components/schemas/ContainsUsersFilterRequest" + }, + "userGroupFilter": { + "$ref": "#/components/schemas/ContainsUserGroupFilterRequest" + }, + "userGroupId": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "UpdateWebhookRequestV1": { + "required": [ + "triggerSource", + "triggerSourceType", + "url", + "webhookEvent" + ], + "type": "object", + "properties": { + "name": { + "maxLength": 30, + "minLength": 2, + "type": "string", + "description": "Represents webhook name.", + "example": "Stripe" + }, + "triggerSource": { + "type": "array", + "description": "Represents a list of trigger sources.", + "example": [ + "54a687e29ae1f428e7ebe909", + "87p187e29ae1f428e7ebej56" + ], + "items": { + "type": "string", + "description": "Represents a list of trigger sources.", + "example": "[\"54a687e29ae1f428e7ebe909\",\"87p187e29ae1f428e7ebej56\"]" + } + }, + "triggerSourceType": { + "type": "string", + "description": "Represents a webhook event trigger source type.", + "example": "PROJECT_ID", + "enum": [ + "PROJECT_ID", + "USER_ID", + "TAG_ID", + "TASK_ID", + "WORKSPACE_ID", + "USER_GROUP_ID", + "INVOICE_ID", + "ASSIGNMENT_ID", + "EXPENSE_ID" + ] + }, + "url": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "https://example-clockify.com/stripeEndpoint" + }, + "webhookEvent": { + "type": "string", + "description": "Represents webhook event type.", + "enum": [ + "NEW_PROJECT", + "NEW_TASK", + "NEW_CLIENT", + "NEW_TIMER_STARTED", + "TIMER_STOPPED", + "TIME_ENTRY_UPDATED", + "TIME_ENTRY_DELETED", + "NEW_TIME_ENTRY", + "NEW_TAG", + "USER_DELETED_FROM_WORKSPACE", + "USER_JOINED_WORKSPACE", + "USER_DEACTIVATED_ON_WORKSPACE", + "USER_ACTIVATED_ON_WORKSPACE", + "USER_EMAIL_CHANGED", + "USER_UPDATED", + "NEW_INVOICE", + "INVOICE_UPDATED", + "NEW_APPROVAL_REQUEST", + "APPROVAL_REQUEST_STATUS_UPDATED", + "TIME_OFF_REQUESTED", + "TIME_OFF_REQUEST_APPROVED", + "TIME_OFF_REQUEST_REJECTED", + "TIME_OFF_REQUEST_WITHDRAWN", + "BALANCE_UPDATED" + ] + } + } + }, + "UpdateWorkspaceRequest": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "imageUrl": { + "type": "string" + }, + "name": { + "type": "string" + }, + "workspaceSettings": { + "$ref": "#/components/schemas/UpdateWorkspaceSettingsRequest" + } + } + }, + "UpdateWorkspaceSettingsRequest": { + "required": [ + "projectGroupingLabel" + ], + "type": "object", + "properties": { + "activeBillableHours": { + "type": "boolean", + "writeOnly": true + }, + "adminOnlyPages": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "PROJECT", + "TEAM", + "REPORTS" + ] + } + }, + "approvalSettings": { + "$ref": "#/components/schemas/UpdateApprovalSettingsRequest" + }, + "auditLogSettings": { + "$ref": "#/components/schemas/UpdateAudiLogSettingsRequest" + }, + "automaticLock": { + "$ref": "#/components/schemas/UpdateAutomaticLockRequest" + }, + "breakSettings": { + "$ref": "#/components/schemas/BreakSettingsRequest" + }, + "canManagerEditUsersTime": { + "type": "boolean", + "writeOnly": true + }, + "canManagerLaunchKiosk": { + "type": "boolean", + "writeOnly": true + }, + "canSeeTimeSheet": { + "type": "boolean", + "writeOnly": true + }, + "canSeeTracker": { + "type": "boolean", + "writeOnly": true + }, + "companyAddress": { + "type": "string" + }, + "costRateActive": { + "type": "boolean" + }, + "currencyFormat": { + "type": "string", + "enum": [ + "CURRENCY_SPACE_VALUE", + "VALUE_SPACE_CURRENCY", + "CURRENCY_VALUE", + "VALUE_CURRENCY" + ] + }, + "decimalFormat": { + "type": "boolean", + "deprecated": true + }, + "defaultBillableProjects": { + "type": "boolean", + "writeOnly": true + }, + "durationFormat": { + "type": "string", + "enum": [ + "FULL", + "COMPACT", + "DECIMAL" + ] + }, + "entityCreationPermissions": { + "$ref": "#/components/schemas/UpdateEntityCreationPermissionsRequest" + }, + "expensesEnabled": { + "type": "boolean", + "writeOnly": true + }, + "favoriteEntriesEnabled": { + "type": "boolean", + "writeOnly": true + }, + "forceDescription": { + "type": "boolean", + "writeOnly": true + }, + "forceProjects": { + "type": "boolean", + "writeOnly": true + }, + "forceTags": { + "type": "boolean", + "writeOnly": true + }, + "forceTasks": { + "type": "boolean", + "writeOnly": true + }, + "highResolutionScreenshots": { + "type": "boolean", + "writeOnly": true + }, + "invoicingEnabled": { + "type": "boolean", + "writeOnly": true + }, + "isCostRateActive": { + "type": "boolean", + "writeOnly": true + }, + "isProjectPublicByDefault": { + "type": "boolean", + "writeOnly": true + }, + "kioskAutologinEnabled": { + "type": "boolean", + "writeOnly": true + }, + "kioskEnabled": { + "type": "boolean", + "writeOnly": true + }, + "kioskProjectsAndTasksEnabled": { + "type": "boolean", + "writeOnly": true + }, + "locationsEnabled": { + "type": "boolean", + "writeOnly": true + }, + "lockTimeEntries": { + "type": "string", + "writeOnly": true + }, + "lockTimeZone": { + "type": "string", + "writeOnly": true + }, + "lockedTimeEntries": { + "type": "string" + }, + "multiFactorEnabled": { + "type": "boolean" + }, + "numberFormat": { + "type": "string", + "enum": [ + "COMMA_PERIOD", + "PERIOD_COMMA", + "QUOTATION_MARK_PERIOD", + "SPACE_COMMA" + ] + }, + "onlyAdminsCanChangeBillableStatus": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsCreateProject": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsCreateTag": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsCreateTask": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsSeeAllTimeEntries": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsSeeBillableRates": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsSeeDashboard": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsSeeProjectStatus": { + "type": "boolean", + "writeOnly": true + }, + "onlyAdminsSeePublicProjectsEntries": { + "type": "boolean", + "writeOnly": true + }, + "projectFavorite": { + "type": "boolean", + "writeOnly": true + }, + "projectFavorites": { + "type": "boolean" + }, + "projectGroupingLabel": { + "maxLength": 200, + "minLength": 1, + "type": "string" + }, + "projectPickerSpecialFilter": { + "type": "boolean" + }, + "projectPublicByDefault": { + "type": "boolean" + }, + "pumbleIntegrationSettings": { + "$ref": "#/components/schemas/UpdatePumbleIntegrationSettingsRequest" + }, + "pumbleIntegrationSettingsRequest": { + "$ref": "#/components/schemas/UpdatePumbleIntegrationSettingsRequest" + }, + "round": { + "$ref": "#/components/schemas/UpdateRoundRequest" + }, + "schedulingEnabled": { + "type": "boolean" + }, + "schedulingSettings": { + "$ref": "#/components/schemas/UpdateSchedulingSettingsRequest" + }, + "screenshotsEnabled": { + "type": "boolean", + "writeOnly": true + }, + "taskBillableEnabled": { + "type": "boolean", + "writeOnly": true + }, + "taskRateEnabled": { + "type": "boolean", + "writeOnly": true + }, + "timeApprovalEnabled": { + "type": "boolean", + "writeOnly": true + }, + "timeOff": { + "$ref": "#/components/schemas/UpdateTimeOffRequest" + }, + "timeRoundingInReports": { + "type": "boolean", + "writeOnly": true + }, + "timeTrackingMode": { + "type": "string", + "writeOnly": true, + "enum": [ + "DEFAULT", + "STOPWATCH_ONLY" + ] + }, + "timesheetOn": { + "type": "boolean" + }, + "trackTimeDownToSecond": { + "type": "boolean", + "writeOnly": true + }, + "trackerOn": { + "type": "boolean" + }, + "weekStart": { + "type": "string", + "writeOnly": true + }, + "workingDays": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UpgradePreCheckDto": { + "type": "object", + "properties": { + "canUpgrade": { + "type": "boolean" + }, + "workspaceForRedirect": { + "type": "string" + } + } + }, + "UpgradePriceDto": { + "type": "object", + "properties": { + "appliedBalance": { + "type": "number", + "format": "double" + }, + "currency": { + "type": "string" + }, + "minLimitedQty": { + "type": "integer", + "format": "int32" + }, + "minRegularQty": { + "type": "integer", + "format": "int32" + }, + "price": { + "type": "number", + "format": "double" + }, + "subtotal": { + "type": "number", + "format": "double" + }, + "taxes": { + "type": "object", + "additionalProperties": { + "type": "number", + "format": "double" + } + }, + "total": { + "type": "number", + "format": "double" + } + } + }, + "UploadFileResponse": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + } + }, + "UploadFileResponseV1": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "File name of the uploaded image", + "example": "image-01234567.jpg" + }, + "url": { + "type": "string", + "description": "The URL of the uploaded image in the server", + "example": "https://clockify.com/image-01234567.jpg" + } + } + }, + "UpsertUserCustomFieldRequest": { + "required": [ + "customFieldId" + ], + "type": "object", + "properties": { + "customFieldId": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "5e4117fe8c625f38930d57b7" + }, + "value": { + "type": "object", + "description": "Represents custom field value.", + "example": "20231211-12345" + } + } + }, + "UpsertUserCustomFieldRequestV1": { + "type": "object", + "properties": { + "value": { + "type": "object", + "description": "Represents custom field value.", + "example": "20231211-12345" + } + } + }, + "Url": { + "type": "object" + }, + "UserAccessDisabledDto": { + "type": "object", + "properties": { + "accessDisabledDetails": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "accessEnabled": { + "type": "boolean" + }, + "apiKey": { + "$ref": "#/components/schemas/ApiKeyDto" + }, + "countActiveWsMemberships": { + "type": "integer", + "format": "int64" + }, + "countInactiveWsMemberships": { + "type": "integer", + "format": "int64" + }, + "countInvitedWsMemberships": { + "type": "integer", + "format": "int64" + }, + "countOfWorkspaces": { + "type": "integer", + "format": "int64" + }, + "disabledAt": { + "type": "string" + }, + "disabledBy": { + "type": "string" + }, + "email": { + "type": "string" + }, + "entityId": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "PENDING_EMAIL_VERIFICATION", + "DELETED", + "NOT_REGISTERED", + "LIMITED", + "LIMITED_DELETED" + ] + } + } + }, + "UserAdminDto": { + "type": "object", + "properties": { + "accessEnabled": { + "type": "boolean" + }, + "apiKey": { + "$ref": "#/components/schemas/ApiKeyDto" + }, + "countActiveWsMemberships": { + "type": "integer", + "format": "int64" + }, + "countInactiveWsMemberships": { + "type": "integer", + "format": "int64" + }, + "countInvitedWsMemberships": { + "type": "integer", + "format": "int64" + }, + "countOfWorkspaces": { + "type": "integer", + "format": "int64" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "PENDING_EMAIL_VERIFICATION", + "DELETED", + "NOT_REGISTERED", + "LIMITED", + "LIMITED_DELETED" + ] + } + } + }, + "UserAssignmentsRequest": { + "type": "object", + "properties": { + "end": { + "type": "string", + "format": "date-time" + }, + "start": { + "type": "string", + "format": "date-time" + }, + "statusFilter": { + "type": "string", + "enum": [ + "PUBLISHED", + "UNPUBLISHED", + "ALL" + ] + } + } + }, + "UserAttendanceReportFilterRequest": { + "type": "object", + "properties": { + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldFilter" + } + }, + "includeUsers": { + "type": "boolean" + }, + "page": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "pageSize": { + "minimum": 1, + "type": "integer", + "format": "int32" + }, + "searchValue": { + "type": "string" + }, + "sortColumn": { + "type": "string" + }, + "sortOrder": { + "type": "string" + }, + "statuses": { + "type": "array", + "items": { + "type": "string" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userStatuses": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UserCapacityDto": { + "type": "object", + "properties": { + "capacity": { + "type": "integer", + "format": "int64" + }, + "userId": { + "type": "string" + } + } + }, + "UserChangesPasswordRequest": { + "required": [ + "newPassword", + "newPasswordRepeated", + "oldPassword" + ], + "type": "object", + "properties": { + "newPassword": { + "type": "string" + }, + "newPasswordRepeated": { + "type": "string" + }, + "oldPassword": { + "type": "string" + } + } + }, + "UserCustomFieldPutRequest": { + "type": "object", + "properties": { + "userCustomFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpsertUserCustomFieldRequest" + } + } + } + }, + "UserCustomFieldValueDto": { + "type": "object", + "properties": { + "customFieldId": { + "type": "string" + }, + "sourceType": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "UserCustomFieldValueDtoV1": { + "type": "object", + "properties": { + "customFieldId": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "5e4117fe8c625f38930d57b7" + }, + "customFieldName": { + "type": "string", + "description": "Represents custom field name.", + "example": "TIN" + }, + "customFieldType": { + "$ref": "#/components/schemas/CustomFieldType" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "value": { + "type": "object", + "description": "Represents custom field value.", + "example": "20231211-12345" + } + } + }, + "UserCustomFieldValueFullDto": { + "type": "object", + "properties": { + "customField": { + "$ref": "#/components/schemas/CustomFieldDto" + }, + "customFieldDto": { + "$ref": "#/components/schemas/CustomFieldDto" + }, + "customFieldId": { + "type": "string" + }, + "name": { + "type": "string" + }, + "sourceType": { + "type": "string" + }, + "type": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "value": { + "type": "object" + } + } + }, + "UserCustomFieldValueFullDtoV1": { + "type": "object", + "properties": { + "customField": { + "$ref": "#/components/schemas/CustomFieldDtoV1" + }, + "customFieldId": { + "type": "string", + "description": "Represents custom field identifier across the system.", + "example": "5e4117fe8c625f38930d57b7" + }, + "name": { + "type": "string", + "description": "Represents user custom field name.", + "example": "race" + }, + "sourceType": { + "type": "string", + "description": "Represents user custom field source type.", + "example": "WORKSPACE", + "enum": [ + "WORKSPACE", + "USER" + ] + }, + "type": { + "type": "string", + "description": "Represents custom field type.", + "example": "DROPDOWN_MULTIPLE", + "enum": [ + "TXT", + "NUMBER", + "DROPDOWN_SINGLE", + "DROPDOWN_MULTIPLE", + "CHECKBOX", + "LINK" + ] + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "value": { + "type": "object", + "description": "Represents user custom field value.", + "example": "Asian" + } + }, + "description": "Represents a list of value objects for user\u2019s custom fields." + }, + "UserDeleteRequest": { + "type": "object", + "properties": { + "emailForm": { + "type": "string", + "writeOnly": true + }, + "message": { + "type": "string" + } + } + }, + "UserDto": { + "type": "object", + "properties": { + "activeWorkspace": { + "type": "string" + }, + "defaultWorkspace": { + "type": "string" + }, + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "profilePicture": { + "type": "string" + }, + "settings": { + "$ref": "#/components/schemas/UserSettingsDto" + }, + "status": { + "type": "string", + "enum": [ + "ACTIVE", + "PENDING_EMAIL_VERIFICATION", + "DELETED", + "NOT_REGISTERED", + "LIMITED", + "LIMITED_DELETED" + ] + } + } + }, + "UserDtoV1": { + "type": "object", + "properties": { + "activeWorkspace": { + "type": "string", + "description": "Represents user's active workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + }, + "customFields": { + "type": "array", + "description": "Represents a list of value objects for user\u2019s custom fields.", + "items": { + "$ref": "#/components/schemas/UserCustomFieldValueDtoV1" + } + }, + "defaultWorkspace": { + "type": "string", + "description": "Represents user default workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + }, + "email": { + "type": "string", + "description": "Represents email address of the user.", + "example": "johndoe@example.com" + }, + "id": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "memberships": { + "type": "array", + "description": "Represents a list of membership objects.", + "items": { + "$ref": "#/components/schemas/MembershipDtoV1" + } + }, + "name": { + "type": "string", + "description": "Represents name of the user.", + "example": "John Doe" + }, + "profilePicture": { + "type": "string", + "description": "Represents profile image path of the user.", + "example": "https://www.url.com/profile-picture1234567890.png" + }, + "settings": { + "$ref": "#/components/schemas/UserSettingsDtoV1" + }, + "status": { + "$ref": "#/components/schemas/AccountStatus" + } + } + }, + "UserEmailAvailabilityDataSyncResponse": { + "type": "object", + "properties": { + "available": { + "type": "boolean", + "description": "true or false depending on the availability status" + } + } + }, + "UserEmailsRequest": { + "type": "object", + "properties": { + "emails": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UserForgotPinRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "userId": { + "type": "string" + } + } + }, + "UserGroupAttendanceFilterRequest": { + "type": "object", + "properties": { + "excludedIds": { + "uniqueItems": true, + "type": "array", + "writeOnly": true, + "items": { + "type": "string" + } + }, + "forceFilter": { + "type": "boolean" + }, + "includeUsers": { + "type": "boolean" + }, + "page": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "pageSize": { + "minimum": 1, + "type": "integer", + "format": "int32" + }, + "searchValue": { + "type": "string" + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UserGroupDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "userIds": { + "type": "array", + "items": { + "type": "string" + } + }, + "workspaceId": { + "type": "string" + } + } + }, + "UserGroupDtoV1": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Represents user group identifier across the system.", + "example": "76a687e29ae1f428e7ebe101" + }, + "name": { + "type": "string", + "description": "Represents user group name.", + "example": "development_team" + }, + "userIds": { + "type": "array", + "description": "Represents a list of users' identifiers across the system.", + "example": [ + "5a0ab5acb07987125438b60f", + "98j4b5acb07987125437y32" + ], + "items": { + "type": "string", + "description": "Represents a list of users' identifiers across the system.", + "example": "[\"5a0ab5acb07987125438b60f\",\"98j4b5acb07987125437y32\"]" + } + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "UserGroupIdsSchema": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents ids upon which filtering is performed.", + "example": [ + "5b715612b079875110791111", + "5b715612b079875110791222" + ], + "items": { + "type": "string", + "description": "Represents ids upon which filtering is performed.", + "example": "[\"5b715612b079875110791111\",\"5b715612b079875110791222\"]" + } + }, + "status": { + "type": "string", + "description": "Represents user status.", + "example": "ALL", + "enum": [ + "ALL", + "ACTIVE", + "INACTIVE" + ] + } + }, + "description": "Provide list with user group ids and corresponding status." + }, + "UserGroupInfoDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "UserGroupReportFilterRequest": { + "type": "object", + "properties": { + "excludeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "forApproval": { + "type": "boolean" + }, + "forceFilter": { + "type": "boolean" + }, + "ignoreFilter": { + "type": "boolean" + }, + "page": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "pageSize": { + "minimum": 1, + "type": "integer", + "format": "int32" + }, + "searchValue": { + "type": "string" + } + } + }, + "UserGroupRequest": { + "type": "object", + "properties": { + "name": { + "maxLength": 100, + "minLength": 0, + "type": "string", + "description": "Represents user group name.", + "example": "development_team" + } + } + }, + "UserGroupUserRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + } + } + }, + "UserIdWithRatesRequest": { + "required": [ + "userId" + ], + "type": "object", + "properties": { + "costRate": { + "$ref": "#/components/schemas/CostRateRequestV1" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateRequestV1" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "12t687e29ae1f428e7ebe202" + } + }, + "description": "Represents a list of users with id and rates request objects." + }, + "UserIdsSchema": { + "type": "object", + "properties": { + "contains": { + "type": "string", + "example": "CONTAINS", + "enum": [ + "CONTAINS", + "DOES_NOT_CONTAIN" + ] + }, + "ids": { + "uniqueItems": true, + "type": "array", + "description": "Represents ids upon which filtering is performed.", + "example": [ + "5b715612b079875110791111", + "5b715612b079875110791222" + ], + "items": { + "type": "string", + "description": "Represents ids upon which filtering is performed.", + "example": "[\"5b715612b079875110791111\",\"5b715612b079875110791222\"]" + } + }, + "status": { + "type": "string", + "description": "Represents user status.", + "example": "ALL", + "enum": [ + "ALL", + "ACTIVE", + "INACTIVE" + ] + } + }, + "description": "Provide list with user ids and corresponding status." + }, + "UserInfoDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + }, + "timeZone": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "UserInfoWithMembershipStatusDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "membershipStatus": { + "type": "string", + "enum": [ + "PENDING", + "ACTIVE", + "DECLINED", + "INACTIVE", + "ALL" + ] + }, + "name": { + "type": "string" + }, + "userId": { + "type": "string" + } + } + }, + "UserInvitationDto": { + "type": "object", + "properties": { + "cakeOrganizationId": { + "type": "string" + }, + "cakeOrganizationName": { + "type": "string" + }, + "creation": { + "type": "string", + "format": "date-time" + }, + "invitationCode": { + "type": "string" + }, + "invitationId": { + "type": "string" + }, + "invitedBy": { + "type": "string" + }, + "lang": { + "type": "string" + }, + "notificationId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "workspaceDetail": { + "$ref": "#/components/schemas/WorkspaceDetailDto" + } + } + }, + "UserListAndCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserDto" + } + } + } + }, + "UserMembershipAndInviteDto": { + "type": "object", + "properties": { + "cakeOrganizations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CakeOrganization" + } + }, + "pendingInvitations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserInvitationDto" + } + }, + "regions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RegionDto" + } + }, + "userInfo": { + "$ref": "#/components/schemas/CakeUserInfo" + }, + "workspaceDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WorkspaceUserMembershipDto" + } + } + } + }, + "UserNotificationMarkAsReadManyRequest": { + "type": "object", + "properties": { + "notifications": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UserNotificationMarkAsReadRequest": { + "required": [ + "notificationId" + ], + "type": "object", + "properties": { + "notificationId": { + "type": "string" + } + } + }, + "UserReportFilterRequest": { + "type": "object", + "properties": { + "customFields": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomFieldFilter" + } + }, + "excludeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "forApproval": { + "type": "boolean" + }, + "forceFilter": { + "type": "boolean" + }, + "ignoreFilter": { + "type": "boolean" + }, + "page": { + "minimum": 0, + "type": "integer", + "format": "int32" + }, + "pageSize": { + "minimum": 1, + "type": "integer", + "format": "int32" + }, + "reportType": { + "type": "string" + }, + "searchValue": { + "type": "string" + }, + "sortColumn": { + "type": "string" + }, + "sortOrder": { + "type": "string" + }, + "statuses": { + "type": "array", + "items": { + "type": "string" + } + }, + "userStatuses": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UserRolesInfoDto": { + "type": "object", + "properties": { + "user-roles": { + "type": "array", + "writeOnly": true, + "items": { + "$ref": "#/components/schemas/RoleInfoDto" + }, + "x-go-name": "Userroles" + }, + "userRoles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/RoleInfoDto" + }, + "x-go-name": "Userroles1" + } + } + }, + "UserSetPasswordRequest": { + "required": [ + "newPassword", + "retypedNewPassword" + ], + "type": "object", + "properties": { + "newPassword": { + "type": "string" + }, + "retypedNewPassword": { + "type": "string" + } + } + }, + "UserSettingsDto": { + "required": [ + "dateFormat", + "timeFormat", + "timeZone" + ], + "type": "object", + "properties": { + "alerts": { + "type": "boolean" + }, + "approval": { + "type": "boolean" + }, + "collapseAllProjectLists": { + "type": "boolean" + }, + "darkTheme": { + "type": "boolean" + }, + "dashboardPinToTop": { + "type": "boolean" + }, + "dashboardSelection": { + "type": "string", + "enum": [ + "ME", + "TEAM" + ] + }, + "dashboardViewType": { + "type": "string", + "enum": [ + "PROJECT", + "BILLABILITY" + ] + }, + "dateFormat": { + "type": "string" + }, + "groupSimilarEntriesDisabled": { + "type": "boolean" + }, + "isCompactViewOn": { + "type": "boolean" + }, + "lang": { + "type": "string" + }, + "longRunning": { + "type": "boolean" + }, + "multiFactorEnabled": { + "type": "boolean" + }, + "myStartOfDay": { + "type": "string" + }, + "onboarding": { + "type": "boolean" + }, + "projectListCollapse": { + "type": "integer", + "format": "int32" + }, + "projectPickerSpecialFilter": { + "type": "boolean" + }, + "pto": { + "type": "boolean" + }, + "reminders": { + "type": "boolean" + }, + "scheduledReports": { + "type": "boolean" + }, + "scheduling": { + "type": "boolean" + }, + "sendNewsletter": { + "type": "boolean" + }, + "showOnlyWorkingDays": { + "type": "boolean" + }, + "summaryReportSettings": { + "$ref": "#/components/schemas/SummaryReportSettingsDto" + }, + "theme": { + "type": "string", + "enum": [ + "DARK", + "DEFAULT" + ] + }, + "timeFormat": { + "type": "string" + }, + "timeTrackingManual": { + "type": "boolean" + }, + "timeZone": { + "type": "string" + }, + "weekStart": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "weeklyUpdates": { + "type": "boolean" + } + } + }, + "UserSettingsDtoV1": { + "required": [ + "dateFormat", + "timeFormat", + "timeZone" + ], + "type": "object", + "properties": { + "alerts": { + "type": "boolean", + "example": true + }, + "approval": { + "type": "boolean", + "example": false + }, + "collapseAllProjectLists": { + "type": "boolean", + "example": true + }, + "dashboardPinToTop": { + "type": "boolean", + "example": true + }, + "dashboardSelection": { + "type": "string", + "example": "ME", + "enum": [ + "ME", + "TEAM" + ] + }, + "dashboardViewType": { + "type": "string", + "example": "BILLABILITY", + "enum": [ + "PROJECT", + "BILLABILITY" + ] + }, + "dateFormat": { + "type": "string", + "description": "Represents a date format.", + "example": "MM/DD/YYYY" + }, + "groupSimilarEntriesDisabled": { + "type": "boolean", + "example": true + }, + "isCompactViewOn": { + "type": "boolean", + "example": false + }, + "lang": { + "type": "string", + "example": "en" + }, + "longRunning": { + "type": "boolean", + "example": true + }, + "multiFactorEnabled": { + "type": "boolean", + "example": true + }, + "myStartOfDay": { + "type": "string", + "example": "09:00" + }, + "onboarding": { + "type": "boolean", + "example": false + }, + "projectListCollapse": { + "type": "integer", + "format": "int32", + "example": 15 + }, + "projectPickerTaskFilter": { + "type": "boolean", + "example": false + }, + "pto": { + "type": "boolean", + "example": true + }, + "reminders": { + "type": "boolean", + "example": false + }, + "scheduledReports": { + "type": "boolean", + "example": true + }, + "scheduling": { + "type": "boolean", + "example": false + }, + "sendNewsletter": { + "type": "boolean", + "example": false + }, + "showOnlyWorkingDays": { + "type": "boolean", + "example": false + }, + "summaryReportSettings": { + "$ref": "#/components/schemas/SummaryReportSettingsDtoV1" + }, + "theme": { + "type": "string", + "example": "DARK", + "enum": [ + "DARK", + "DEFAULT" + ] + }, + "timeFormat": { + "type": "string", + "description": "Represents a time format enum.", + "example": "HOUR24", + "enum": [ + "HOUR12", + "HOUR24" + ] + }, + "timeTrackingManual": { + "type": "boolean", + "example": true + }, + "timeZone": { + "type": "string", + "description": "Represents a valid timezone ID", + "example": "Asia/Aden" + }, + "weekStart": { + "$ref": "#/components/schemas/DayOfWeek" + }, + "weeklyUpdates": { + "type": "boolean", + "example": false + } + }, + "description": "Represents user settings object." + }, + "UserSummaryDto": { + "type": "object", + "properties": { + "email": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "UsersAndCountDto": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "format": "int64" + }, + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserAdminDto" + } + } + } + }, + "UsersDto": { + "type": "object", + "properties": { + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserAdminDto" + } + } + } + }, + "UsersExistRequest": { + "required": [ + "userEmails" + ], + "type": "object", + "properties": { + "includeInvitations": { + "type": "boolean" + }, + "userEmails": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "userIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UsersIdsRequest": { + "type": "object", + "properties": { + "excludeIds": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + }, + "ids": { + "maxItems": 50, + "minItems": 0, + "uniqueItems": true, + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "UsersNameAndProfilePictureDto": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "profilePictureUrl": { + "type": "string" + } + } + }, + "VerificationCodeRequest": { + "type": "object", + "properties": { + "currentLang": { + "type": "string" + }, + "isSignup": { + "type": "boolean", + "writeOnly": true + }, + "signUp": { + "type": "boolean" + }, + "state": { + "type": "string" + }, + "terms": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/TermDto" + } + }, + "timeZone": { + "type": "string" + } + } + }, + "VisibleZeroFieldsInvoice": { + "type": "string", + "description": "Represents a list of zero value invoice fields that will be visible.", + "enum": [ + "TAX", + "TAX_2", + "DISCOUNT" + ] + }, + "WalkthroughCreationRequest": { + "type": "object", + "properties": { + "walkthrough": { + "type": "string" + } + } + }, + "WalkthroughDto": { + "type": "object", + "properties": { + "unfinished": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "INITIAL_APP_SWITCHER" + ] + } + } + } + }, + "WebhookDto": { + "type": "object", + "properties": { + "authToken": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "triggerSource": { + "type": "array", + "items": { + "type": "string" + } + }, + "triggerSourceType": { + "type": "string", + "enum": [ + "PROJECT_ID", + "USER_ID", + "TAG_ID", + "TASK_ID", + "WORKSPACE_ID", + "USER_GROUP_ID", + "INVOICE_ID", + "ASSIGNMENT_ID", + "EXPENSE_ID" + ] + }, + "url": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "webhookEvent": { + "type": "string", + "enum": [ + "NEW_PROJECT", + "NEW_TASK", + "NEW_CLIENT", + "NEW_TIMER_STARTED", + "TIMER_STOPPED", + "TIME_ENTRY_UPDATED", + "TIME_ENTRY_DELETED", + "TIME_ENTRY_SPLIT", + "NEW_TIME_ENTRY", + "TIME_ENTRY_RESTORED", + "NEW_TAG", + "USER_DELETED_FROM_WORKSPACE", + "USER_JOINED_WORKSPACE", + "USER_DEACTIVATED_ON_WORKSPACE", + "USER_ACTIVATED_ON_WORKSPACE", + "USER_EMAIL_CHANGED", + "USER_UPDATED", + "TEST", + "RESEND", + "NEW_INVOICE", + "INVOICE_UPDATED", + "NEW_APPROVAL_REQUEST", + "APPROVAL_REQUEST_STATUS_UPDATED", + "TIME_OFF_REQUESTED", + "TIME_OFF_REQUEST_APPROVED", + "TIME_OFF_REQUEST_REJECTED", + "TIME_OFF_REQUEST_WITHDRAWN", + "BALANCE_UPDATED", + "TAG_UPDATED", + "TAG_DELETED", + "TASK_UPDATED", + "CLIENT_UPDATED", + "TASK_DELETED", + "CLIENT_DELETED", + "EXPENSE_RESTORED", + "ASSIGNMENT_CREATED", + "ASSIGNMENT_DELETED", + "ASSIGNMENT_PUBLISHED", + "ASSIGNMENT_UPDATED", + "EXPENSE_CREATED", + "EXPENSE_DELETED", + "EXPENSE_UPDATED" + ] + }, + "workspaceId": { + "type": "string" + } + } + }, + "WebhookDtoV1": { + "type": "object", + "properties": { + "authToken": { + "type": "string", + "description": "Represents an authentication token.", + "example": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiI2NGI3YmU3YmUwODM1Yjc2ZDYzOTY5YTciLCJtdWx0aUZhY3RvciI6dHJ1ZSwiaXNzIjoiY2xvY2tpZnkiLCJuYW1lIjoiTWFydGluIExsb3lkIiwiZXhwIjoxNjkzMzY5MzEwLCJ0eXBlIjoiYWNjZXNzIiwiaWF0IjoxNjkzMzI2MTEwLCJqdGkiOiJZVGcxT0Raak9XTXRPRGRsWVMwME5qZ3hMVGxpTlRndE5UQmlOVEprTmpOaE" + }, + "enabled": { + "type": "boolean", + "description": "Indicates whether webhook is enabled or not." + }, + "id": { + "type": "string", + "description": "Represents webhook identifier across the system.", + "example": "76a687e29ae1f428e7ebe101" + }, + "name": { + "type": "string", + "description": "Represents webhook name.", + "example": "stripe" + }, + "triggerSource": { + "type": "array", + "description": "Represents a list of trigger sources.", + "example": [ + "54a687e29ae1f428e7ebe909", + "87p187e29ae1f428e7ebej56" + ], + "items": { + "type": "string", + "description": "Represents a list of trigger sources.", + "example": "[\"54a687e29ae1f428e7ebe909\",\"87p187e29ae1f428e7ebej56\"]" + } + }, + "triggerSourceType": { + "$ref": "#/components/schemas/WebhookEventTriggerSourceType" + }, + "url": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "https://example-clockify.com/stripeEndpoint" + }, + "userId": { + "type": "string", + "description": "Represents user identifier across the system.", + "example": "5a0ab5acb07987125438b60f" + }, + "webhookEvent": { + "$ref": "#/components/schemas/WebhookEventType" + }, + "workspaceId": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + } + } + }, + "WebhookEventTriggerSourceType": { + "type": "string", + "description": "Represents a webhook event trigger source type.", + "enum": [ + "PROJECT_ID", + "USER_ID", + "TAG_ID", + "TASK_ID", + "WORKSPACE_ID", + "USER_GROUP_ID", + "INVOICE_ID", + "ASSIGNMENT_ID", + "EXPENSE_ID" + ] + }, + "WebhookEventType": { + "type": "string", + "description": "Represents webhook event type.", + "enum": [ + "NEW_PROJECT", + "NEW_TASK", + "NEW_CLIENT", + "NEW_TIMER_STARTED", + "TIMER_STOPPED", + "TIME_ENTRY_UPDATED", + "TIME_ENTRY_DELETED", + "TIME_ENTRY_SPLIT", + "NEW_TIME_ENTRY", + "TIME_ENTRY_RESTORED", + "NEW_TAG", + "USER_DELETED_FROM_WORKSPACE", + "USER_JOINED_WORKSPACE", + "USER_DEACTIVATED_ON_WORKSPACE", + "USER_ACTIVATED_ON_WORKSPACE", + "USER_EMAIL_CHANGED", + "USER_UPDATED", + "TEST", + "RESEND", + "NEW_INVOICE", + "INVOICE_UPDATED", + "NEW_APPROVAL_REQUEST", + "APPROVAL_REQUEST_STATUS_UPDATED", + "TIME_OFF_REQUESTED", + "TIME_OFF_REQUEST_APPROVED", + "TIME_OFF_REQUEST_REJECTED", + "TIME_OFF_REQUEST_WITHDRAWN", + "BALANCE_UPDATED", + "TAG_UPDATED", + "TAG_DELETED", + "TASK_UPDATED", + "CLIENT_UPDATED", + "TASK_DELETED", + "CLIENT_DELETED", + "EXPENSE_RESTORED", + "ASSIGNMENT_CREATED", + "ASSIGNMENT_DELETED", + "ASSIGNMENT_PUBLISHED", + "ASSIGNMENT_UPDATED", + "EXPENSE_CREATED", + "EXPENSE_DELETED", + "EXPENSE_UPDATED" + ] + }, + "WebhookLogDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "requestBody": { + "type": "string" + }, + "respondedAt": { + "type": "string" + }, + "responseBody": { + "type": "string" + }, + "statusCode": { + "type": "integer", + "format": "int32" + }, + "webhookId": { + "type": "string" + } + } + }, + "WebhookLogDtoV1": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Represents log identifier across the system.", + "example": "65e5b854fe0dfa24f1528ef0" + }, + "requestBody": { + "type": "string", + "description": "Represents request body.", + "example": "{\"id\":\"65df50f5d2dd8f23a685374e\",\"name\":\"Webhook\"}" + }, + "respondedAt": { + "type": "string", + "description": "Represents date and time of response.", + "example": "2024-03-04T12:02:28.125+00:00" + }, + "responseBody": { + "type": "string", + "description": "Represents response body.", + "example": "{\"id\":\"h73210f5d2dd8f23685374e\",\"response\":\"Webhook response\"}" + }, + "statusCode": { + "type": "integer", + "description": "Represents response status code.", + "format": "int32", + "example": 200 + }, + "webhookId": { + "type": "string", + "description": "Represents webhook identifier across the system.", + "example": "65df5508d2dd8f23a68537af" + } + } + }, + "WebhookLogSearchRequestV1": { + "type": "object", + "properties": { + "from": { + "type": "string", + "description": "Represents date and time in yyyy-MM-ddThh:mm:ssZ format. If provided, results will include logs which occurred after this value.", + "format": "date-time", + "example": "2023-02-01T13:00:46Z" + }, + "sortByNewest": { + "type": "boolean", + "description": "If set to true, logs will be sorted with most recent first." + }, + "status": { + "type": "string", + "description": "Filters logs by status.", + "enum": [ + "ALL", + "SUCCEEDED", + "FAILED" + ] + }, + "to": { + "type": "string", + "description": "Represents date and time in yyyy-MM-ddThh:mm:ssZ format. If provided, results will include logs which occurred before this value.", + "format": "date-time", + "example": "2023-02-05T13:00:46Z" + } + } + }, + "WebhookRequest": { + "required": [ + "triggerSource", + "url" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "triggerSource": { + "type": "array", + "items": { + "type": "string" + } + }, + "triggerSourceType": { + "type": "string", + "enum": [ + "PROJECT_ID", + "USER_ID", + "TAG_ID", + "TASK_ID", + "WORKSPACE_ID", + "USER_GROUP_ID", + "INVOICE_ID", + "ASSIGNMENT_ID", + "EXPENSE_ID" + ] + }, + "url": { + "type": "string" + }, + "webhookEvent": { + "type": "string", + "enum": [ + "NEW_PROJECT", + "NEW_TASK", + "NEW_CLIENT", + "NEW_TIMER_STARTED", + "TIMER_STOPPED", + "TIME_ENTRY_UPDATED", + "TIME_ENTRY_DELETED", + "TIME_ENTRY_SPLIT", + "NEW_TIME_ENTRY", + "TIME_ENTRY_RESTORED", + "NEW_TAG", + "USER_DELETED_FROM_WORKSPACE", + "USER_JOINED_WORKSPACE", + "USER_DEACTIVATED_ON_WORKSPACE", + "USER_ACTIVATED_ON_WORKSPACE", + "USER_EMAIL_CHANGED", + "USER_UPDATED", + "TEST", + "RESEND", + "NEW_INVOICE", + "INVOICE_UPDATED", + "NEW_APPROVAL_REQUEST", + "APPROVAL_REQUEST_STATUS_UPDATED", + "TIME_OFF_REQUESTED", + "TIME_OFF_REQUEST_APPROVED", + "TIME_OFF_REQUEST_REJECTED", + "TIME_OFF_REQUEST_WITHDRAWN", + "BALANCE_UPDATED", + "TAG_UPDATED", + "TAG_DELETED", + "TASK_UPDATED", + "CLIENT_UPDATED", + "TASK_DELETED", + "CLIENT_DELETED", + "EXPENSE_RESTORED", + "ASSIGNMENT_CREATED", + "ASSIGNMENT_DELETED", + "ASSIGNMENT_PUBLISHED", + "ASSIGNMENT_UPDATED", + "EXPENSE_CREATED", + "EXPENSE_DELETED", + "EXPENSE_UPDATED" + ] + } + } + }, + "WebhooksDto": { + "type": "object", + "properties": { + "webhooks": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WebhookDto" + } + }, + "workspaceWebhookCount": { + "type": "integer", + "format": "int32" + } + } + }, + "WebhooksDtoV1": { + "type": "object", + "properties": { + "webhooks": { + "type": "array", + "description": "Represents a list of webhook objects for the workspace.", + "items": { + "$ref": "#/components/schemas/WebhookDtoV1" + } + }, + "workspaceWebhookCount": { + "type": "integer", + "description": "Represents number of webhooks for the workspace.", + "format": "int32", + "example": 5 + } + } + }, + "WeeklyCapacityDto": { + "type": "object", + "properties": { + "firstDateOfWeek": { + "type": "string", + "format": "date" + }, + "offHours": { + "type": "number", + "format": "double" + }, + "percentage": { + "type": "number", + "format": "double" + }, + "workingHours": { + "type": "number", + "format": "double" + } + } + }, + "WorkspaceAccessDisabledDto": { + "type": "object", + "properties": { + "accessDisabled": { + "type": "boolean" + }, + "accessDisabledDetails": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "currentSubscriptionPlan": { + "type": "string" + }, + "customerIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "disabledAt": { + "type": "string" + }, + "disabledBy": { + "type": "string" + }, + "name": { + "type": "string" + }, + "numberOfActiveLimitedUsers": { + "type": "integer", + "format": "int32" + }, + "numberOfActiveUsers": { + "type": "integer", + "format": "int32" + }, + "numberOfInactiveUsers": { + "type": "integer", + "format": "int32" + }, + "numberOfPendingUsers": { + "type": "integer", + "format": "int32" + }, + "ownerEmail": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "stripeCustomerId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "WorkspaceDetailDto": { + "type": "object", + "properties": { + "isOnSubdomain": { + "type": "boolean" + }, + "region": { + "type": "string" + }, + "requireSSO": { + "type": "boolean" + }, + "workspaceId": { + "type": "string" + }, + "workspaceImageUrl": { + "type": "string" + }, + "workspaceName": { + "type": "string" + }, + "workspaceStatus": { + "type": "string" + }, + "workspaceUrl": { + "type": "string" + } + } + }, + "WorkspaceDto": { + "type": "object", + "properties": { + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currency": { + "$ref": "#/components/schemas/CurrencyDto" + }, + "featureSubscriptionType": { + "type": "string", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + }, + "features": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADD_TIME_FOR_OTHERS", + "ADMIN_PANEL", + "ALERTS", + "APPROVAL", + "AUDIT_LOG", + "AUTOMATIC_LOCK", + "BRANDED_REPORTS", + "BULK_EDIT", + "CUSTOM_FIELDS", + "CUSTOM_REPORTING", + "CUSTOM_SUBDOMAIN", + "DECIMAL_FORMAT", + "DISABLE_MANUAL_MODE", + "EDIT_MEMBER_PROFILE", + "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE", + "EXPENSES", + "FILE_IMPORT", + "HIDE_PAGES", + "HISTORIC_RATES", + "INVOICING", + "INVOICE_EMAILS", + "LABOR_COST", + "LOCATIONS", + "MANAGER_ROLE", + "MULTI_FACTOR_AUTHENTICATION", + "PROJECT_BUDGET", + "PROJECT_TEMPLATES", + "QUICKBOOKS_INTEGRATION", + "RECURRING_ESTIMATES", + "REQUIRED_FIELDS", + "SCHEDULED_REPORTS", + "SCHEDULING", + "SCREENSHOTS", + "SSO", + "SUMMARY_ESTIMATE", + "TARGETS_AND_REMINDERS", + "TASK_RATES", + "TIME_OFF", + "UNLIMITED_REPORTS", + "USER_CUSTOM_FIELDS", + "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY", + "BREAKS", + "KIOSK_SESSION_DURATION", + "KIOSK_PIN_REQUIRED", + "WHO_CAN_SEE_ALL_TIME_ENTRIES", + "WHO_CAN_SEE_PROJECT_STATUS", + "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES", + "WHO_CAN_SEE_TEAMS_DASHBOARD", + "WORKSPACE_LOCK_TIMEENTRIES", + "WORKSPACE_TIME_AUDIT", + "WORKSPACE_TIME_ROUNDING", + "KIOSK", + "FORECASTING", + "TIME_TRACKING", + "ATTENDANCE_REPORT", + "WORKSPACE_TRANSFER", + "FAVORITE_ENTRIES", + "SPLIT_TIME_ENTRY", + "CLIENT_CURRENCY", + "SCHEDULING_FORECASTING" + ] + } + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "onSubdomain": { + "type": "boolean", + "deprecated": true + }, + "subdomain": { + "$ref": "#/components/schemas/WorkspaceSubdomainDto" + }, + "workspaceSettings": { + "$ref": "#/components/schemas/WorkspaceSettingsDto" + } + } + }, + "WorkspaceDtoV1": { + "type": "object", + "properties": { + "costRate": { + "$ref": "#/components/schemas/RateDtoV1" + }, + "currencies": { + "type": "array", + "description": "Represents currency with default info object.", + "items": { + "$ref": "#/components/schemas/CurrencyWithDefaultInfoDtoV1" + } + }, + "featureSubscriptionType": { + "$ref": "#/components/schemas/FeatureSubscriptionType" + }, + "features": { + "$ref": "#/components/schemas/Feature" + }, + "hourlyRate": { + "$ref": "#/components/schemas/HourlyRateDtoV1" + }, + "id": { + "type": "string", + "description": "Represents workspace identifier across the system.", + "example": "64a687e29ae1f428e7ebe303" + }, + "imageUrl": { + "type": "string", + "description": "Represents an image url.", + "example": "https://www.url.com/imageurl-1234567890.jpg" + }, + "memberships": { + "type": "array", + "description": "Represents a list of membership objects.", + "items": { + "$ref": "#/components/schemas/MembershipDtoV1" + } + }, + "name": { + "type": "string", + "description": "Represents workspace name.", + "example": "Cool Company" + }, + "subdomain": { + "$ref": "#/components/schemas/WorkspaceSubdomainDtoV1" + }, + "workspaceSettings": { + "$ref": "#/components/schemas/WorkspaceSettingsDtoV1" + } + } + }, + "WorkspaceOverviewDto": { + "type": "object", + "properties": { + "accessEnabled": { + "type": "boolean" + }, + "cakeOrganizationId": { + "type": "string" + }, + "cakeOrganizationName": { + "type": "string" + }, + "costRate": { + "$ref": "#/components/schemas/RateDto" + }, + "currency": { + "$ref": "#/components/schemas/CurrencyDto" + }, + "featureSubscriptionType": { + "type": "string", + "enum": [ + "PREMIUM", + "PREMIUM_YEAR", + "SPECIAL", + "SPECIAL_YEAR", + "TRIAL", + "ENTERPRISE", + "ENTERPRISE_YEAR", + "BASIC_2021", + "BASIC_YEAR_2021", + "STANDARD_2021", + "STANDARD_YEAR_2021", + "PRO_2021", + "PRO_YEAR_2021", + "ENTERPRISE_2021", + "ENTERPRISE_YEAR_2021", + "BUNDLE_2024", + "BUNDLE_YEAR_2024", + "SELF_HOSTED", + "FREE" + ] + }, + "features": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ADD_TIME_FOR_OTHERS", + "ADMIN_PANEL", + "ALERTS", + "APPROVAL", + "AUDIT_LOG", + "AUTOMATIC_LOCK", + "BRANDED_REPORTS", + "BULK_EDIT", + "CUSTOM_FIELDS", + "CUSTOM_REPORTING", + "CUSTOM_SUBDOMAIN", + "DECIMAL_FORMAT", + "DISABLE_MANUAL_MODE", + "EDIT_MEMBER_PROFILE", + "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE", + "EXPENSES", + "FILE_IMPORT", + "HIDE_PAGES", + "HISTORIC_RATES", + "INVOICING", + "INVOICE_EMAILS", + "LABOR_COST", + "LOCATIONS", + "MANAGER_ROLE", + "MULTI_FACTOR_AUTHENTICATION", + "PROJECT_BUDGET", + "PROJECT_TEMPLATES", + "QUICKBOOKS_INTEGRATION", + "RECURRING_ESTIMATES", + "REQUIRED_FIELDS", + "SCHEDULED_REPORTS", + "SCHEDULING", + "SCREENSHOTS", + "SSO", + "SUMMARY_ESTIMATE", + "TARGETS_AND_REMINDERS", + "TASK_RATES", + "TIME_OFF", + "UNLIMITED_REPORTS", + "USER_CUSTOM_FIELDS", + "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY", + "BREAKS", + "KIOSK_SESSION_DURATION", + "KIOSK_PIN_REQUIRED", + "WHO_CAN_SEE_ALL_TIME_ENTRIES", + "WHO_CAN_SEE_PROJECT_STATUS", + "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES", + "WHO_CAN_SEE_TEAMS_DASHBOARD", + "WORKSPACE_LOCK_TIMEENTRIES", + "WORKSPACE_TIME_AUDIT", + "WORKSPACE_TIME_ROUNDING", + "KIOSK", + "FORECASTING", + "TIME_TRACKING", + "ATTENDANCE_REPORT", + "WORKSPACE_TRANSFER", + "FAVORITE_ENTRIES", + "SPLIT_TIME_ENTRY", + "CLIENT_CURRENCY", + "SCHEDULING_FORECASTING" + ] + } + }, + "hourlyRate": { + "$ref": "#/components/schemas/RateDto" + }, + "id": { + "type": "string" + }, + "imageUrl": { + "type": "string" + }, + "memberships": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MembershipDto" + } + }, + "name": { + "type": "string" + }, + "onSubdomain": { + "type": "boolean", + "deprecated": true + }, + "reason": { + "type": "string" + }, + "subdomain": { + "$ref": "#/components/schemas/WorkspaceSubdomainDto" + }, + "workspaceSettings": { + "$ref": "#/components/schemas/WorkspaceSettingsDto" + } + } + }, + "WorkspaceSettingsDto": { + "type": "object", + "properties": { + "activeBillableHours": { + "type": "boolean" + }, + "adminOnlyPages": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "PROJECT", + "TEAM", + "REPORTS" + ] + } + }, + "approvalSettings": { + "$ref": "#/components/schemas/ApprovalSettings" + }, + "auditLogSettings": { + "$ref": "#/components/schemas/AuditLogSettingsDto" + }, + "automaticLock": { + "$ref": "#/components/schemas/AutomaticLockDto" + }, + "breakSettings": { + "$ref": "#/components/schemas/BreakSettingsDto" + }, + "canManagerEditUsersTime": { + "type": "boolean" + }, + "canManagerLaunchKiosk": { + "type": "boolean" + }, + "canSeeTimeSheet": { + "type": "boolean" + }, + "canSeeTracker": { + "type": "boolean" + }, + "companyAddress": { + "type": "string" + }, + "currencyFormat": { + "type": "string", + "enum": [ + "CURRENCY_SPACE_VALUE", + "VALUE_SPACE_CURRENCY", + "CURRENCY_VALUE", + "VALUE_CURRENCY" + ] + }, + "customLabels": { + "$ref": "#/components/schemas/CustomLabelsDto" + }, + "decimalFormat": { + "type": "boolean", + "deprecated": true + }, + "defaultBillableProjects": { + "type": "boolean" + }, + "durationFormat": { + "type": "string", + "enum": [ + "FULL", + "COMPACT", + "DECIMAL" + ] + }, + "entityCreationPermissions": { + "$ref": "#/components/schemas/EntityCreationPermissionsDto" + }, + "expensesEnabled": { + "type": "boolean" + }, + "favoriteEntriesEnabled": { + "type": "boolean" + }, + "forceDescription": { + "type": "boolean" + }, + "forceProjects": { + "type": "boolean" + }, + "forceTags": { + "type": "boolean" + }, + "forceTasks": { + "type": "boolean" + }, + "highResolutionScreenshots": { + "type": "boolean" + }, + "invoicingEnabled": { + "type": "boolean" + }, + "isCostRateActive": { + "type": "boolean" + }, + "isProjectPublicByDefault": { + "type": "boolean" + }, + "kioskAutologinEnabled": { + "type": "boolean" + }, + "kioskEnabled": { + "type": "boolean" + }, + "kioskProjectsAndTasksEnabled": { + "type": "boolean" + }, + "locationsEnabled": { + "type": "boolean" + }, + "lockTimeEntries": { + "type": "string" + }, + "lockTimeZone": { + "type": "string" + }, + "multiFactorEnabled": { + "type": "boolean" + }, + "numberFormat": { + "type": "string", + "enum": [ + "COMMA_PERIOD", + "PERIOD_COMMA", + "QUOTATION_MARK_PERIOD", + "SPACE_COMMA" + ] + }, + "onlyAdminsCanChangeBillableStatus": { + "type": "boolean" + }, + "onlyAdminsCreateProject": { + "type": "boolean" + }, + "onlyAdminsCreateTag": { + "type": "boolean" + }, + "onlyAdminsCreateTask": { + "type": "boolean" + }, + "onlyAdminsSeeAllTimeEntries": { + "type": "boolean" + }, + "onlyAdminsSeeBillableRates": { + "type": "boolean" + }, + "onlyAdminsSeeDashboard": { + "type": "boolean" + }, + "onlyAdminsSeeProjectStatus": { + "type": "boolean" + }, + "onlyAdminsSeePublicProjectsEntries": { + "type": "boolean" + }, + "projectFavorites": { + "type": "boolean" + }, + "projectGroupingLabel": { + "type": "string" + }, + "projectLabel": { + "type": "string" + }, + "projectPickerSpecialFilter": { + "type": "boolean" + }, + "pumbleIntegrationSettings": { + "$ref": "#/components/schemas/PumbleIntegrationSettingsDto" + }, + "round": { + "$ref": "#/components/schemas/RoundDto" + }, + "schedulingEnabled": { + "type": "boolean" + }, + "schedulingSettings": { + "$ref": "#/components/schemas/SchedulingSettingsDto" + }, + "screenshotsEnabled": { + "type": "boolean" + }, + "taskBillableEnabled": { + "type": "boolean" + }, + "taskLabel": { + "type": "string" + }, + "taskRateEnabled": { + "type": "boolean" + }, + "timeApprovalEnabled": { + "type": "boolean", + "deprecated": true + }, + "timeOff": { + "$ref": "#/components/schemas/TimeOffDto" + }, + "timeRoundingInReports": { + "type": "boolean" + }, + "timeTrackingMode": { + "type": "string", + "enum": [ + "DEFAULT", + "STOPWATCH_ONLY" + ] + }, + "trackTimeDownToSecond": { + "type": "boolean", + "deprecated": true + }, + "weekStart": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + }, + "workingDays": { + "uniqueItems": true, + "type": "array", + "items": { + "type": "string", + "enum": [ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ] + } + } + } + }, + "WorkspaceSettingsDtoV1": { + "type": "object", + "properties": { + "adminOnlyPages": { + "type": "string", + "description": "Represents a unique list of protected page enums.", + "example": "[\"PROJECT\",\"TEAM\",\"REPORTS\"]", + "enum": [ + "PROJECT", + "TEAM", + "REPORTS" + ] + }, + "automaticLock": { + "$ref": "#/components/schemas/AutomaticLockDtoV1" + }, + "canSeeTimeSheet": { + "type": "boolean", + "description": "Indicates whether timesheets are visible or not." + }, + "canSeeTracker": { + "type": "boolean", + "description": "Indicates whether time trackers are visible or not." + }, + "currencyFormat": { + "type": "string", + "description": "Represents a clockify currency format enum.", + "example": "CURRENCY_SPACE_VALUE", + "enum": [ + "CURRENCY_SPACE_VALUE", + "VALUE_SPACE_CURRENCY", + "CURRENCY_VALUE", + "VALUE_CURRENCY" + ] + }, + "defaultBillableProjects": { + "type": "boolean", + "description": "Indicates whether projects are billable by default." + }, + "durationFormat": { + "type": "string", + "description": "Represents a clockify duration format enum. Used to set Duration format instead of setting decimalFormat and trackTimeDownToSecond.", + "example": "FULL", + "enum": [ + "FULL", + "COMPACT", + "DECIMAL" + ] + }, + "forceDescription": { + "type": "boolean", + "description": "Indicates whether description are forced or not." + }, + "forceProjects": { + "type": "boolean", + "description": "Indicates whether projects are forced or not." + }, + "forceTags": { + "type": "boolean", + "description": "Indicates whether tags are forced or not." + }, + "forceTasks": { + "type": "boolean", + "description": "Indicates whether tasks are forced or not." + }, + "isProjectPublicByDefault": { + "type": "boolean" + }, + "lockTimeEntries": { + "type": "string", + "example": "2024-02-25T23:00:00Z" + }, + "lockTimeZone": { + "type": "string", + "example": "Europe/Belgrade" + }, + "multiFactorEnabled": { + "type": "boolean", + "description": "Indicates whether two-factor authentication is enabled or not." + }, + "numberFormat": { + "type": "string", + "description": "Represents a clockify number format enum.", + "example": "COMMA_PERIOD", + "enum": [ + "COMMA_PERIOD", + "PERIOD_COMMA", + "QUOTATION_MARK_PERIOD", + "SPACE_COMMA" + ] + }, + "onlyAdminsCreateProject": { + "type": "boolean", + "description": "Indicates whether only admins can create projects." + }, + "onlyAdminsCreateTag": { + "type": "boolean", + "description": "Indicates whether only admins can create tags." + }, + "onlyAdminsCreateTask": { + "type": "boolean", + "description": "Indicates whether only admins can create task." + }, + "onlyAdminsSeeAllTimeEntries": { + "type": "boolean", + "description": "Indicates whether only admins can see all time entries." + }, + "onlyAdminsSeeBillableRates": { + "type": "boolean", + "description": "Indicates whether only admins can see billable rates." + }, + "onlyAdminsSeeDashboard": { + "type": "boolean", + "description": "Indicates whether only admins can see dashboard." + }, + "onlyAdminsSeePublicProjectsEntries": { + "type": "boolean", + "description": "Indicates whether only admins can see public project entries." + }, + "projectFavorites": { + "type": "boolean", + "description": "Indicates whether project favorites are allowed." + }, + "projectGroupingLabel": { + "type": "string", + "description": "Represents a project grouping label.", + "example": "Project Label" + }, + "projectPickerSpecialFilter": { + "type": "boolean", + "description": "Indicates whether project picker special filter is enabled." + }, + "round": { + "$ref": "#/components/schemas/RoundDto" + }, + "timeRoundingInReports": { + "type": "boolean", + "description": "Indicates whether time rounding is enabled in reports." + }, + "timeTrackingMode": { + "type": "string", + "description": "Represents a time tracking mode enum.", + "example": "DEFAULT", + "enum": [ + "DEFAULT", + "STOPWATCH_ONLY" + ] + }, + "trackTimeDownToSecond": { + "type": "boolean", + "description": "Indicates whether time tracking is seconds-accurate. This is now deprecated and durationFormat can now be used to manage Time Duration Format.", + "deprecated": true + } + }, + "description": "Workspace settings also include Time Duration Format settings.\n\nSetting Time Duration Format by changing the boolean fields\ndecimalFormat and trackTimeDownToSecond is now deprecated.\n\nTime Duration Format can be set by durationFormat enum field.\n\nThree different Time Duration modes will still map the boolean fields:\n\n 1. Full (hh:mm:ss) -> decimalFormat = false, trackTimeDownToSecond = true,\n\n 2. Compact (h:mm) -> decimalFormat = false, trackTimeDownToSecond = false,\n\n 3. Decimal (h:hh) -> decimalFormat = true, trackTimeDownToSecond = true\n\n" + }, + "WorkspaceSubdomainDto": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + }, + "name": { + "type": "string" + } + } + }, + "WorkspaceSubdomainDtoV1": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "description": "Indicates whether subdomain is enabled on workspace" + }, + "name": { + "type": "string", + "description": "Represents subdomain name", + "example": "coolcompany" + } + }, + "description": "Represents the workspace subdomain" + }, + "WorkspaceSubscriptionInfoDto": { + "type": "object", + "properties": { + "accessDisabled": { + "type": "boolean" + }, + "currentSubscriptionPlan": { + "type": "string" + }, + "customerIds": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "name": { + "type": "string" + }, + "numberOfActiveLimitedUsers": { + "type": "integer", + "format": "int32" + }, + "numberOfActiveUsers": { + "type": "integer", + "format": "int32" + }, + "numberOfInactiveUsers": { + "type": "integer", + "format": "int32" + }, + "numberOfPendingUsers": { + "type": "integer", + "format": "int32" + }, + "ownerEmail": { + "type": "string" + }, + "stripeCustomerId": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "WorkspaceSurveyDataDto": { + "type": "object", + "properties": { + "showSurvey": { + "type": "boolean" + }, + "surveyQuestions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SurveyQuestionDto" + } + }, + "surveyResponse": { + "$ref": "#/components/schemas/SurveyResponseDto" + } + } + }, + "WorkspaceTransferAccessDisabledDto": { + "type": "object", + "properties": { + "domainUrl": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "WorkspaceTransferDeprecatedRequest": { + "required": [ + "targetRegion" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "passwordConfirm": { + "type": "string" + }, + "targetRegion": { + "type": "string" + } + } + }, + "WorkspaceTransferDto": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "sourceRegion": { + "type": "string" + }, + "startTime": { + "type": "string" + }, + "status": { + "type": "string" + }, + "targetRegion": { + "type": "string" + }, + "targetRegionDomainUrl": { + "type": "string" + }, + "targetRegionUrl": { + "type": "string" + }, + "transferMessage": { + "type": "string" + }, + "workspaceId": { + "type": "string" + } + } + }, + "WorkspaceTransferFailedRequest": { + "type": "object", + "properties": { + "error": { + "type": "string" + }, + "processingError": { + "type": "string" + }, + "sourceRegion": { + "type": "string" + }, + "sourceRegionUrl": { + "type": "string" + }, + "targetRegion": { + "type": "string" + }, + "targetRegionUrl": { + "type": "string" + }, + "transferAppId": { + "type": "string" + } + } + }, + "WorkspaceTransferFinishedRequest": { + "type": "object", + "properties": { + "sendErrorEmail": { + "type": "boolean" + }, + "sourceRegion": { + "type": "string" + }, + "sourceRegionUrl": { + "type": "string" + }, + "targetRegion": { + "type": "string" + }, + "targetRegionApiUrl": { + "type": "string" + }, + "targetRegionDomainUrl": { + "type": "string" + }, + "targetRegionUrl": { + "type": "string" + }, + "transferAppId": { + "type": "string" + }, + "transferSeatDetailsDto": { + "$ref": "#/components/schemas/TransferSeatDetailsDto" + } + } + }, + "WorkspaceTransferPossibleDto": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "enum": [ + "DEFAULT", + "WORKSPACE_LOCKED", + "NO_ACTIVE_SUBSCRIPTION", + "BUNDLE_SUBSCRIPTION", + "ACCOUNT_ON_DESTINATION", + "CUSTOM_PRICE", + "UNPAID_INVOICES", + "CAKE_MIGRATION" + ] + }, + "transferPossible": { + "type": "boolean" + } + } + }, + "WorkspaceTransferRequest": { + "required": [ + "targetRegion" + ], + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "targetRegion": { + "type": "string" + } + } + }, + "WorkspaceUserMembershipDto": { + "type": "object", + "properties": { + "cakeOrganizationId": { + "type": "string" + }, + "cakeOrganizationName": { + "type": "string" + }, + "userStatus": { + "type": "string" + }, + "workspaceDetail": { + "$ref": "#/components/schemas/WorkspaceDetailDto" + } + } + } + }, + "securitySchemes": { + "AddonKeyAuth": { + "in": "header", + "name": "x-addon-token", + "type": "apiKey" + }, + "ApiKeyAuth": { + "in": "header", + "name": "x-api-key", + "type": "apiKey" + }, + "MarketplaceKeyAuth": { + "in": "header", + "name": "x-marketplace-token", + "type": "apiKey" + } + } + } +} diff --git a/tools/tools.go b/tools/tools.go new file mode 100644 index 0000000..8615cb4 --- /dev/null +++ b/tools/tools.go @@ -0,0 +1,8 @@ +//go:build tools +// +build tools + +package tools + +import ( + _ "github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen" +)