Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kittycad/models/extended_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class ExtendedUser(KittyCadBaseModel):

This is mostly used for internal purposes. It returns a mapping of the user's information, including that of our third party services we use for users: Stripe"""

allow_pay_as_you_go: Optional[bool] = False

block: Optional[BlockReason] = None

can_train_on_data: Optional[bool] = False
Expand Down
2 changes: 2 additions & 0 deletions kittycad/models/update_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
class UpdateUser(KittyCadBaseModel):
"""The user-modifiable parts of a User."""

allow_pay_as_you_go: Optional[bool] = None

company: Optional[str] = None

discord: Optional[str] = None
Expand Down
2 changes: 2 additions & 0 deletions kittycad/models/user_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
class UserResponse(KittyCadBaseModel):
"""Public user payload returned by the API."""

allow_pay_as_you_go: Optional[bool] = False

block: Optional[BlockReason] = None

block_message: Optional[str] = None
Expand Down
15 changes: 15 additions & 0 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -38045,6 +38045,11 @@
"description": "Extended user information.\n\nThis is mostly used for internal purposes. It returns a mapping of the user's information, including that of our third party services we use for users: Stripe",
"type": "object",
"properties": {
"allow_pay_as_you_go": {
"description": "Whether the user has opted into pay-as-you-go charges after using their included credits.",
"default": false,
"type": "boolean"
},
"block": {
"nullable": true,
"description": "If the user should be blocked and the reason why.",
Expand Down Expand Up @@ -60178,6 +60183,11 @@
"description": "The user-modifiable parts of a User.",
"type": "object",
"properties": {
"allow_pay_as_you_go": {
"nullable": true,
"description": "Whether the user has opted into pay-as-you-go charges after using their included credits.",
"type": "boolean"
},
"company": {
"description": "The user's company.",
"type": "string"
Expand Down Expand Up @@ -60589,6 +60599,11 @@
"description": "Public user payload returned by the API.",
"type": "object",
"properties": {
"allow_pay_as_you_go": {
"description": "Whether the user has opted into pay-as-you-go charges after using their included credits.",
"default": false,
"type": "boolean"
},
"block": {
"nullable": true,
"description": "If the user should be blocked and the reason why.",
Expand Down
Loading