Skip to content

Commit

Permalink
Update api spec (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoo-github-actions-auth[bot] authored Oct 24, 2024
1 parent dfabc9c commit 3fea866
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion kittycad.go.patch.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
},
{
"value": {
"example": "// UpdateEnterprisePricingFor: Set the enterprise price for an organization.\n// \n// You must be a Zoo employee to perform this request.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \t- `body`: The price for a subscription tier.\n// \n// UpdateEnterprisePricingFor: Set the enterprise price for an organization.\n// You must be a Zoo employee to perform this request.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\n// - `body`: The price for a subscription tier.\nfunc ExampleOrgService_UpdateEnterprisePricingFor() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Org.UpdateEnterprisePricingFor(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"), \"\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
"example": "// UpdateEnterprisePricingFor: Set the enterprise price for an organization.\n// \n// You must be a Zoo employee to perform this request.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \t- `body`: The price for an enterprise subscription.\n// \n// UpdateEnterprisePricingFor: Set the enterprise price for an organization.\n// You must be a Zoo employee to perform this request.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\n// - `body`: The price for an enterprise subscription.\nfunc ExampleOrgService_UpdateEnterprisePricingFor() {\n\tclient, err := kittycad.NewClientFromEnv(\"your apps user agent\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresult, err := client.Org.UpdateEnterprisePricingFor(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"), \"\")\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/#OrgService.UpdateEnterprisePricingFor"
},
"op": "add",
Expand Down
2 changes: 1 addition & 1 deletion paths.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 68 additions & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8227,7 +8227,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubscriptionTierPrice"
"$ref": "#/components/schemas/EnterpriseSubscriptionTierPrice"
}
}
},
Expand Down Expand Up @@ -17999,6 +17999,73 @@
"pos"
]
},
"EnterpriseSubscriptionTierPrice": {
"description": "The price for an enterprise subscription.",
"oneOf": [
{
"description": "A flat price that we publicly list.",
"type": "object",
"properties": {
"interval": {
"description": "The interval the price is charged.",
"allOf": [
{
"$ref": "#/components/schemas/PlanInterval"
}
]
},
"price": {
"title": "double",
"description": "The price.",
"type": "number",
"format": "money-usd"
},
"type": {
"type": "string",
"enum": [
"flat"
]
}
},
"required": [
"interval",
"price",
"type"
]
},
{
"description": "A per user price that we publicly list.",
"type": "object",
"properties": {
"interval": {
"description": "The interval the price is charged.",
"allOf": [
{
"$ref": "#/components/schemas/PlanInterval"
}
]
},
"price": {
"title": "double",
"description": "The price.",
"type": "number",
"format": "money-usd"
},
"type": {
"type": "string",
"enum": [
"per_user"
]
}
},
"required": [
"interval",
"price",
"type"
]
}
]
},
"EntityCircularPattern": {
"description": "The response from the `EntityCircularPattern` command.",
"type": "object",
Expand Down
20 changes: 20 additions & 0 deletions types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fea866

Please sign in to comment.