Skip to content

Commit 2da4742

Browse files
committed
fix: adds apple pass
1 parent 9eebb88 commit 2da4742

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

gallagher/dto/enum.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ class CredentialsClass(str, Enum):
3838
PIVI = "pivi"
3939
TRACKING_TAG = "trackingTag"
4040
TRANSACT = "transact"
41-
FIOD2 = "fido2"
41+
FIOD2 = "fido2"
42+
BIOMETRIC = "biometric"
43+
APPLE_PASS = "applePass"

gallagher/dto/payload/cardholder.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
""" Cardholder Update Builder exploration
22
3+
Example Usage:
4+
5+
add_card_href = CardTypeRef(href="https://api.example.com/cards/123")
6+
remove_card_href = HrefMixin(href="https://api.example.com/cards/456")
7+
8+
card_update_builder = CardholderUpdateBuilder()
9+
.add_card(add_card_href)
10+
.remove_card(remove_card_href)
11+
.build()
12+
313
"""
414
from ..ref.card import CardTypeRef
515

@@ -15,3 +25,4 @@ def add_card(self, card: CardTypeRef):
1525

1626
def remove_card(self, href: URL):
1727
pass
28+

gallagher/dto/payload/utils.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
""" Payload builder helpers
2+
3+
4+
5+
6+
7+
"""
8+
9+
from pydantic import BaseModel, URL
10+
11+
class BaseRequestPayloadBuilder(BaseModel):
12+
pass

0 commit comments

Comments
 (0)