Skip to content

Commit

Permalink
Update api spec (#303)
Browse files Browse the repository at this point in the history
* YOYO NEW API SPEC!

* I have generated the latest API!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 69118b9 commit 8d9bc7a
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 402 deletions.
804 changes: 402 additions & 402 deletions kittycad.py.patch.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions kittycad/models/modeling_app_subscription_tier.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class ModelingAppSubscriptionTier(BaseModel):
"""A subscription tier we offer for the Modeling App."""

annual_discount: Optional[int] = None

description: str

features: Optional[List[SubscriptionTierFeature]] = None
Expand Down
2 changes: 2 additions & 0 deletions kittycad/models/zoo_product_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class ZooProductSubscription(BaseModel):
"""A subscription to the modeling app."""

annual_discount: Optional[int] = None

description: str

features: Optional[List[SubscriptionTierFeature]] = None
Expand Down
4 changes: 4 additions & 0 deletions kittycad/models/zoo_product_subscriptions_org_request.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

from pydantic import BaseModel, ConfigDict

from ..models.modeling_app_organization_subscription_tier import (
Expand All @@ -10,4 +12,6 @@ class ZooProductSubscriptionsOrgRequest(BaseModel):

modeling_app: ModelingAppOrganizationSubscriptionTier = "team" # type: ignore

pay_annually: Optional[bool] = None

model_config = ConfigDict(protected_namespaces=())
4 changes: 4 additions & 0 deletions kittycad/models/zoo_product_subscriptions_user_request.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import Optional

from pydantic import BaseModel, ConfigDict

from ..models.modeling_app_individual_subscription_tier import (
Expand All @@ -10,4 +12,6 @@ class ZooProductSubscriptionsUserRequest(BaseModel):

modeling_app: ModelingAppIndividualSubscriptionTier = "free" # type: ignore

pay_annually: Optional[bool] = None

model_config = ConfigDict(protected_namespaces=())
24 changes: 24 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21161,6 +21161,13 @@
"description": "A subscription tier we offer for the Modeling App.",
"type": "object",
"properties": {
"annual_discount": {
"nullable": true,
"description": "Annual discount. The percentage off the monthly price if the user pays annually.",
"type": "integer",
"format": "uint",
"minimum": 0
},
"description": {
"description": "A description of the tier.",
"type": "string"
Expand Down Expand Up @@ -32281,6 +32288,13 @@
"description": "A subscription to the modeling app.",
"type": "object",
"properties": {
"annual_discount": {
"nullable": true,
"description": "Annual discount. The percentage off the monthly price if the user pays annually.",
"type": "integer",
"format": "uint",
"minimum": 0
},
"description": {
"description": "A description of the tier.",
"type": "string"
Expand Down Expand Up @@ -32396,6 +32410,11 @@
"$ref": "#/components/schemas/ModelingAppOrganizationSubscriptionTier"
}
]
},
"pay_annually": {
"nullable": true,
"description": "If the customer chooses to pay annually or monthly, we can add that here. The annual discount will apply if there is a discount for the subscription.",
"type": "boolean"
}
}
},
Expand All @@ -32411,6 +32430,11 @@
"$ref": "#/components/schemas/ModelingAppIndividualSubscriptionTier"
}
]
},
"pay_annually": {
"nullable": true,
"description": "If the customer chooses to pay annually or monthly, we can add that here. The annual discount will apply if there is a discount for the subscription.",
"type": "boolean"
}
}
},
Expand Down

0 comments on commit 8d9bc7a

Please sign in to comment.