Getting docker build ready again
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="7.000">
|
||||
<ReservationsList>
|
||||
<HotelReservation CreateDateTime="2025-09-29T07:33:12.122570+00:00" ResStatus="Requested" RoomStayReservation="true">
|
||||
<HotelReservation CreateDateTime="2025-09-29T07:45:29.620017+00:00" ResStatus="Requested" RoomStayReservation="true">
|
||||
<UniqueID Type="14" ID="e084006b-ae83-4e4d-b2f5-074118cdb3b1"/>
|
||||
<RoomStays>
|
||||
<RoomStay>
|
||||
|
||||
@@ -8,6 +8,7 @@ class Customer(Base):
|
||||
__tablename__ = 'customers'
|
||||
id = Column(Integer, primary_key=True)
|
||||
given_name = Column(String)
|
||||
contact_id = Column(String, unique=True)
|
||||
surname = Column(String)
|
||||
name_prefix = Column(String)
|
||||
email_address = Column(String)
|
||||
|
||||
@@ -126,10 +126,13 @@ def main():
|
||||
utm_comment = " | ".join(utm_comment_text) if utm_comment_text else None
|
||||
offer = data.get("field:angebot_auswaehlen")
|
||||
|
||||
contact_id = data.get("contact", {}).get("contactId")
|
||||
|
||||
# Save customer and reservation to DB
|
||||
db_customer = DBCustomer(
|
||||
given_name=first_name,
|
||||
surname=last_name,
|
||||
contact_id=contact_id,
|
||||
name_prefix=name_prefix,
|
||||
email_address=email,
|
||||
phone=phone_number,
|
||||
@@ -189,6 +192,8 @@ def main():
|
||||
|
||||
)
|
||||
|
||||
|
||||
|
||||
# CustomerData
|
||||
phone_numbers = [(phone_number, PhoneTechType.MOBILE)] if phone_number else []
|
||||
customer_data = CustomerData(
|
||||
|
||||
Reference in New Issue
Block a user