diff --git a/examples_test.go b/examples_test.go index a13a65d..98ec909 100644 --- a/examples_test.go +++ b/examples_test.go @@ -1421,7 +1421,7 @@ func ExamplePaymentService_DeleteInformationForOrg() { } // GetBalanceForOrg: Get balance for your org. -// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org. +// This endpoint requires authentication by any member of an org. It gets the balance information for the authenticated user's org. // // Parameters // @@ -1511,7 +1511,7 @@ func ExamplePaymentService_DeleteMethodForOrg() { } // GetOrgSubscription: Get the subscription for an org. -// This endpoint requires authentication by an org admin. It gets the subscription for the authenticated user's org. +// This endpoint requires authentication by any member of an org. It gets the subscription for the authenticated user's org. func ExamplePaymentService_GetOrgSubscription() { client, err := kittycad.NewClientFromEnv("your apps user agent") if err != nil { diff --git a/kittycad.go.patch.json b/kittycad.go.patch.json index 14653fe..cbbae40 100644 --- a/kittycad.go.patch.json +++ b/kittycad.go.patch.json @@ -489,7 +489,7 @@ }, { "value": { - "example": "// GetBalanceForOrg: Get balance for your org.\n// \n// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.\n// \n// \n// Parameters\n// \n// \t- `includeTotalDue`\n// \n// GetBalanceForOrg: Get balance for your org.\n// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.\n//\n// Parameters\n//\n// - `includeTotalDue`\nfunc ExamplePaymentService_GetBalanceForOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForOrg(true)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", + "example": "// GetBalanceForOrg: Get balance for your org.\n// \n// This endpoint requires authentication by any member of an org. It gets the balance information for the authenticated user's org.\n// \n// \n// Parameters\n// \n// \t- `includeTotalDue`\n// \n// GetBalanceForOrg: Get balance for your org.\n// This endpoint requires authentication by any member of an org. It gets the balance information for the authenticated user's org.\n//\n// Parameters\n//\n// - `includeTotalDue`\nfunc ExamplePaymentService_GetBalanceForOrg() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetBalanceForOrg(true)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.GetBalanceForOrg" }, "op": "add", @@ -529,7 +529,7 @@ }, { "value": { - "example": "// GetOrgSubscription: Get the subscription for an org.\n// \n// This endpoint requires authentication by an org admin. It gets the subscription for the authenticated user's org.\n// \n// GetOrgSubscription: Get the subscription for an org.\n// This endpoint requires authentication by an org admin. It gets the subscription for the authenticated user's org.\nfunc ExamplePaymentService_GetOrgSubscription() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetOrgSubscription()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", + "example": "// GetOrgSubscription: Get the subscription for an org.\n// \n// This endpoint requires authentication by any member of an org. It gets the subscription for the authenticated user's org.\n// \n// GetOrgSubscription: Get the subscription for an org.\n// This endpoint requires authentication by any member of an org. It gets the subscription for the authenticated user's org.\nfunc ExamplePaymentService_GetOrgSubscription() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Payment.GetOrgSubscription()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n", "libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#PaymentService.GetOrgSubscription" }, "op": "add", diff --git a/paths.go b/paths.go index d6c5493..8121a25 100644 --- a/paths.go +++ b/paths.go @@ -3061,7 +3061,7 @@ func (s *PaymentService) DeleteInformationForOrg() error { } // GetBalanceForOrg: Get balance for your org. -// This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org. +// This endpoint requires authentication by any member of an org. It gets the balance information for the authenticated user's org. // // Parameters // @@ -3269,7 +3269,7 @@ func (s *PaymentService) DeleteMethodForOrg(id string) error { } // GetOrgSubscription: Get the subscription for an org. -// This endpoint requires authentication by an org admin. It gets the subscription for the authenticated user's org. +// This endpoint requires authentication by any member of an org. It gets the subscription for the authenticated user's org. func (s *PaymentService) GetOrgSubscription() (*ZooProductSubscriptions, error) { // Create the url. path := "/org/payment/subscriptions" diff --git a/spec.json b/spec.json index 5056164..dc9faf5 100644 --- a/spec.json +++ b/spec.json @@ -8888,7 +8888,7 @@ "payments" ], "summary": "Get balance for your org.", - "description": "This endpoint requires authentication by an org admin. It gets the balance information for the authenticated user's org.", + "description": "This endpoint requires authentication by any member of an org. It gets the balance information for the authenticated user's org.", "operationId": "get_payment_balance_for_org", "parameters": [ { @@ -9563,7 +9563,7 @@ "payments" ], "summary": "Get the subscription for an org.", - "description": "This endpoint requires authentication by an org admin. It gets the subscription for the authenticated user's org.", + "description": "This endpoint requires authentication by any member of an org. It gets the subscription for the authenticated user's org.", "operationId": "get_org_subscription", "responses": { "200": {