Skip to content

Commit 767763b

Browse files
Update api spec (#537)
* 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>
1 parent 3c8ecc4 commit 767763b

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

kittycad/models/invoice.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class Invoice(KittyCadBaseModel):
2121

2222
attempted: bool = False
2323

24+
billing_reason: Optional[str] = None
25+
26+
collection_method: Optional[str] = None
27+
2428
created_at: datetime.datetime
2529

2630
currency: Currency = "usd" # type: ignore[assignment]
@@ -53,6 +57,8 @@ class Invoice(KittyCadBaseModel):
5357

5458
status: Optional[InvoiceStatus] = None
5559

60+
subscription_id: Optional[str] = None
61+
5662
subtotal: float = 0.0
5763

5864
tax: float = 0.0

kittycad/models/zoo_tool.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ class ZooTool(str, Enum):
88

99
MODELING_APP = "modeling_app"
1010

11-
"""# The Diff Chrome Extension.""" # noqa: E501
12-
13-
DIFF_CHROME_EXTENSION = "diff_chrome_extension"
14-
1511
"""# The Text-to-CAD UI.""" # noqa: E501
1612

1713
TEXT_TO_CAD = "text_to_cad"

spec.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27836,6 +27836,16 @@
2783627836
"default": false,
2783727837
"type": "boolean"
2783827838
},
27839+
"billing_reason": {
27840+
"nullable": true,
27841+
"description": "Why this invoice was created (e.g. `subscription_cycle`).",
27842+
"type": "string"
27843+
},
27844+
"collection_method": {
27845+
"nullable": true,
27846+
"description": "Invoice collection method as returned by Stripe.",
27847+
"type": "string"
27848+
},
2783927849
"created_at": {
2784027850
"description": "Time at which the object was created.",
2784127851
"type": "string",
@@ -27925,6 +27935,11 @@
2792527935
}
2792627936
]
2792727937
},
27938+
"subscription_id": {
27939+
"nullable": true,
27940+
"description": "Subscription ID tied to this invoice, when available.",
27941+
"type": "string"
27942+
},
2792827943
"subtotal": {
2792927944
"title": "double",
2793027945
"description": "Total of all subscriptions, invoice items, and prorations on the invoice before any invoice level discount or tax is applied.\n\nItem discounts are already incorporated.",
@@ -43942,13 +43957,6 @@
4394243957
"modeling_app"
4394343958
]
4394443959
},
43945-
{
43946-
"description": "The Diff Chrome Extension.",
43947-
"type": "string",
43948-
"enum": [
43949-
"diff_chrome_extension"
43950-
]
43951-
},
4395243960
{
4395343961
"description": "The Text-to-CAD UI.",
4395443962
"type": "string",

0 commit comments

Comments
 (0)