Skip to content

Commit

Permalink
fix some model issues
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Sep 27, 2023
1 parent 19ea000 commit 8414bd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/edutap/wallet_google/models/primitives/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ class AddMessageRequest(GoogleWalletModel):
see: https://developers.google.com/wallet/tickets/events/rest/v1/AddMessageRequest
"""

message: Message
message: Message | None = None
2 changes: 1 addition & 1 deletion src/edutap/wallet_google/models/retail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/edutap/wallet_google/models/tickets_and_transit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8414bd1

Please sign in to comment.