You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* YOYO NEW API SPEC!
* I have generated the latest API!
---------
Co-authored-by: zoo-github-actions-auth[bot] <zoo-github-actions-auth[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: kittycad.go.patch.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -689,7 +689,7 @@
689
689
},
690
690
{
691
691
"value": {
692
-
"example": "// UpdateBalanceForAnyOrg: Update balance for an org.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \t- `includeTotalDue`\n// \t- `body`: The data for updating a balance.\n// \n// UpdateBalanceForAnyOrg: Update balance for an org.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\n// - `includeTotalDue`\n// - `body`: The data for updating a balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyOrg() {\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.UpdateBalanceForAnyOrg(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"), true, kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
692
+
"example": "// UpdateBalanceForAnyOrg: Update balance for an org.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n// \n// \n// Parameters\n// \n// \t- `id`: A UUID usually v4 or v7\n// \t- `includeTotalDue`\n// \t- `body`: Payload for updating a user's balance.\n// \n// UpdateBalanceForAnyOrg: Update balance for an org.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified org.\n//\n// Parameters\n//\n// - `id`: A UUID usually v4 or v7\n// - `includeTotalDue`\n// - `body`: Payload for updating a user's balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyOrg() {\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.UpdateBalanceForAnyOrg(kittycad.ParseUUID(\"6ba7b810-9dad-11d1-80b4-00c04fd430c8\"), true, kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
"example": "// UpdateBalanceForAnyUser: Update balance for an user.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n// \n// \n// Parameters\n// \n// \t- `id`\n// \t- `includeTotalDue`\n// \t- `body`: The data for updating a balance.\n// \n// UpdateBalanceForAnyUser: Update balance for an user.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n//\n// Parameters\n//\n// - `id`\n// - `includeTotalDue`\n// - `body`: The data for updating a balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyUser() {\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.UpdateBalanceForAnyUser(\"some-string\", true, kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
1188
+
"example": "// UpdateBalanceForAnyUser: Update balance for an user.\n// \n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n// \n// \n// Parameters\n// \n// \t- `id`\n// \t- `includeTotalDue`\n// \t- `body`: Payload for updating a user's balance.\n// \n// UpdateBalanceForAnyUser: Update balance for an user.\n// This endpoint requires authentication by a Zoo employee. It updates the balance information for the specified user.\n//\n// Parameters\n//\n// - `id`\n// - `includeTotalDue`\n// - `body`: Payload for updating a user's balance.\nfunc ExamplePaymentService_UpdateBalanceForAnyUser() {\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.UpdateBalanceForAnyUser(\"some-string\", true, kittycad.UpdatePaymentBalance{MonthlyAPICreditsRemainingMonetaryValue: 123.45, StableAPICreditsRemainingMonetaryValue: 123.45})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Printf(\"%#v\", result)\n\n}\n",
Copy file name to clipboardExpand all lines: spec.json
+5-23Lines changed: 5 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -24791,22 +24791,6 @@
24791
24791
"type": "string",
24792
24792
"format": "date-time"
24793
24793
},
24794
-
"id": {
24795
-
"description": "The unique identifier for the balance.",
24796
-
"allOf": [
24797
-
{
24798
-
"$ref": "#/components/schemas/Uuid"
24799
-
}
24800
-
]
24801
-
},
24802
-
"map_id": {
24803
-
"description": "The mapping id of the user or org.",
24804
-
"allOf": [
24805
-
{
24806
-
"$ref": "#/components/schemas/Uuid"
24807
-
}
24808
-
]
24809
-
},
24810
24794
"modeling_app_enterprise_price": {
24811
24795
"nullable": true,
24812
24796
"description": "The enterprise price for the Modeling App subscription, if they are on the enterprise plan.",
@@ -24817,26 +24801,26 @@
24817
24801
]
24818
24802
},
24819
24803
"monthly_api_credits_remaining": {
24820
-
"description": "The number of monthly API credits remaining in the balance. This is the number of credits remaining in the balance.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
24804
+
"description": "The number of monthly API credits remaining in the balance.",
24821
24805
"type": "integer",
24822
24806
"format": "uint64",
24823
24807
"minimum": 0
24824
24808
},
24825
24809
"monthly_api_credits_remaining_monetary_value": {
24826
24810
"title": "double",
24827
-
"description": "The monetary value of the monthly API credits remaining in the balance. This gets re-upped every month, but if the credits are not used for a month they do not carry over to the next month.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
24811
+
"description": "The monetary value of the monthly API credits remaining in the balance.",
24828
24812
"type": "number",
24829
24813
"format": "money-usd"
24830
24814
},
24831
24815
"stable_api_credits_remaining": {
24832
-
"description": "The number of stable API credits remaining in the balance. These do not get reset or re-upped every month. This is separate from the monthly credits. Credits will first pull from the monthly credits, then the stable credits. Stable just means that they do not get reset every month. A user will have stable credits if a Zoo employee granted them credits.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
24816
+
"description": "The number of stable API credits remaining in the balance.",
24833
24817
"type": "integer",
24834
24818
"format": "uint64",
24835
24819
"minimum": 0
24836
24820
},
24837
24821
"stable_api_credits_remaining_monetary_value": {
24838
24822
"title": "double",
24839
-
"description": "The monetary value of stable API credits remaining in the balance. These do not get reset or re-upped every month. This is separate from the monthly credits. Credits will first pull from the monthly credits, then the stable credits. Stable just means that they do not get reset every month. A user will have stable credits if a Zoo employee granted them credits.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
24823
+
"description": "The monetary value of stable API credits remaining in the balance.",
24840
24824
"type": "number",
24841
24825
"format": "money-usd"
24842
24826
},
@@ -24870,8 +24854,6 @@
24870
24854
},
24871
24855
"required": [
24872
24856
"created_at",
24873
-
"id",
24874
-
"map_id",
24875
24857
"monthly_api_credits_remaining",
24876
24858
"monthly_api_credits_remaining_monetary_value",
24877
24859
"stable_api_credits_remaining",
@@ -42968,7 +42950,7 @@
42968
42950
]
42969
42951
},
42970
42952
"UpdatePaymentBalance": {
42971
-
"description": "The data for updating a balance.",
42953
+
"description": "Payload for updating a user's balance.",
0 commit comments