Skip to content

Commit

Permalink
Merge pull request #27 from TourConnect/feat/use_new_ia_defs
Browse files Browse the repository at this point in the history
comply with the new IA ti2 documentation. Also add more tests
  • Loading branch information
mogii authored Dec 27, 2024
2 parents cfdbd55 + 9d081f8 commit 04ac6a5
Show file tree
Hide file tree
Showing 14 changed files with 6,564 additions and 597 deletions.
83 changes: 83 additions & 0 deletions __fixtures__/2aa5ea5356a2bcb8b62e1b295e96417ace28dfb4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Reply SYSTEM "http://localhost:8080/iCom_Test/hostConnect_4_06_009.dtd">
<Reply>
<GetBookingReply>
<BookingId>316559</BookingId>
<Ref>ALFI393706</Ref>
<BookingUpdateCount>2</BookingUpdateCount>
<Name>2356674/1 Sean Conta</Name>
<QB>Q</QB>
<Consult></Consult>
<AgentRef>2356674/1</AgentRef>
<Email></Email>
<TravelDate>2025-08-13</TravelDate>
<EnteredDate>2024-09-12</EnteredDate>
<BookingStatus>Quotation</BookingStatus>
<ReadOnly>N</ReadOnly>
<CanAddServices>Y</CanAddServices>
<CanCancel>Y</CanCancel>
<BookingType>F</BookingType>
<IsInternetBooking>Y</IsInternetBooking>
<Currency>GBP</Currency>
<TotalPrice>187795</TotalPrice>
<Remarks></Remarks>
<Dialogue></Dialogue>
<AccountingDetails>
<InvoicedTotal>0</InvoicedTotal>
<ReceivedTotal>0</ReceivedTotal>
<CreditsTotal>0</CreditsTotal>
<AmountDue>0</AmountDue>
<FutureBilling>187795</FutureBilling>
</AccountingDetails>
<Services>
<Service>
<ServiceLineId>745684</ServiceLineId>
<ServiceLineUpdateCount>1</ServiceLineUpdateCount>
<Opt>LONHOSANLONBFBDLX</Opt>
<OptionNumber>77490</OptionNumber>
<Date>2025-08-13</Date>
<SequenceNumber>10</SequenceNumber>
<RoomConfigs>
<RoomConfig>
<Adults>1</Adults>
<Children>0</Children>
<Infants>0</Infants>
<RoomType>DB</RoomType>
<PaxList>
<PaxDetails>
<PersonId>628199</PersonId>
<Title>Mr</Title>
<Forename>Sean</Forename>
<Surname>Conta</Surname>
<PaxType>A</PaxType>
</PaxDetails>
</PaxList>
</RoomConfig>
</RoomConfigs>
<CostedInBooking>Y</CostedInBooking>
<LinePrice>187795</LinePrice>
<SCU>night</SCU>
<SCUqty>4</SCUqty>
<Remarks>Passenger Notes: NA.
Service Notes: NA.</Remarks>
<SupplierName>Sanderson</SupplierName>
<Description>Bed and Full Buffet Breakfast</Description>
<Comment>Deluxe King Room</Comment>
<CancelDeleteStatus>D</CancelDeleteStatus>
<CanUpdate>N</CanUpdate>
<CanAccept>N</CanAccept>
<LocationCode>LON</LocationCode>
<ServiceExtras>
<ServiceExtra>
<SequenceNumber>1</SequenceNumber>
<Quantity>1</Quantity>
<Description>Extra Bed</Description>
<IsPricePerPerson>N</IsPricePerPerson>
<ChargeBasis>Room</ChargeBasis>
<IsCompulsory>N</IsCompulsory>
</ServiceExtra>
</ServiceExtras>
</Service>
</Services>
</GetBookingReply>
</Reply>
5 changes: 5 additions & 0 deletions __fixtures__/886b85f63265b8b0f5d16706faa2614a88da4261.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Reply SYSTEM "http://localhost:8080/iCom_Test/hostConnect_4_06_009.dtd">
<Reply>
<ListBookingsReply />
</Reply>
23 changes: 23 additions & 0 deletions __fixtures__/9643a6606dfd496a5e37ae956d56d09e98848505.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Reply SYSTEM "http://localhost:8080/iCom_Test/hostConnect_4_06_009.dtd">
<Reply>
<ListBookingsReply>
<BookingHeaders>
<BookingHeader>
<BookingId>316559</BookingId>
<Ref>ALFI393706</Ref>
<Name>2356674/1 Sean Conta</Name>
<QB>Q</QB>
<Consult></Consult>
<AgentRef>2356674/1</AgentRef>
<TravelDate>2025-08-13</TravelDate>
<EnteredDate>2024-09-12</EnteredDate>
<BookingStatus>Quotation</BookingStatus>
<BookingType>F</BookingType>
<IsInternetBooking>Y</IsInternetBooking>
<Currency>GBP</Currency>
<TotalPrice>187795</TotalPrice>
</BookingHeader>
</BookingHeaders>
</ListBookingsReply>
</Reply>
5 changes: 5 additions & 0 deletions __fixtures__/a3e4b3058ef73d681664b78229eef213464fb64d.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Reply SYSTEM "http://localhost:8080/iCom_Test/hostConnect_4_06_009.dtd">
<Reply>
<OptionInfoReply />
</Reply>
5 changes: 5 additions & 0 deletions __fixtures__/aeb193f31b797722f6cd5ce0f60bb04fe624af43.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Reply SYSTEM "http://localhost:8080/iCom_Test/hostConnect_4_06_009.dtd">
<Reply>
<ListBookingsReply />
</Reply>
53 changes: 53 additions & 0 deletions __fixtures__/dfc0d0474d53d75cee5d309c674d3b47fdc22861.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Reply SYSTEM "http://localhost:8080/iCom_Test/hostConnect_4_06_009.dtd">
<Reply>
<OptionInfoReply>
<Option>
<Opt>LONTRDAVIDSHDWBVC</Opt>
<OptionNumber>70820</OptionNumber>
<OptGeneral>
<SupplierId>6489</SupplierId>
<SupplierName>Davids of London Ltd</SupplierName>
<Description>Half-Day Warner Bros Studios (6-Hours)</Description>
<Comment>FIT- V- Class (1-5 Pax)</Comment>
<Locality>LON</Locality>
<LocalityDescription>London</LocalityDescription>
<SType>N</SType>
<MPFCU>5</MPFCU>
<SCU>day</SCU>
<MinSCU>1</MinSCU>
<MaxSCU>9999</MaxSCU>
<VoucherName>Davids of London Ltd</VoucherName>
<Address1>377 Fulham Palace Road</Address1>
<Address2></Address2>
<Address3>London</Address3>
<Address4>United Kingdom</Address4>
<Address5></Address5>
<PostCode>SW6 6TA</PostCode>
<InfantsAllowed>Y</InfantsAllowed>
<Infant_From>0</Infant_From>
<Infant_To>4</Infant_To>
<ChildrenAllowed>Y</ChildrenAllowed>
<Child_From>5</Child_From>
<Child_To>15</Child_To>
<AdultsAllowed>Y</AdultsAllowed>
<Adult_From>16</Adult_From>
<Adult_To>999</Adult_To>
<ButtonName>Transfers</ButtonName>
<DBAnalysisCode1>FI</DBAnalysisCode1>
<DBAnalysisDescription1>FIT</DBAnalysisDescription1>
<DBAnalysisCode2>GB</DBAnalysisCode2>
<DBAnalysisDescription2>United Kingdom</DBAnalysisDescription2>
<DBAnalysisCode3>20</DBAnalysisCode3>
<DBAnalysisDescription3>VAT 20%</DBAnalysisDescription3>
<DBAnalysisCode4></DBAnalysisCode4>
<DBAnalysisDescription4>Unassigned</DBAnalysisDescription4>
<DBAnalysisCode5></DBAnalysisCode5>
<DBAnalysisDescription5>Unassigned</DBAnalysisDescription5>
<DBAnalysisCode6></DBAnalysisCode6>
<DBAnalysisDescription6>Unassigned</DBAnalysisDescription6>
<LastUpdate>2023-11-23T14:34:53Z</LastUpdate>
</OptGeneral>
</Option>
</OptionInfoReply>
</Reply>
Loading

0 comments on commit 04ac6a5

Please sign in to comment.