From 8414bd18b46b710af7376bb4b9c9b638a98a1fb3 Mon Sep 17 00:00:00 2001 From: Alexander Loechel Date: Wed, 27 Sep 2023 23:54:04 +0200 Subject: [PATCH] fix some model issues --- src/edutap/wallet_google/models/primitives/notification.py | 2 +- src/edutap/wallet_google/models/retail.py | 2 +- src/edutap/wallet_google/models/tickets_and_transit.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/edutap/wallet_google/models/primitives/notification.py b/src/edutap/wallet_google/models/primitives/notification.py index 05ab312..ba97573 100644 --- a/src/edutap/wallet_google/models/primitives/notification.py +++ b/src/edutap/wallet_google/models/primitives/notification.py @@ -48,4 +48,4 @@ class AddMessageRequest(GoogleWalletModel): see: https://developers.google.com/wallet/tickets/events/rest/v1/AddMessageRequest """ - message: Message + message: Message | None = None diff --git a/src/edutap/wallet_google/models/retail.py b/src/edutap/wallet_google/models/retail.py index 8ea020e..85981a4 100644 --- a/src/edutap/wallet_google/models/retail.py +++ b/src/edutap/wallet_google/models/retail.py @@ -225,7 +225,7 @@ class LoyaltyPoints(BaseModel): localizedLabel: LocalizedString | None = None -@register_model("LoyaltyObject", url_part="loyaltyObject") +@register_model("LoyaltyObject", url_part="loyaltyObject", plural="loyaltyObjects") class LoyaltyObject(GoogleWalletObjectModel): """ see: https://developers.google.com/wallet/retail/loyalty-cards/rest/v1/loyaltyobject diff --git a/src/edutap/wallet_google/models/tickets_and_transit.py b/src/edutap/wallet_google/models/tickets_and_transit.py index db9f9ec..ebd0867 100644 --- a/src/edutap/wallet_google/models/tickets_and_transit.py +++ b/src/edutap/wallet_google/models/tickets_and_transit.py @@ -104,7 +104,7 @@ class EventReservationInfo(BaseModel): confirmationCode: str | None = None -@register_model("EventTicketObject", url_part="eventTicketObject") +@register_model("EventTicketObject", url_part="eventTicketObject", plural="eventTicketObjects") class EventTicketObject(GoogleWalletObjectModel): """ see: https://developers.google.com/wallet/tickets/events/rest/v1/eventticketobject