Skip to content
Open
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
3 changes: 3 additions & 0 deletions server/polar/customer_seat/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class CustomerSeat(TimestampedSchema):
status: SeatStatus = Field(..., description="Status of the seat")
customer_id: UUID | None = Field(None, description="The assigned customer ID")
customer_email: str | None = Field(None, description="The assigned customer email")
invitation_token: str | None = Field(
None, description="Invitation token for claiming the seat"
)
invitation_token_expires_at: datetime | None = Field(
None, description="When the invitation token expires"
)
Expand Down
3 changes: 2 additions & 1 deletion server/tests/customer_seat/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ async def test_assign_seat_with_email_success(
data = response.json()
assert data["status"] == "pending"
assert data["subscription_id"] == str(subscription_with_seats.id)
assert "invitation_token" not in data
assert "invitation_token" in data
assert data["invitation_token"] is not None
assert "customer" not in data

@pytest.mark.auth(SEAT_AUTH)
Expand Down
Loading