Skip to content

Commit 95331f4

Browse files
authored
Merge pull request #81 from anomaly/alpha-13
Alpha 13
2 parents b96a12c + f660e3a commit 95331f4

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

gallagher/dto/detail/cardholder.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" Cardholder Detail """
22
from typing import Optional, Any
3+
from datetime import datetime
34
from typing_extensions import Self
45

56
from pydantic import model_validator
@@ -17,6 +18,7 @@
1718
DivisionRef,
1819
PlaceholderRef,
1920
RoleRef,
21+
AccessZoneRef,
2022
)
2123

2224
from ..summary import (
@@ -94,6 +96,10 @@ class CardholderDetail(
9496
description: Optional[str] = None
9597
authorised: bool
9698

99+
last_successful_access_time: Optional[datetime] = None
100+
last_successful_access_zone: Optional[AccessZoneRef] = None
101+
server_display_name: Optional[str] = None
102+
97103
disable_cipher_pad: bool = False
98104
division: DivisionRef
99105
edit: HrefMixin

gallagher/dto/ref/zone.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
from ..utils import (
22
AppBaseModel,
3-
IdentityMixin,
3+
OptionalIdentityMixin,
44
HrefMixin,
55
)
66

77

8-
class AccessZoneRef(AppBaseModel, IdentityMixin, HrefMixin):
8+
class AccessZoneRef(
9+
AppBaseModel,
10+
OptionalIdentityMixin,
11+
HrefMixin
12+
):
913
"""AccessZone represents"""
1014

1115
name: str

tests/test_version.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)