Skip to content

Commit 3fea866

Browse files
Update api spec (#165)
1 parent dfabc9c commit 3fea866

File tree

5 files changed

+91
-4
lines changed

5 files changed

+91
-4
lines changed

examples_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kittycad.go.patch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
},
618618
{
619619
"value": {
620-
"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",
620+
"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",
621621
"libDocsLink": "https://pkg.go.dev/github.com/kittycad/kittycad.go/#OrgService.UpdateEnterprisePricingFor"
622622
},
623623
"op": "add",

paths.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec.json

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8227,7 +8227,7 @@
82278227
"content": {
82288228
"application/json": {
82298229
"schema": {
8230-
"$ref": "#/components/schemas/SubscriptionTierPrice"
8230+
"$ref": "#/components/schemas/EnterpriseSubscriptionTierPrice"
82318231
}
82328232
}
82338233
},
@@ -17999,6 +17999,73 @@
1799917999
"pos"
1800018000
]
1800118001
},
18002+
"EnterpriseSubscriptionTierPrice": {
18003+
"description": "The price for an enterprise subscription.",
18004+
"oneOf": [
18005+
{
18006+
"description": "A flat price that we publicly list.",
18007+
"type": "object",
18008+
"properties": {
18009+
"interval": {
18010+
"description": "The interval the price is charged.",
18011+
"allOf": [
18012+
{
18013+
"$ref": "#/components/schemas/PlanInterval"
18014+
}
18015+
]
18016+
},
18017+
"price": {
18018+
"title": "double",
18019+
"description": "The price.",
18020+
"type": "number",
18021+
"format": "money-usd"
18022+
},
18023+
"type": {
18024+
"type": "string",
18025+
"enum": [
18026+
"flat"
18027+
]
18028+
}
18029+
},
18030+
"required": [
18031+
"interval",
18032+
"price",
18033+
"type"
18034+
]
18035+
},
18036+
{
18037+
"description": "A per user price that we publicly list.",
18038+
"type": "object",
18039+
"properties": {
18040+
"interval": {
18041+
"description": "The interval the price is charged.",
18042+
"allOf": [
18043+
{
18044+
"$ref": "#/components/schemas/PlanInterval"
18045+
}
18046+
]
18047+
},
18048+
"price": {
18049+
"title": "double",
18050+
"description": "The price.",
18051+
"type": "number",
18052+
"format": "money-usd"
18053+
},
18054+
"type": {
18055+
"type": "string",
18056+
"enum": [
18057+
"per_user"
18058+
]
18059+
}
18060+
},
18061+
"required": [
18062+
"interval",
18063+
"price",
18064+
"type"
18065+
]
18066+
}
18067+
]
18068+
},
1800218069
"EntityCircularPattern": {
1800318070
"description": "The response from the `EntityCircularPattern` command.",
1800418071
"type": "object",

types.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)