Created a listener for wix-form to do push actions with but unsure how to best handle it

This commit is contained in:
Jonas Linter
2025-10-01 16:32:15 +02:00
parent ea9b6c72e4
commit 36c32c44d8
4 changed files with 110 additions and 8 deletions

View File

@@ -613,18 +613,35 @@ class NotifReportReadAction(AlpineBitsAction):
await dbsession.commit()
return AlpineBitsResponse(
response_xml, HttpStatusCode.OK
)
class PushAction(AlpineBitsAction):
"""Creates the necessary xml for OTA_HotelResNotif:GuestRequests"""
def __init__(self, config: Dict = {}):
self.name = AlpineBitsActionName.OTA_HOTEL_RES_NOTIF_GUEST_REQUESTS
self.version = [Version.V2024_10, Version.V2022_10]
self.config = config
async def handle(
self,
action: str,
request_xml: str,
version: Version,
client_info: AlpineBitsClientInfo,
dbsession=None,
server_capabilities=None,
) -> AlpineBitsResponse:
"""Create push request XML."""
pass
class AlpineBitsServer:
"""