Sabre Hotel Reservation Not working - sabre

I have been trying to reserve an hotel with the Sabre Hotel Reservation error and I have getting series of errors ranging from, "NO AVAIL", "FORMAT"
Attached below is a step by step process starting from HotelPropertyDescription to HotelRes
HotelPropertyDescriptionRQ
<HotelPropertyDescriptionRQ Version="2.3.0" xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AvailRequestSegment>
<GuestCounts Count="1" />
<HotelSearchCriteria>
<Criterion>
<HotelRef HotelCode="0037781" />
</Criterion>
</HotelSearchCriteria>
<TimeSpan End="01-31" Start="01-29" />
</AvailRequestSegment>
</HotelPropertyDescriptionRQ>
HotelPropertyDescriptionRS
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1"><eb:From><eb:PartyId eb:type="URI">https://sws-crt.cert.havail.sabre.com</eb:PartyId></eb:From><eb:To><eb:PartyId eb:type="URI">localhost:8000</eb:PartyId></eb:To><eb:CPAId><<--Romved By ME-->></eb:CPAId><eb:ConversationId>convId</eb:ConversationId><eb:Service eb:type="OTA">HotelPropertyDescriptionLLSRQ</eb:Service><eb:Action>HotelPropertyDescriptionLLSRS</eb:Action><eb:MessageData><eb:MessageId>1191447481752920151</eb:MessageId><eb:Timestamp>2018-01-11T13:22:56</eb:Timestamp><eb:RefToMessageId>1190841481505850610</eb:RefToMessageId></eb:MessageData></eb:MessageHeader><wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"><wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary"><<--Romved By ME-->></wsse:BinarySecurityToken></wsse:Security></soap-env:Header><soap-env:Body><HotelPropertyDescriptionRS xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:stl="http://services.sabre.com/STL/v01" Version="2.3.0">
<stl:ApplicationResults status="Complete">
<stl:Success timeStamp="2018-01-11T07:22:56-06:00"/>
</stl:ApplicationResults>
<RoomStay>
<BasicPropertyInfo ChainCode="PR" GeoConfidenceLevel="0" HotelCityCode="JNB" HotelCode="0037781" HotelName="PR BALALAIKA SANDTON" Latitude="-26.106467" Longitude="28.053686" RPH="001">
<Address>
<AddressLine>20 MAUDE STREET</AddressLine>
<AddressLine>SANDTON ZA 2146</AddressLine>
<CountryCode>ZA</CountryCode>
</Address>
<Awards>
<AwardProvider>NTM3 CROWN</AwardProvider>
</Awards>
<CheckInTime>14:00</CheckInTime>
<CheckOutTime>11:00</CheckOutTime>
<ContactNumbers>
<ContactNumber Fax="27-11-322 5021" Phone="27-11-322 5000"/>
</ContactNumbers>
<DirectConnect Ind="true">
<AdditionalData Ind="false"/>
<CurrencyConverted Ind="false"/>
<DC_AvailParticipant Ind="true"/>
<DC_SellParticipant Ind="true"/>
<RequestFail Ind="false"/>
<UnAvail Ind="false"/>
</DirectConnect>
<IndexData>
<Index DistanceDirection="10N" LocationCode="A" Point="JNB" TransportationCode="O"/>
</IndexData>
<PropertyOptionInfo>
<ADA_Accessible Ind="false"/>
<AdultsOnly Ind="false"/>
<AirportShuttle Ind="false"/>
<BeachFront Ind="false"/>
<Breakfast Ind="false"/>
<BusinessCenter Ind="false"/>
<BusinessReady Ind="false"/>
<CarRentalCounter>N</CarRentalCounter>
<Conventions Ind="false"/>
<Dataport Ind="false"/>
<Dining Ind="true"/>
<DryClean Ind="false"/>
<EcoCertified Ind="false"/>
<ExecutiveFloors Ind="false"/>
<FamilyPlan Ind="false"/>
<FitnessCenter Ind="false"/>
<FreeLocalCalls Ind="false"/>
<FreeParking Ind="false"/>
<FreeShuttle Ind="false"/>
<FreeWifiInMeetingRooms Ind="false"/>
<FreeWifiInPublicSpaces Ind="false"/>
<FreeWifiInRooms Ind="false"/>
<FullServiceSpa Ind="false"/>
<GameFacilities Ind="false"/>
<Golf Ind="false"/>
<GovtSafetyFire Ind="false"/>
<HighSpeedInternet Ind="true"/>
<HypoallergenicRooms Ind="false"/>
<IndoorPool Ind="false"/>
<IndPetRestriction Ind="false"/>
<InRoomCoffeeTea Ind="false"/>
<InRoomMiniBar Ind="false"/>
<InRoomRefrigerator Ind="false"/>
<InRoomSafe Ind="false"/>
<InteriorDoorways Ind="false"/>
<Jacuzzi Ind="false"/>
<KidsFacilities Ind="false"/>
<KitchenFacilities Ind="false"/>
<MealService Ind="true"/>
<MeetingFacilities Ind="true"/>
<NoAdultTV Ind="false"/>
<NonSmoking Ind="false"/>
<OutdoorPool Ind="false"/>
<Parking>Y</Parking>
<Pets Ind="false"/>
<Pool Ind="true"/>
<PublicTransportationAdjacent Ind="false"/>
<Recreation Ind="false"/>
<RestrictedRoomAccess Ind="false"/>
<RoomService Ind="true"/>
<RoomService24Hours Ind="false"/>
<RoomsWithBalcony Ind="false"/>
<SkiInOutProperty Ind="false"/>
<SmokeFree Ind="false"/>
<SmokingRoomsAvail Ind="false"/>
<Tennis Ind="false"/>
<WaterPurificationSystem Ind="false"/>
<Wheelchair Ind="true"/>
</PropertyOptionInfo>
<PropertyTypeInfo>
<AllInclusive Ind="false"/>
<Apartments Ind="false"/>
<BedBreakfast Ind="false"/>
<Castle Ind="false"/>
<Conventions Ind="false"/>
<Economy Ind="false"/>
<ExtendedStay Ind="false"/>
<Farm Ind="false"/>
<First Ind="false"/>
<Luxury Ind="true"/>
<Moderate Ind="false"/>
<Motel Ind="false"/>
<Resort Ind="false"/>
<Suites Ind="false"/>
</PropertyTypeInfo>
<SpecialOffers Ind="false"/>
<Taxes>
<Text>TAX INCL</Text>
<Text>SVC EXCL</Text>
</Taxes>
<VendorMessages>
<AdditionalAttractions>
<Text>- NEARBY CORPORATE LOCATIONS INCLUDE:</Text>
<Text>* JOHANNESBURG CITY CENTRE ... 16KM</Text>
<Text>* SANDTON CITY ....... 0.2KM</Text>
<Text>* ABSA PARK .......... 0.1KM</Text>
</AdditionalAttractions>
<Cancellation>
<Text>SHOULD THE RESERVATION BE CANCELLED LESS THAN 24HRS FROM DAY OF</Text>
<Text>ARRIVAL, A CANCELLATION FEE OF 1 NIGHT S STAY PLUS 1PERCENT</Text>
<Text>LEVY WILL BE CHARGED</Text>
</Cancellation>
<Deposit>
<Text>THE DEPOSIT IS REQUIRED AT THE TIME OF RESERVATION.</Text>
</Deposit>
<Description>
<Text>FOR THOSE WHO SEEK PREMIER QUALITY AND ELEGANCE, THE PROTEA</Text>
<Text>HOTEL BALALAIKA IS THE DISTINCTIVELY SUPERIOR CHOICE.</Text>
<Text>ESTABLISHED IN 1949, THE PROTEA HOTEL BALALAIKA IS A PRIVATELY</Text>
<Text>OWNED PREMIER HOTEL, SET IN THE HEART OF SANDTON, SOUTH AFRICA.</Text>
</Description>
<Dining>
<Text>*THE COLONY RESTAURANT</Text>
<Text>THE RESTAURANT IS OPEN FIVE DAYS A WEEK FOR BREAKFAST FROM</Text>
<Text>06H30 TO 10H00 AND WEEKENDS FROM 07H00 TO 10H30, WHERE A LAVISH</Text>
<Text>FULL ENGLISH BREAKFAST BUFFET IS SERVED. THE RESTAURANT IS</Text>
<Text>CLOSED FOR LUNCH AND DINNER. PROKARD GOLD IS ACCEPTED.</Text>
<Text>*THE BULL RUN RESTAURANT</Text>
<Text>A WEALTH OF GOOD TASTE.INDULGE YOUR SENSES IN OUR WARM,</Text>
<Text>SPACIOUS INTERIOR, EMBELLISHED WITH FINE WOOD AND FACE BRICK,</Text>
<Text>CATERING FOR THE CONNOISSEURS OF CHOICE MEAT AND SELECT WINES.</Text>
<Text>VISIT OUR IN-HOUSE BUTCHERY FOR FRESH CUTS OF MATURELY AGED</Text>
<Text>MEAT, CUT AND PACKED FOR YOUR SPECIFIC REQUIREMENTS. A MUST FOR</Text>
<Text>BOTH LOCAL AND INTERNATIONAL GUESTS ALIKE. ENJOY FRESH OYSTERS,</Text>
<Text>WHILE SIPPING AN EXOTIC COCKTAIL ON THE TERRACE. OPEN DAILY FOR</Text>
<Text>LUNCH AND DINNER, MONDAY TO SUNDAY. CLOSED ON SATURDAY FOR</Text>
<Text>LUNCH. PROKARD GOLD IS ACCEPTED.</Text>
<Text>*THE OVAL COFFEE SHOP</Text>
<Text>THE OVAL COFFEE SHOP OFFERS A VARIETY OF LIGHT MEALS SUCH AS</Text>
<Text>TRAMEZZINI AND CIABATTA WITH NUMEROUS SELECTIONS OF DIFFERENT</Text>
<Text>FILLINGS. CAKES, PASTRIES AND SPECIALTY COFFEES ARE ALSO</Text>
<Text>AVAILABLE. OPEN SEVEN DAYS A WEEK FROM 09H00 TO 21H00. IN THE</Text>
<Text>WINTER MONTHS, ENJOY OUR HOT HOME-MADE SOUP OF THE DAY, SERVED</Text>
<Text>WITH FRENCH LOAF.</Text>
<Text>*LORDS CIGAR BAR</Text>
<Text>A SOPHISTICATED LOUNGE BAR, DECORATED IN LUXURIOUS SOLID WOOD</Text>
<Text>FURNISHINGS, CHANDELIERS, AND RICH PLUSH UPHOLSTERY. A VAST</Text>
<Text>VARIETY OF SPECIALTY COCKTAILS ARE AVAILABLE. HOT SAVORIES ARE</Text>
<Text>SERVED DAILY AT 17H00. INTERNATIONAL CIGARS FROM ALL OVER THE</Text>
<Text>WORLD ARE IMPORTED. CHOOSE ONE FROM OUR SPECIALLY DESIGNED</Text>
<Text>CIGAR MENU.</Text>
</Dining>
<Directions>
<Text>- TAKE THE R24 TOWARDS JOHANNESBURG. TRAVEL FOR 10KM AND</Text>
<Text>TAKE THE N3 TURNOFF TO PRETORIA. TAKE THE MARLBORO</Text>
<Text>DRIVE TURNOFF AND TURN LEFT AT THE TRAFFIC LIGHTS.</Text>
<Text>CONTINUE UNDER THE BRIDGE INTO GRAYSTON DRIVE. TURN</Text>
<Text>LEFT INTO RIVONIA ROAD AND AT THE FIRST SET OF</Text>
<Text>TRAFFIC LIGHTS TURN INTO MAUDE STREET WHERE THE HOTEL</Text>
<Text>IS SITUATED ON THE LEFT.</Text>
</Directions>
<Facilities>
<Text>*LOUNGE</Text>
<Text>*THE POOL TERRACE</Text>
<Text>*FITNESS CENTRE</Text>
<Text>*RESTAURANT</Text>
<Text>*FAX</Text>
<Text>*PHOTOSTAT COPIES</Text>
<Text>*BED BOARDS</Text>
<Text>*EXTRA BEDS</Text>
<Text>*BABY COTS / HIGH CHAIRS / BABY-SITTING FACILITIES</Text>
<Text>*MAIL POSTING FACILITIES</Text>
<Text>*FULL CONCIERGE FACILITIES</Text>
<Text>*PARKING</Text>
<Text>*LAUNDRY AND VALET</Text>
<Text>*EXTRA PILLOWS</Text>
<Text>*SAFE CUSTODY</Text>
<Text>*24 HOUR ROOM SERVICE</Text>
<Text>*PLSE NOTE A CHARGE MAY BE APPLICABLE FOR SOME OF THE ABOVE*</Text>
</Facilities>
<Guarantee>
<Text>ALL RESERVATIONS MUST BE GUARANTEED TO CREDIT CARD AX DC CA VI</Text>
<Text>IK, TRAVEL AGENT VOUCHER OR DEPOSIT</Text>
</Guarantee>
<MiscServices>
<Text>- PETS ARE NOT ACCEPTED.</Text>
<Text>- ALL RATES ARE NON COMMISSIONABLE</Text>
</MiscServices>
<Recreation>
<Text>- AVAILABLE CLOSE TO THE HOTEL:</Text>
<Text>* TENNIS COURTS ..... 2KM</Text>
<Text>* FITNESS CENTRE .... 1KM</Text>
<Text>* GOLF COURSE ....... 2KM</Text>
<Text>*PLSE NOTE A CHARGE MAY BE APPLICABLE FOR SOME OF THE ABOVE*</Text>
</Recreation>
<Rooms>
<Text>ALL ROOMS ARE A DELIGHTFUL REFLECTION OF THE ENGLISH COUNTRY</Text>
<Text>THEME OF THE HOTEL AND ARE FITTED TO EXCEED THE FOUR STAR</Text>
<Text>RATING. ALL ROOMS HAVE INDIVIDUALLY CONTROLLED AIR-CONDITIONING</Text>
<Text>AND HEATING, PRIVATE BATHROOMS WITH SEPARATE SHOWERS, MODEM</Text>
<Text>POINTS, ADAPTOR POINTS FOR INTERNATIONAL PLUGS, T.V. WITH AN</Text>
<Text>ADDITIONAL FIVE SATELLITE STATIONS, THREE GERMAN CHANNELS,</Text>
<Text>M-NET, RADIO, TEA/COFFEE MAKING FACILITIES AND ELECTRONIC</Text>
<Text>SAFES. MINI-BARS ARE AVAILABLE ON REQUEST. NON-SMOKING ROOMS</Text>
<Text>ARE AVAILABLE UPON REQUEST.</Text>
</Rooms>
<Safety>
<Text>- THE HOTEL OFFERS 24HOURS ON SITE SECURITY, PORTER</Text>
<Text>SERVICE AND RECEPTION. SMOKE DETECTORS ARE INSTALLED IN</Text>
<Text>ALL ROOMS AND PUBLIC PLACES.</Text>
</Safety>
<Services>
<Text>* ROOM SERVICE * FOREIGN EXCHANGE * BABY SITTING</Text>
<Text>* LAUNDRY * PORTERS * VALET</Text>
<Text>*PLS NOTE A CHARGE MAY BE APPLICABLE FOR SOME OF THE ABOVE*</Text>
</Services>
<Transportation>
<Text>RECOMMENDED MEANS OF TRANSPORT BETWEEN AIRPORT AND HOTEL IS</Text>
<Text>EITHER BY AIRPORT SHUTTLE CHARGED OR PRIVATE TAXI.</Text>
</Transportation>
</VendorMessages>
</BasicPropertyInfo>
<Guarantee>
<GuaranteesAccepted>
<PaymentCard Code="AX" Type="AMERICAN EXPRESS"/>
<PaymentCard Code="CA" Type="MASTERCARD"/>
<PaymentCard Code="DC" Type="DINERS CLUB CARD"/>
<PaymentCard Code="DS" Type="DISCOVER CARD"/>
<PaymentCard Code="IK" Type="MASTER CARD"/>
<PaymentCard Code="MC" Type="MASTER CARD"/>
<PaymentCard Code="VI" Type="VISA"/>
</GuaranteesAccepted>
</Guarantee>
<RoomRates>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" IATA_CharacteristicIdentification="APND00" IATA_ProductIdentification="ADVANCE PURCHASE" LowInventoryThreshold="false" RPH="001" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="00" Option="N">
<Text>UP TO 01 DAYS AFTER BOOKING</Text>
</CancelPolicy>
<Commission NonCommission="false">COMMISSIONABLE</Commission>
<Text>ADVANCE PURCHASE RATE, INCLUDES PREPAY IN FULL, NON-REFUNDABLE,</Text>
<Text>NO CHANGES, STANDARD, GUEST ROOM, 1 KING</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="1912.50" ChangeIndicator="false" CurrencyCode="ZAR" HRD_RequiredForSell="true" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0">
<Charges ExtraPerson="0"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="3863.25">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="38.25"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="G" GuaranteedRateProgram="false" IATA_CharacteristicIdentification="REGA00" IATA_ProductIdentification="REGULAR RATE" LowInventoryThreshold="false" RPH="002" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="06" Option="P"/>
<Commission NonCommission="false">COMMISSIONABLE</Commission>
<Text>BEST AVAILABLE RATE REGULAR RATE,, SEE RATE RULES, STANDARD,</Text>
<Text>GUEST ROOM, 1 KING</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="2250.00" ChangeIndicator="false" CurrencyCode="ZAR" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0">
<Charges ExtraPerson="0"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="4545.00">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="45.00"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" IATA_CharacteristicIdentification="APNN00" IATA_ProductIdentification="ADVANCE PURCHASE" LowInventoryThreshold="false" RPH="003" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="00" Option="N">
<Text>UP TO 01 DAYS AFTER BOOKING</Text>
</CancelPolicy>
<Commission NonCommission="false">COMMISSIONABLE</Commission>
<Text>ADVANCE PURCHASE RATE, INCLUDES PREPAY IN FULL, NON-REFUNDABLE,</Text>
<Text>NO CHANGES, 2 BEDROOM SUITE</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="2762.50" ChangeIndicator="false" CurrencyCode="ZAR" HRD_RequiredForSell="true" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0">
<Charges ExtraPerson="0"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="5580.25">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="55.25"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" IATA_CharacteristicIdentification="APNM00" IATA_ProductIdentification="ADVANCE PURCHASE" LowInventoryThreshold="false" RPH="004" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="00" Option="N">
<Text>UP TO 01 DAYS AFTER BOOKING</Text>
</CancelPolicy>
<Commission NonCommission="false">COMMISSIONABLE</Commission>
<Text>ADVANCE PURCHASE RATE, INCLUDES PREPAY IN FULL, NON-REFUNDABLE,</Text>
<Text>NO CHANGES, SUITE, 1 KING</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="2762.50" ChangeIndicator="false" CurrencyCode="ZAR" HRD_RequiredForSell="true" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0">
<Charges ExtraPerson="0"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="5580.25">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="55.25"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="G" GuaranteedRateProgram="false" IATA_CharacteristicIdentification="REGD00" IATA_ProductIdentification="REGULAR RATE" LowInventoryThreshold="false" RPH="005" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="06" Option="P"/>
<Commission NonCommission="false">COMMISSIONABLE</Commission>
<Text>BEST AVAILABLE RATE REGULAR RATE,, SEE RATE RULES, 2 BEDROOM</Text>
<Text>SUITE</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="3250.00" ChangeIndicator="false" CurrencyCode="ZAR" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0">
<Charges ExtraPerson="0"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="6565.00">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="65.00"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="G" GuaranteedRateProgram="false" IATA_CharacteristicIdentification="REGC00" IATA_ProductIdentification="REGULAR RATE" LowInventoryThreshold="false" RPH="006" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="06" Option="P"/>
<Commission NonCommission="false">COMMISSIONABLE</Commission>
<Text>BEST AVAILABLE RATE REGULAR RATE,, SEE RATE RULES, SUITE, 1</Text>
<Text>KING</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="3250.00" ChangeIndicator="false" CurrencyCode="ZAR" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0">
<Charges ExtraPerson="0"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="6565.00">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="65.00"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Duration="0005" End="2018-01-31" Start="2018-01-29"/>
</RoomStay>
</HotelPropertyDescriptionRS></soap-env:Body></soap-env:Envelope>
HotelResRQ
<OTA_HotelResRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ReturnHostCommand="false" TimeStamp="2013-11-22T17:15:00-06:00" Version="2.2.0">
<Hotel>
<BasicPropertyInfo RPH="001" />
<Customer NameNumber="1.1" />
<Guarantee Type="D">
<CC_Info>
<PaymentCard Code="VI" ExpireDate="2019-07" Number="4111111111111111"/>
<PersonName>
<Surname>TESTING</Surname>
</PersonName>
</CC_Info>
</Guarantee>
<RoomType NumberOfUnits="1"/>
<SpecialPrefs>
<WrittenConfirmation Ind="true" />
</SpecialPrefs>
</Hotel>
</OTA_HotelResRQ>
HotelResRS
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1"><eb:From><eb:PartyId eb:type="URI">https://sws-crt.cert.havail.sabre.com</eb:PartyId></eb:From><eb:To><eb:PartyId eb:type="URI">localhost:8000</eb:PartyId></eb:To><eb:CPAId><<--Romved By ME-->></eb:CPAId><eb:ConversationId>convId</eb:ConversationId><eb:Service eb:type="OTA">OTA_HotelResLLSRQ</eb:Service><eb:Action>OTA_HotelResLLSRS</eb:Action><eb:MessageData><eb:MessageId>1192612482294130151</eb:MessageId><eb:Timestamp>2018-01-11T13:23:50</eb:Timestamp><eb:RefToMessageId>1192430482217330150</eb:RefToMessageId></eb:MessageData></eb:MessageHeader><wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"><wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary"><<--Romved By ME-->></wsse:BinarySecurityToken></wsse:Security></soap-env:Header><soap-env:Body><OTA_HotelResRS xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:stl="http://services.sabre.com/STL/v01" Version="2.2.0">
<stl:ApplicationResults status="NotProcessed">
<stl:Error type="BusinessLogic" timeStamp="2018-01-11T07:23:50-06:00">
<stl:SystemSpecificResults>
<stl:Message code="0">FORMAT</stl:Message>
<stl:ShortText>ERR.SWS.HOST.ERROR_IN_RESPONSE</stl:ShortText>
</stl:SystemSpecificResults>
</stl:Error>
</stl:ApplicationResults>
</OTA_HotelResRS></soap-env:Body></soap-env:Envelope>
It returned 'FORMAT' as the error this time, sometimes it returns 'NO AVAIL'.
I followed the steps as provided on the Sabre Dev studio but I still feel I am doing something wrong.
Any way I can solve this ?

For deposit you should be using GuaranteeType as "GDPST".
"Type" can be "G", "GAGT", "GDPST", "GC", "GCR", "GH", "GDPSTH", "GT", or "GDPSTT"
https://developer.sabre.com/docs/read/soap_apis/hotel/book/book_hotel_reservation/
You should also display the rules before attempting to sell that rate since HRD_RequiredForSell was returned as 'true'.

Related

Extracting a dataframe or table from text in R

This is a challenging question, as it might be somehow difficult for the variability that is present. Let's start with the example:
example <- list(c("Birth Centenary of K.S.Stanislavsky.Series:Birth CentenariesCatalog codes:Mi:SU 2710, Sn:SU 2695, Yt:SU 2626, Sg:SU 2797, AFA:SU 2698Variants:Click to see variantsThemes:Actors | Anniversaries and Jubilees | Famous People | MenIssued on:1963-01-15Size:30 x 42 mmColors:Blackish grey greenFormat:StampEmission:CommemorativePerforation:line 12½Printing:RecessPaper:hard thick whiteWatermark:UnwmkFace value:4 Russian kopekPrint run:2,000,000Score:29%\tAccuracy: Very HighBuy Now:2 sale offers from US$ 0.16",
"Birth Centenary of A.S.Serafimovich.Series:Birth CentenariesCatalog codes:Mi:SU 2711, Sn:SU 2696, Yt:SU 2627, Sg:SU 2800, AFA:SU 2699Themes:Anniversaries and Jubilees | Authors | Famous People | Literary People (Poets and Writers) | Literature | MenIssued on:1963-01-19Size:28 x 40 mmFormat:StampEmission:CommemorativePerforation:frame 11½Printing:PhotogravurePaper:ordinaryFace value:4 Russian kopekPrint run:2,500,000Score:26%\tAccuracy: Very HighBuy Now:3 sale offers from US$ 0.11",
"Children in nurserySeries:Soviet ChildrenCatalog codes:Mi:SU 2712, Sn:SU 2697, Yt:SU 2629, Sg:SU 2806, AFA:SU 2700Themes:ChildrenIssued on:1963-01-31Size:42 x 28 mmColors:MulticolorFormat:StampEmission:CommemorativePerforation:comb 11½Printing:PhotogravureFace value:4 Russian kopekPrint run:3,000,000Score:27%\tAccuracy: Very HighDescription:Designer: A. Shmidshtein. Paper: ordinary.Buy Now:2 sale offers from US$ 0.08",
"Children with nurseSeries:Soviet ChildrenCatalog codes:Mi:SU 2713, Sn:SU 2698, Yt:SU 2628, Sg:SU 2807, AFA:SU 2701Themes:ChildrenIssued on:1963-01-31Size:42 x 28 mmFormat:StampEmission:CommemorativePerforation:comb 11½Printing:PhotogravureFace value:4 Russian kopekPrint run:3,000,000Score:25%\tAccuracy: Very HighDescription:Designer: A. Shmidshtein. Paper: ordinary.Buy Now:3 sale offers from US$ 0.08",
"Pioneer campSeries:Soviet ChildrenCatalog codes:Mi:SU 2714, Sn:SU 2699, Yt:SU 2630, Sg:SU 2808, AFA:SU 2702Themes:ChildrenIssued on:1963-01-31Size:42 x 28 mmFormat:StampEmission:CommemorativePerforation:comb 11½Printing:PhotogravureFace value:4 Russian kopekPrint run:3,000,000Score:22%\tAccuracy: Very HighDescription:Designer: A. Shmidshtein. Paper: ordinary.Buy Now:4 sale offers from US$ 0.11",
"Soviet Children.Series:Soviet ChildrenCatalog codes:Mi:SU 2715, Sn:SU 2700, Yt:SU 2631, Sg:SU 2809, AFA:SU 2703Themes:ChildrenIssued on:1963-01-31Size:40 x 28 mmFormat:StampEmission:CommemorativePerforation:comb 11½Printing:PhotogravurePaper:ordinaryFace value:4 Russian kopekPrint run:3,000,000Score:25%\tAccuracy: Very HighBuy Now:2 sale offers from US$ 0.08",
"Dymkov's and Zagorsk toysSeries:Decorative ArtsCatalog codes:Mi:SU 2716, Sn:SU 2701, Yt:SU 2632, Sg:SU 2810, AFA:SU 2704Themes:Art | ToysIssued on:1963-01-31Size:30 x 42 mmFormat:StampEmission:CommemorativePerforation:comb 12 x 12½Printing:Offset lithographyFace value:4 Russian kopekPrint run:3,000,000Score:22%\tAccuracy: Very HighDescription:Designer: E. Komarov. Paper: ordinary.Buy Now:2 sale offers from US$ 0.11",
"Oposhnya potterySeries:Decorative ArtsCatalog codes:Mi:SU 2717, Sn:SU 2702, Yt:SU 2633, Sg:SU 2811, AFA:SU 2705Themes:ArtIssued on:1963-01-31Size:30 x 42 mmFormat:StampEmission:CommemorativePerforation:comb 12 x 12½Printing:Offset lithographyFace value:6 Russian kopekPrint run:3,000,000Score:24%\tAccuracy: Very HighDescription:Designer: E. Komarov. Paper: ordinary.Buy Now:3 sale offers from US$ 0.08",
"Embossing booksSeries:Decorative ArtsCatalog codes:Mi:SU 2718, Sn:SU 2703, Yt:SU 2634, Sg:SU 2812, AFA:SU 2706Themes:Art | BooksIssued on:1963-01-31Size:30 x 42 mmFormat:StampEmission:CommemorativePerforation:comb 12 x 12½Printing:Offset lithographyFace value:10 Russian kopekPrint run:3,000,000Score:27%\tAccuracy: Very HighDescription:Designer: E. Komarov. Paper: ordinary.Buy Now:2 sale offers from US$ 0.44",
"Decorative Arts.Series:Decorative ArtsCatalog codes:Mi:SU 2719, Sn:SU 2704, Yt:SU 2635, Sg:SU 2813, AFA:SU 2707Themes:ArtIssued on:1963-01-31Size:30 x 42 mmFormat:StampEmission:CommemorativePerforation:comb 12 x 12½Printing:Offset lithographyPaper:ordinaryFace value:12 Russian kopekPrint run:3,000,000Score:26%\tAccuracy: Very HighBuy Now:3 sale offers from US$ 0.16"
), NULL, NULL, NULL)
As you can see, it is a list of 4 objects. We can make a vector by unlisting them with unlist(). That's up to you.
The point is that each element comes from a table with his title like this one:
I would like to obtain the same table or dataframe from the text. I observed several points on how the infor is structured:
There are combined words with the difference of the Capital letter, which corresponds to the start of the value of the row and the end of the last word.
Some variables (like Catalog codes and Themes) are formed by different elements.
Occasionally, there might be some rows that can be unpresent in other elements. In the image above, the row Variants appears in that element but not in the rest.
I tried with some functions of the tidyverse environment, but this situation exceeds my capabilities.
It seems like your data stems from webscraping. I'd suggest checking out rvest::html_table() to try and get better formatted results. Otherwise its going to be very messy (i.e. regex).
Very, very messy example code:
untangle <- function(element) {
Title = gsub("^(.*)Series:.*", "\\1", element)
Series = gsub(".*Series:(.*)(Catalog codes:.*)", "\\1", element)
CatalogCodes = gsub(".*Catalog codes:(.*)(Variants|Themes.*)", "\\1", element)
return(data.frame(Title, Series, CatalogCodes, stringsAsFactors=FALSE))
}
for (e in unlist(example)) {
print(untangle(e))
}

What is the format of "{123, affdsf, 223, 22, dgbwa, 33333}"?

I have the following format, please advise how to convert it to a list in R?
"{1948, 2507, 2510, 7030, 7110, 9009, 00027, 00206, 00399, 00717, 00814, 00828, 00848, 00917, 01050, 01105, 01144, 02130, 02768, 03037, 03752, 03754, 04070, 04110, 05050, 05255, 05289, 05564, 05595, 06100, 06330, 06671, 07041, 07119, 07137, 07273, 07313, 07454, 07871, 08104, 08714, 08726, 08995, 09059, 09073, 09525, 09949, 09981, 10092, 10439, 10782, 11185, 11507, 11712, 11806, 11858, 11980, 12067, 12113, 12139, 12643, 13820, 14534, 15007, 15014, 15549, 15953, 16151, 16174, 16634, 16733, 16888, 17111, 17207, 17377, 17721, 17900, 18118, 18400, 18686, 18880, 19080, 19342, 19444, 19772, 19790, 19891, 20091, 20245, 20402, 20811, 21114, 21345, 21811, 21881, 22222, 22311, 22320, 22831, 22969, 23251, 23572, 23734, 23862, 23889, 24034, 24463, 25172, 25688, 26143, 26221, 26803, 26850, 26898, 27497, 28291, 28343, 29411, 29419, 30024, 30561, 30923, 31345, 31351, 31555, 31927, 32198, 32861, 33020, 33040, 33095, 33188, 33311, 33368, 33377, 33475, 33519, 33574, 33592, 34207, 34235, 34272, 34484, 34854, 34872, 34875, 34876, 34880, 35222, 35292, 35344, 36177, 36266, 37038, 37060, 37548, 37686, 37700, 38139, 39368, 39369, 39633, 40132, 40698, 40704, 40744, 40819, 41311, 41971, 42102, 42616, 43055, 43211, 43234, 43428, 43494, 43934, 44117, 44252, 44272, 44301, 44336, 44619, 44866, 44888, 45049, 45197, 45412, 45718, 46694, 46736, 47000, 48046, 48540, 49078, 49109, 49216, 49388, 49464, 50056, 50155, 50217, 50477, 50692, 51122, 51445, 51946, 52475, 52537, 52982, 54011, 54031, 54160, 54963, 55000, 55537, 56080, 56163, 56282, 56760, 56787, 57102, 57727, 57871, 58101, 58558, 58882, 59902, 60225, 60397, 60501, 60619, 60703, 60890, 61075, 61894, 61944, 62322, 62337, 62380, 62413, 62729, 62766, 62923, 63010, 63234, 63977, 64127, 65359, 65428, 65542, 65750, 65863, 66184, 66636, 66712, 67201, 67439, 67953, 68133, 68854, 69251, 69959, 70107, 70725, 70768, 71081, 71099, 71948, 72013, 72377, 72400, 72420, 72735, 73000, 73015, 73142, 73223, 73455, 73717, 74049, 74492, 74854, 74941, 75142, 75399, 75464, 75587, 75618, 75642, 75887, 76357, 76651, 77199, 77302, 77456, 77579, 77601, 77649, 77668, 77694, 77745, 78006, 78010, 78178, 78335, 78656, 78729, 78808, 78824, 78844, 78945, 79416, 79471, 79915, 80077, 80111, 80189, 80262, 80409, 80470, 80529, 80539, 80838, 81272, 81513, 81658, 81740, 81743, 81762, 81843, 82001, 82070, 82106, 82342, 82472, 82719, 83670, 84009, 84151, 84299, 84430, 84450, 84460, 84945, 86411, 86443, 86446, 86668, 86942, 87286, 87317, 87624, 87785, 88023, 88517, 88696, 88787, 88868, 88977, 89206, 90108, 90440, 90734, 90802, 90849, 90920, 90931, 91011, 91031, 91133, 91777, 91949, 92162, 92494, 93012, 93172, 94300, 94517, 95142, 95410, 95559, 95859, 96112, 97255, 97787, 97986, 98240, 98817, 99050, 99198, 99222, 99241, 99295, 99326, 99335, 99503, 99603, 99643, 99803, 99968}"
THIS IS NOT A DUPLICATE OF convert json to list in a vectorized way in R
IT'S COMPLETELY DIFFERENT BECAUSE THE FORMAT IS ABSOLUTELY DIFFERENT.
Try this one line code:
as.numeric(sapply(strsplit(substr(j,2,nchar(j)-1),split = ","),trimws))
[1] 1948 2507 2510 7030 7110 9009 27 206 399 717 814 828 848 917 1050 1105 1144
[18] 2130 2768 3037 3752 3754 4070 4110 5050 5255 5289 5564 5595 6100 6330 6671 7041 7119
[35] 7137 7273 7313 7454 7871 8104 8714 8726 8995 9059 9073 9525 9949 9981 10092 10439 10782
[52] 11185 11507 11712 11806 11858 11980 12067 12113 1213 ..
Your input:
j<-"{1948, 2507, 2510, 7030, 7110, 9009, 00027, 00206, 00399, 00717, 00814, 00828, 00848, 00917, 01050, 01105, 01144, 02130, 02768, 03037, 03752, 03754, 04070, 04110, 05050, 05255, 05289, 05564, 05595, 06100, 06330, 06671, 07041, 07119, 07137, 07273, 07313, 07454, 07871, 08104, 08714, 08726, 08995, 09059, 09073, 09525, 09949, 09981, 10092, 10439, 10782, 11185, 11507, 11712, 11806, 11858, 11980, 12067, 12113, 12139, 12643, 13820, 14534, 15007, 15014, 15549, 15953, 16151, 16174, 16634, 16733, 16888, 17111, 17207, 17377, 17721, 17900, 18118, 18400, 18686, 18880, 19080, 19342, 19444, 19772, 19790, 19891, 20091, 20245, 20402, 20811, 21114, 21345, 21811, 21881, 22222, 22311, 22320, 22831, 22969, 23251, 23572, 23734, 23862, 23889, 24034, 24463, 25172, 25688, 26143, 26221, 26803, 26850, 26898, 27497, 28291, 28343, 29411, 29419, 30024, 30561, 30923, 31345, 31351, 31555, 31927, 32198, 32861, 33020, 33040, 33095, 33188, 33311, 33368, 33377, 33475, 33519, 33574, 33592, 34207, 34235, 34272, 34484, 34854, 34872, 34875, 34876, 34880, 35222, 35292, 35344, 36177, 36266, 37038, 37060, 37548, 37686, 37700, 38139, 39368, 39369, 39633, 40132, 40698, 40704, 40744, 40819, 41311, 41971, 42102, 42616, 43055, 43211, 43234, 43428, 43494, 43934, 44117, 44252, 44272, 44301, 44336, 44619, 44866, 44888, 45049, 45197, 45412, 45718, 46694, 46736, 47000, 48046, 48540, 49078, 49109, 49216, 49388, 49464, 50056, 50155, 50217, 50477, 50692, 51122, 51445, 51946, 52475, 52537, 52982, 54011, 54031, 54160, 54963, 55000, 55537, 56080, 56163, 56282, 56760, 56787, 57102, 57727, 57871, 58101, 58558, 58882, 59902, 60225, 60397, 60501, 60619, 60703, 60890, 61075, 61894, 61944, 62322, 62337, 62380, 62413, 62729, 62766, 62923, 63010, 63234, 63977, 64127, 65359, 65428, 65542, 65750, 65863, 66184, 66636, 66712, 67201, 67439, 67953, 68133, 68854, 69251, 69959, 70107, 70725, 70768, 71081, 71099, 71948, 72013, 72377, 72400, 72420, 72735, 73000, 73015, 73142, 73223, 73455, 73717, 74049, 74492, 74854, 74941, 75142, 75399, 75464, 75587, 75618, 75642, 75887, 76357, 76651, 77199, 77302, 77456, 77579, 77601, 77649, 77668, 77694, 77745, 78006, 78010, 78178, 78335, 78656, 78729, 78808, 78824, 78844, 78945, 79416, 79471, 79915, 80077, 80111, 80189, 80262, 80409, 80470, 80529, 80539, 80838, 81272, 81513, 81658, 81740, 81743, 81762, 81843, 82001, 82070, 82106, 82342, 82472, 82719, 83670, 84009, 84151, 84299, 84430, 84450, 84460, 84945, 86411, 86443, 86446, 86668, 86942, 87286, 87317, 87624, 87785, 88023, 88517, 88696, 88787, 88868, 88977, 89206, 90108, 90440, 90734, 90802, 90849, 90920, 90931, 91011, 91031, 91133, 91777, 91949, 92162, 92494, 93012, 93172, 94300, 94517, 95142, 95410, 95559, 95859, 96112, 97255, 97787, 97986, 98240, 98817, 99050, 99198, 99222, 99241, 99295, 99326, 99335, 99503, 99603, 99643, 99803, 99968}"
This code removes first and last character of the string ("{" and "}" characters), splits values by "," and removes whitespaces using trimws. After that it moves the format to number.
If it happens your data actually is json, stick with the rjson package. This answer is assuming your data is not json (since rjson::fromjson throws an error on your data)
Try:
string <- "{1948, 2507, 2510, 7030, 7110, 9009, 00027, 00206, 00399, 00717, 00814, 00828, 00848, 00917, 01050, 01105, 01144, 02130, 02768, 03037, 03752, 03754, 04070, 04110, 05050, 05255, 05289, 05564, 05595, 06100, 06330, 06671, 07041, 07119, 07137, 07273, 07313, 07454, 07871, 08104, 08714, 08726, 08995, 09059, 09073, 09525, 09949, 09981, 10092, 10439, 10782, 11185, 11507, 11712, 11806, 11858, 11980, 12067, 12113, 12139, 12643, 13820, 14534, 15007, 15014, 15549, 15953, 16151, 16174, 16634, 16733, 16888, 17111, 17207, 17377, 17721, 17900, 18118, 18400, 18686, 18880, 19080, 19342, 19444, 19772, 19790, 19891, 20091, 20245, 20402, 20811, 21114, 21345, 21811, 21881, 22222, 22311, 22320, 22831, 22969, 23251, 23572, 23734, 23862, 23889, 24034, 24463, 25172, 25688, 26143, 26221, 26803, 26850, 26898, 27497, 28291, 28343, 29411, 29419, 30024, 30561, 30923, 31345, 31351, 31555, 31927, 32198, 32861, 33020, 33040, 33095, 33188, 33311, 33368, 33377, 33475, 33519, 33574, 33592, 34207, 34235, 34272, 34484, 34854, 34872, 34875, 34876, 34880, 35222, 35292, 35344, 36177, 36266, 37038, 37060, 37548, 37686, 37700, 38139, 39368, 39369, 39633, 40132, 40698, 40704, 40744, 40819, 41311, 41971, 42102, 42616, 43055, 43211, 43234, 43428, 43494, 43934, 44117, 44252, 44272, 44301, 44336, 44619, 44866, 44888, 45049, 45197, 45412, 45718, 46694, 46736, 47000, 48046, 48540, 49078, 49109, 49216, 49388, 49464, 50056, 50155, 50217, 50477, 50692, 51122, 51445, 51946, 52475, 52537, 52982, 54011, 54031, 54160, 54963, 55000, 55537, 56080, 56163, 56282, 56760, 56787, 57102, 57727, 57871, 58101, 58558, 58882, 59902, 60225, 60397, 60501, 60619, 60703, 60890, 61075, 61894, 61944, 62322, 62337, 62380, 62413, 62729, 62766, 62923, 63010, 63234, 63977, 64127, 65359, 65428, 65542, 65750, 65863, 66184, 66636, 66712, 67201, 67439, 67953, 68133, 68854, 69251, 69959, 70107, 70725, 70768, 71081, 71099, 71948, 72013, 72377, 72400, 72420, 72735, 73000, 73015, 73142, 73223, 73455, 73717, 74049, 74492, 74854, 74941, 75142, 75399, 75464, 75587, 75618, 75642, 75887, 76357, 76651, 77199, 77302, 77456, 77579, 77601, 77649, 77668, 77694, 77745, 78006, 78010, 78178, 78335, 78656, 78729, 78808, 78824, 78844, 78945, 79416, 79471, 79915, 80077, 80111, 80189, 80262, 80409, 80470, 80529, 80539, 80838, 81272, 81513, 81658, 81740, 81743, 81762, 81843, 82001, 82070, 82106, 82342, 82472, 82719, 83670, 84009, 84151, 84299, 84430, 84450, 84460, 84945, 86411, 86443, 86446, 86668, 86942, 87286, 87317, 87624, 87785, 88023, 88517, 88696, 88787, 88868, 88977, 89206, 90108, 90440, 90734, 90802, 90849, 90920, 90931, 91011, 91031, 91133, 91777, 91949, 92162, 92494, 93012, 93172, 94300, 94517, 95142, 95410, 95559, 95859, 96112, 97255, 97787, 97986, 98240, 98817, 99050, 99198, 99222, 99241, 99295, 99326, 99335, 99503, 99603, 99643, 99803, 99968}"
string as list of characters:
string_as_list_char <- as.list(strsplit(gsub('\\{|\\}', '', string), ", "))[[1]]
or converted to numeric:
string_as_list_num <- as.list(as.numeric(strsplit(gsub('\\{|\\}', '', string), ", ")[[1]]))

Is Guarantee Type attribute required for OTA_HotelResRQ

I have a hotel returning no Guarantee Types such as G, GDPST, etc... This is the first I've seen of this and due to the way the code was written it defaults to the first in an array if the property does not return one. In this case "G". When I perform an OTA_HotelResRQ I get the following error:
INVLD PROP REQUIRES A DEPOSIT FOR THIS DATE
In this scenario should I omit the Type attribute (as specified here http://webservices.sabre.com/drc/servicedoc/OTA_HotelResLLSRQ_v2.2.0_Design.xml) from the Guarantee node?
Here is the HotelPropertyDescriptionLLSRQ response:
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header><eb:MessageHeader xmlns:eb="http://www.ebxml.org/namespaces/messageHeader" eb:version="1.0" soap-env:mustUnderstand="1"><eb:From><eb:PartyId eb:type="URI">Sabre</eb:PartyId></eb:From><eb:To><eb:PartyId eb:type="URI">REMOVED</eb:PartyId></eb:To><eb:CPAId>REMOVED</eb:CPAId><eb:ConversationId>MyConversationID</eb:ConversationId><eb:Service>HotelPropertyDescriptionLLSRQ</eb:Service><eb:Action>HotelPropertyDescriptionLLSRS</eb:Action><eb:MessageData><eb:MessageId>471353037366360202</eb:MessageId><eb:Timestamp>2016-09-14T01:02:16</eb:Timestamp><eb:RefToMessageId>1422291197</eb:RefToMessageId></eb:MessageData></eb:MessageHeader><wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext"><wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">Shared/IDL:IceSess\/SessMgr:1\.0.IDL/Common/!ICESMS\/RESC!ICESMSLB\/RES.LB!-3361979970612623474!1331042!0</wsse:BinarySecurityToken></wsse:Security></soap-env:Header><soap-env:Body><HotelPropertyDescriptionRS xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2011/XMLSchema" xmlns:xsi="http://www.w3.org/2011/XMLSchema-instance" xmlns:stl="http://services.sabre.com/STL/v01" Version="2.0.1">
<stl:ApplicationResults status="Complete">
<stl:Success timeStamp="2016-09-13T20:02:16-05:00"/>
</stl:ApplicationResults>
<RoomStay>
<BasicPropertyInfo ChainCode="UZ" GeoConfidenceLevel="1" HotelCityCode="TSM" HotelCode="0012498" HotelName="HOTEL LA FONDA DE TAOS" Latitude="36.406883" Longitude="-105.57462" NumFloors="3" RPH="001">
<Address>
<AddressLine>108 SOUTH PLAZA</AddressLine>
<AddressLine>TAOS NM 87571</AddressLine>
<CountryCode>US</CountryCode>
</Address>
<Award Provider="NTM3 CROWN"/>
<ContactNumbers>
<ContactNumber Fax="1-57-57588508" Phone="1-57-57582211"/>
</ContactNumbers>
<DirectConnect Ind="true">
<AdditionalData Ind="false"/>
<CurrencyConverted Ind="true"/>
<DC_AvailParticipant Ind="true"/>
<DC_SellParticipant Ind="true"/>
<RequestFail Ind="false"/>
<UnAvail Ind="false"/>
</DirectConnect>
<IndexData>
<Index CountryState="NM" DistanceDirection="0NW" LocationCode="A" Point="TAOS SKI VALLEY" TransportationCode="O"/>
<Index DistanceDirection="16W" LocationCode="C" Point="AXX" TransportationCode="O"/>
<Index DistanceDirection="66NE" LocationCode="R" Point="LAM" TransportationCode="O"/>
<Index DistanceDirection="73W" LocationCode="R" Point="RTN" TransportationCode="O"/>
<Index DistanceDirection="7SE" LocationCode="A" Point="TSM" TransportationCode="O"/>
<Index DistanceDirection="72NE" LocationCode="R" Point="SAF" TransportationCode="O"/>
</IndexData>
<PropertyOptionInfo>
<ADA_Accessible Ind="false"/>
<AdultsOnly Ind="false"/>
<AirportShuttle Ind="false"/>
<BeachFront Ind="false"/>
<Breakfast Ind="false"/>
<BusinessCenter Ind="true"/>
<BusinessReady Ind="false"/>
<CarRentalCounter>Y</CarRentalCounter>
<Conventions Ind="false"/>
<Dataport Ind="false"/>
<Dining Ind="true"/>
<DryClean Ind="false"/>
<EcoCertified Ind="false"/>
<ExecutiveFloors Ind="false"/>
<FamilyPlan Ind="true"/>
<FitnessCenter Ind="false"/>
<FreeLocalCalls Ind="false"/>
<FreeParking Ind="true"/>
<FreeShuttle Ind="false"/>
<FreeWifiInMeetingRooms Ind="false"/>
<FreeWifiInPublicSpaces Ind="false"/>
<FreeWifiInRooms Ind="false"/>
<FullServiceSpa Ind="false"/>
<GameFacilities Ind="true"/>
<Golf Ind="false"/>
<GovtSafetyFire Ind="false"/>
<HighSpeedInternet Ind="true"/>
<HypoallergenicRooms Ind="false"/>
<IndoorPool Ind="true"/>
<IndPetRestriction Ind="false"/>
<InRoomCoffeeTea Ind="false"/>
<InRoomMiniBar Ind="false"/>
<InRoomRefrigerator Ind="false"/>
<InRoomSafe Ind="false"/>
<InteriorDoorways Ind="false"/>
<Jacuzzi Ind="false"/>
<KidsFacilities Ind="false"/>
<KitchenFacilities Ind="false"/>
<MealService Ind="false"/>
<MeetingFacilities Ind="true"/>
<NoAdultTV Ind="false"/>
<NonSmoking Ind="true"/>
<OutdoorPool Ind="false"/>
<Parking>Y-COMPLIMENTARY</Parking>
<Pets Ind="false"/>
<Pool Ind="true"/>
<PublicTransportationAdjacent Ind="false"/>
<Recreation Ind="false"/>
<RestrictedRoomAccess Ind="false"/>
<RoomService Ind="false"/>
<RoomService24Hours Ind="false"/>
<RoomsWithBalcony Ind="false"/>
<SkiInOutProperty Ind="false"/>
<SmokeFree Ind="false"/>
<SmokingRoomsAvail Ind="false"/>
<Tennis Ind="false"/>
<WaterPurificationSystem Ind="false"/>
<Wheelchair Ind="false"/>
</PropertyOptionInfo>
<PropertyTypeInfo>
<AllInclusive Ind="false"/>
<Apartments Ind="false"/>
<BedBreakfast Ind="false"/>
<Castle Ind="false"/>
<Conventions Ind="false"/>
<Economy Ind="false"/>
<ExtendedStay Ind="false"/>
<Farm Ind="false"/>
<First Ind="false"/>
<Luxury Ind="false"/>
<Moderate Ind="true"/>
<Motel Ind="false"/>
<Resort Ind="true"/>
<Suites Ind="false"/>
</PropertyTypeInfo>
<SpecialOffers Ind="false"/>
<Taxes>
<Text>8.18 PCT</Text>
<Text>5.00 PCT</Text>
</Taxes>
<VendorMessages>
<Attractions>
<Text>PRIMARY CITY -</Text>
<Text>SAF - TAOS</Text>
<Text>65 MI S</Text>
<Text>RIO GRANDE GORGE 12 MI</Text>
<Text>TAOS PUEBLO 3 MI</Text>
<Text>TAOS SKI VALLEY 18 MI</Text>
</Attractions>
<Awards>
<Text>3 STARS</Text>
</Awards>
<Cancellation>
<Text>-27FEB11 - END -</Text>
<Text>CANCEL BY 7 DAYS PRIOR TO 0000 HOURS ON DAY OF ARRIVAL,</Text>
<Text>LOCAL HOTEL TIME TO AVOID A CANCELLATION PENALTY</Text>
<Text>CANCELLATION POLICY TEXT -</Text>
<Text>CANCEL BY 10 00 7 DAYS BEFORE ARRIVAL TO AVOID PENALTY</Text>
<Text>OF 1 NIGHT.</Text>
</Cancellation>
<Deposit>
<Text>-27FEB11 - END MON-SUN</Text>
<Text>1 NIGHT DEPOSIT REQUIRED FOR ALL RESERVATIONS</Text>
<Text>DEPOSIT OF FIRST NIGHT STAY</Text>
<Text>ACCEPTED FORMS OF DEPOSIT-</Text>
<Text>CREDIT CARD</Text>
</Deposit>
<Description>
<Text>- HOTEL</Text>
<Text>RESORT</Text>
<Text>YEAR BUILT - 1890 YEAR REMODELED - 2003</Text>
<Text>ADDITIONAL PROPERTY DESCRIPTION -</Text>
<Text>HISTORICAL BOUTIQUE HOTEL LOCATED ON THE FAMOUS TAOS</Text>
<Text>PLAZA. AUTHENTIC SOUTHWESTERN AMBIENCE WITH MODERN</Text>
<Text>AMENITIES.</Text>
</Description>
<Dining>
<Text>ADDITIONAL MEAL PLAN DESCRIPTION -</Text>
<Text>WALKING TO BENT STREET CAFE/GRAHAMS GRILL/DOC</Text>
<Text>MARTINS/ALLEY CANTINA/ESKES BREWPUB/MICHAELS KITCHEN</Text>
<Text>RESTAURANT</Text>
<Text>RESTAURANT DESCRIPTION -</Text>
<Text>WALKING TO BENT STREET CAFE/GRAHAMS GRILL/DOC</Text>
<Text>MARTINS/ALLEY CANTINA/ESKES BREWPUB/MICHAELS KITCHEN</Text>
</Dining>
<Directions>
<Text>DIRECTION TO THE PROPERTY FROM AIRPORT SAF -</Text>
<Text>65 MI NORTH</Text>
</Directions>
<Facilities>
<Text>ON-SITE FACILITIES -</Text>
<Text>GENERAL FACILITIES -</Text>
<Text>BANQUET FACILITY CASINO</Text>
<Text>COFFEE SHOP ELEVATORS</Text>
<Text>INDOOR POOL MEETING ROOM</Text>
<Text>NON-SMOKING ROOMS RESTAURANT</Text>
<Text>SOLARIUM SPA</Text>
<Text>HIGH SPEED WIRELESS</Text>
<Text>FREE HIGH SPEED INTERNET CONNECTION</Text>
<Text>CHARGEABLE FACILITIES -</Text>
<Text>BUSINESS CENTER</Text>
<Text>PARKING FACILITIES -</Text>
<Text>FREE PARKING</Text>
<Text>PUBLIC AREA FACILITIES -</Text>
<Text>HIGH SPEED INTERNET ACCESS</Text>
<Text>ADDITIONAL ONSITE FACILITIES -</Text>
<Text>120 AC 120 DC 24-HOUR FRONT DESK 24-HOUR SECURITY 3</Text>
<Text>BEDROOM SUITE ACCESSIBLE PARKING ACCOMMODATIONS WITH</Text>
<Text>BALCONY ADJOINING ROOMS ADJOINING ROOMS ADJOINING</Text>
<Text>ROOMS OR SUITES AIR CONDITIONED GUEST ROOMS AIR</Text>
<Text>CONDITIONING AIRPORT - ALBUQUERQUE SUNPORT 140 MILES</Text>
<Text>AIRPORT SHUTTLE - 50.0 ALARM CLOCK ALL NEWS CHANNEL</Text>
<Text>ALL PETS - PETS NOT ALLOWED ALL PUBLIC AREAS</Text>
<Text>NON-SMOKING ALL ROOMS NON-SMOKING AMERICANS WITH</Text>
<Text>DISABILITIES ACT ADA COMPLIANCE ANIMAL WATCHING</Text>
<Text>ANTIQUE SHOPPING ARCHEOLOGICAL ARCHERY AUDIO VISUAL</Text>
<Text>EQUIPMENT AV EQUIP AVAILABLE SUITES AWAY FROM THE</Text>
<Text>ELEVATOR BACK OF BUILDING BACKGROUND MUSIC BAGGAGE</Text>
<Text>HOLD BALCONY/LANAI/TERRACE BASKETBALL COURT BATHROOM</Text>
<Text>AMENITIES BATHROOM VANITY IN GUEST ROOMS FOR DISABLED</Text>
<Text>PERSON HEIGHT BATHTUB BATHTUB/SHOWER COMBINATION BED</Text>
<Text>TYPES OF WHEELCHAIR ACCESSIBLE ROOMS BEDROOM</Text>
<Text>WHEELCHAIR ACCESS BICYCLE BICYCLE RENTALS BIKE TRAIL</Text>
<Text>BILINGUAL STAFF BIRD WATCHING BLACKBOARD BLACKBOARD</Text>
<Text>WITH ERASER CHALK BOARDING PASS PRINT-OUT AVAILABLE</Text>
<Text>BOATING BOOKSTORE BOTTLED WATER BOUTIQUE BRIDGE</Text>
<Text>BUS BUS PARKING BUSINESS LOCATION CABLE TELEVISION</Text>
<Text>CALLING CARD CALLS CALLING CARD CALLS CAMPING</Text>
<Text>CANOEING CAR CARDIOVASCULAR EXERCISE CATERED</Text>
<Text>BREAKFAST CATERED DINNER CATERED LUNCH CATERING</Text>
<Text>CATHEDRAL CEILING FAN CEMETERY CERTIFIED WEDDING</Text>
<Text>PLANNER CHAIR PROVIDED WITH DESK CHARM HOTEL</Text>
<Text>CHILDREN NOT ALLOWED</Text>
</Facilities>
<Guarantee>
<Text>-27FEB11 - END MON-SUN</Text>
<Text>SEE DEPOSIT POLICY</Text>
<Text>ACCEPTED FORMS OF GUARANTEE-</Text>
<Text>CREDIT CARD</Text>
<Text>ACCEPTED FORMS OF PAYMENT-</Text>
<Text>CREDIT CARD</Text>
</Guarantee>
<Location>
<Text>PRIMARY PROPERTY LOCATION - CITY</Text>
<Text>SAF AIRPORT 65 MI N</Text>
<Text>RESORT</Text>
</Location>
<MiscServices>
<Text>EMAIL - INFO LAFONDATAOS.COM</Text>
<Text>TAXES AND SURCHARGES -</Text>
<Text>TAX- 8.18 PCT</Text>
<Text>LODGING TAX- 5.00 PCT</Text>
<Text>ADDITIONAL CURRENCY AND TAX INFORMATION -</Text>
<Text>8.1875 PCT VAT AND 5 PCT LODGERS TAX EXCLUDED</Text>
<Text>-27FEB11 - END MON-SUN</Text>
<Text>MIN STAY - 1</Text>
</MiscServices>
<Policies>
<Text>EXTRA CHILD - 0.00 USD ROLLAWAY FOR CHILD - 0.00 USD</Text>
<Text>CHILDREN STAY FREE -</Text>
<Text>CHILDREN WELCOME - NO CHILDREN ALLOWED UNDER AGE 8</Text>
<Text>NO PETS ALLOWED -</Text>
<Text>ALL PETS - PETS NOT ALLOWED</Text>
<Text>PROPERTY OFFERS COMMISSION - RATE OF COMMISSION</Text>
<Text>10 PCT</Text>
<Text>ADDITIONAL COMMISSION PROGRAMS INFORMATION -</Text>
<Text>10 PCT</Text>
</Policies>
<Recreation>
<Text>ON-SITE RECREATION -</Text>
<Text>BICYCLING WATER SPORTS</Text>
</Recreation>
<Rooms>
<Text>ROOM AMENITIES FOR ALL ROOMS -</Text>
<Text>ROOM AMENITIES -</Text>
<Text>AIR CONDITIONING / AM/FM ALARM CLOCK / BATH TUB /</Text>
<Text>BATHROOM AMENITIES / CABLE/SATELLITE TV / DIRECT DIAL</Text>
<Text>TELEPHONE / FREE LOCAL TELEPHONE CALLS / HAIRDRYER /</Text>
<Text>IRON/IRONING BOARD / NO SMOKING ROOM / PRIVATE BATH OR</Text>
<Text>SHOWER / RADIO / SHOWER / SMOKE DETECTOR / TELEPHONE/SAFE/</Text>
<Text>TELEVISION</Text>
<Text>TECHNOLOGY -</Text>
<Text>DATAPORT / HIGH SPEED INTERNET ACCESS / VOICE MAIL</Text>
<Text>S1K-</Text>
<Text>MAX OCCUPANCY - 4</Text>
<Text>MAX NBR OF ROLLAWAYS - 0</Text>
<Text>ROOM DESCRIPTION -</Text>
<Text>NEWLY AND RICHLY REMODELED/ DELUXE TWO ROOM SUITE WITH</Text>
<Text>1 KING BED. NEWLY AND RICHLY REMODELED/ DELUXE TWO ROOM</Text>
<Text>SUITE WITH 1 KING BED/ SOME WITH SLEEPER SOFA/ MOST</Text>
<Text>WITH GAS FIREPLACE/ REFRIGERATOR/ WET BAR/ LUXURIOUS</Text>
<Text>LINENS AND HEADBOARD/ A/C CEILING FAN/ ARMOIRE WITH</Text>
<Text>COLOR CABLE TV/ DSL CONNECTIVITY/ TELEPHONE WITH VOICE</Text>
<Text>MAIL/ ALARM CLOCK/ RADIO/ SMOKE DETECTOR/ HAND-TILED</Text>
<Text>BATHROOM WITH TUB AND SHOWER/ BATHROOM AMENITIES/</Text>
<Text>IRON/BOARD/ AND HAIRDRYER. 120AC/ 120DC. DAILY MAID</Text>
<Text>SERVICE/ FREE PARKING AND ADMITTANCE TO DH LAWRENCE</Text>
<Text>FORBIDDEN ART COLLECTION. ALL ROOMS ARE NON-SMOKING.</Text>
<Text>PHR -</Text>
<Text>MAX OCCUPANCY - 4</Text>
<Text>MAX NBR OF ROLLAWAYS - 0</Text>
<Text>ROOM DESCRIPTION -</Text>
<Text>UNIQUE/ LUXURIOUS 1200 SQ. FT. PLAZA PENTHOUSE/ ONE</Text>
<Text>BEDROOM WITH KING BED/ QUEEN SLEEPER SOFA. UNIQUE/</Text>
<Text>LUXURIOUS 1200 SQ. FT. PLAZA PENTHOUSE/ ONE BEDROOM</Text>
<Text>WITH KING BED/ QUEEN SLEEPER SOFA/ HAND-TILED FULL</Text>
<Text>BATH/ LAUNDRY/ FULLY EQUIPPED KITCHEN/ DINING ROOM/</Text>
<Text>SUNKEN LIVING ROOM WITH GAS KIVA FIREPLACE/ OUTDOOR</Text>
<Text>DECKL/ COLOR CABLE TV/ DESK TOP COMPUTER/ DSL</Text>
<Text>CONNECTIVITY/ CEILING FANS/ TELEPHONE WITH VOICE MAIL/</Text>
<Text>ALARM CLOCK/ RADIO/ BATH AMENITIES/ HAIR DRYER/ IRON</Text>
<Text>AND IRONING BOARD/ DAILY MAID SERVICE/ FREE PARKING AND</Text>
<Text>ADMITTANCE TO DH LAWRENCE FORBIDDEN ART COLLECTION.</Text>
<Text>TWO/ THREE/ AND FOUR BEDROOM CAPABILITY. CALL FOR</Text>
<Text>PRICES AND AVAILABILITY. THIS HOTEL IS A NON-SMOKING</Text>
<Text>PROPERTY AND CANNOT ACCOMMODATE PETS. THIS SUITE IS</Text>
<Text>NON-SMOKING.</Text>
<Text>A1Q -</Text>
<Text>MAX OCCUPANCY -</Text>
</Rooms>
<Safety>
<Text>PROPERTY SAFETY AND SECURITY -</Text>
<Text>SECURITY AVAILABLE 24 HOURS</Text>
<Text>24-HOUR SECURITY</Text>
</Safety>
<Services>
<Text>ON-SITE GENERAL SERVICES -</Text>
<Text>BAGGAGE HOLD BICYCLE RENTAL</Text>
<Text>FRONT DESK 24 HRS MULTILINGUAL STAFF</Text>
<Text>SAFE DEPOSIT BOX WAKE-UP CALLS</Text>
<Text>ON-SITE CHARGEABLE SERVICES -</Text>
<Text>CAR RENTAL</Text>
<Text>BUSINESS SERVICES -</Text>
<Text>BUSINESS CENTER</Text>
</Services>
<Transportation>
<Text>TRANSPORTATION FROM PRIMARY AIRPORT TO PROPERTY -</Text>
<Text>RENTAL CAR</Text>
<Text>TRANSPORTATION FROM CITY CENTER TO PROPERTY -</Text>
<Text>RENTAL CAR</Text>
</Transportation>
</VendorMessages>
</BasicPropertyInfo>
<Guarantee>
<DepositsAccepted>
<PaymentCard Code="AX" Type="AMERICAN EXPRESS"/>
<PaymentCard Code="CA" Type="MASTERCARD"/>
<PaymentCard Code="DS" Type="DISCOVER CARD"/>
<PaymentCard Code="VI" Type="VISA"/>
</DepositsAccepted>
<GuaranteesAccepted>
<PaymentCard Code="AX" Type="AMERICAN EXPRESS"/>
<PaymentCard Code="CA" Type="MASTERCARD"/>
<PaymentCard Code="DS" Type="DISCOVER CARD"/>
<PaymentCard Code="VI" Type="VISA"/>
</GuaranteesAccepted>
</Guarantee>
<RoomRates>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" HRD_RequiredForSell="false" IATA_CharacteristicIdentification="N1QRAC" IATA_ProductIdentification="PUBLISHED RATE" LowInventoryThreshold="false" RPH="001" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="03" Option="D"/>
<Commission NonCommission="false">10.00 PERCENT COMMISSION</Commission>
<Text>STANDARD QUEEN</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="159.00" ChangeIndicator="false" CurrencyCode="USD" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0" NumAdults="0" NumCribs="0">
<Charges AdultRollAway="10.00" Crib="0.00" ExtraPerson="10.00"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="359.94">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="41.94"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" HRD_RequiredForSell="false" IATA_CharacteristicIdentification="N1KRAC" IATA_ProductIdentification="PUBLISHED RATE" LowInventoryThreshold="false" RPH="002" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="03" Option="D"/>
<Commission NonCommission="false">10.00 PERCENT COMMISSION</Commission>
<Text>STANDARD KING</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="169.00" ChangeIndicator="false" CurrencyCode="USD" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0" NumAdults="0" NumCribs="0">
<Charges AdultRollAway="10.00" Crib="0.00" ExtraPerson="10.00"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="382.58">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="44.58"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" HRD_RequiredForSell="false" IATA_CharacteristicIdentification="S1KRAC" IATA_ProductIdentification="PUBLISHED RATE" LowInventoryThreshold="false" RPH="003" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="03" Option="D"/>
<Commission NonCommission="false">10.00 PERCENT COMMISSION</Commission>
<Text>KING SUITE</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="199.00" ChangeIndicator="false" CurrencyCode="USD" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0" NumAdults="0" NumCribs="0">
<Charges AdultRollAway="10.00" Crib="0.00" ExtraPerson="10.00"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="450.48">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="52.48"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
<RoomRate DirectConnect="false" GuaranteeSurchargeRequired="D" GuaranteedRateProgram="false" HRD_RequiredForSell="false" IATA_CharacteristicIdentification="APTRAC" IATA_ProductIdentification="PUBLISHED RATE" LowInventoryThreshold="false" RPH="004" RateChangeInd="false" RateConversionInd="false" SpecialOffer="false">
<AdditionalInfo>
<CancelPolicy Numeric="03" Option="D"/>
<Commission NonCommission="false">10.00 PERCENT COMMISSION</Commission>
<Text>PLAZA PENTHOUSE</Text>
</AdditionalInfo>
<Rates>
<Rate Amount="499.00" ChangeIndicator="false" CurrencyCode="USD" HRD_RequiredForSell="false" PackageIndicator="false" RateConversionInd="false" ReturnOfRateInd="false" RoomOnRequest="false">
<AdditionalGuestAmounts>
<AdditionalGuestAmount MaxExtraPersonsAllowed="0" NumAdults="0" NumCribs="0">
<Charges AdultRollAway="10.00" Crib="0.00" ExtraPerson="10.00"/>
</AdditionalGuestAmount>
</AdditionalGuestAmounts>
<HotelTotalPricing Amount="1129.62">
<Disclaimer>INCLUDES TAXES AND SURCHARGES</Disclaimer>
<TotalTaxes Amount="131.62"/>
</HotelTotalPricing>
</Rate>
</Rates>
</RoomRate>
</RoomRates>
<TimeSpan Duration="0005" End="2016-10-16" Start="2016-10-14"/>
</RoomStay>
</HotelPropertyDescriptionRS></soap-env:Body></soap-env:Envelope>
REQUEST:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<MessageHeader xmlns="http://www.ebxml.org/namespaces/messageHeader">
<From>
<PartyId type="urn:x12.org:IO5:01"><!-- APP SOURCE REMOVED BY OP --></PartyId>
</From>
<To>
<PartyId type="urn:x12.org:IO5:01">Sabre</PartyId>
</To>
<CPAId><!-- IPCC REMOVED BY OP --></CPAId>
<ConversationId>MyConversationID</ConversationId>
<Service type="sabreXML">HotelPropertyDescriptionLLSRQ</Service>
<Action>HotelPropertyDescriptionLLSRQ</Action>
<MessageData>
<MessageId>1422291197</MessageId>
<Timestamp>2015-01-26T09:53:17-07:00</Timestamp>
<TimeToLive>2015-01-26T10:53:17-07:00</TimeToLive>
</MessageData>
</MessageHeader>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility">
<!-- TOKEN REMOVED BY OP -->
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<HotelPropertyDescriptionRQ xmlns="http://webservices.sabre.com/sabreXML/2011/10" xmlns:xs="http://www.w3.org/2001/XMLSchema" Version="2.0.1">
<AvailRequestSegment>
<GuestCounts Count="2" />
<HotelSearchCriteria>
<Criterion>
<HotelRef HotelCode="0012498" />
</Criterion>
</HotelSearchCriteria>
<TimeSpan Start="10-14" End="10-16" />
</AvailRequestSegment>
</HotelPropertyDescriptionRQ>
</soapenv:Body>
</soapenv:Envelope>
Edit: added request, per user request. Items I removed for security have been indicated with comments.
It is strange indeed not having that returned as usual.
The answer to your question is: No. Actually that room rate requires a deposit not a guarantee, and it is safe to say that most hotels require one of the 2, so not sending that is probably not a good idea.
In this case, you can use GDPST as deposit, since it says that it accepts credit cards, although that is in free text.
Now, as you can see in the first rate returned, inside the RoomRate element, you have: GuaranteeSurchargeRequired="D". The values for that attribute are D for Deposit and G for guarantee. I'm not sure if there's something for when there is no guarantee needed, haven't seen any, but it is likely a different element or the element is not returned.
In order to know the values for guarantee you can use in the OTA_HotelRes, I recommend you to check the following format finder link:
https://formatfinder.sabre.com/Content/Hotels/FourEasyStepstoSellaHotel/0HSellHotel.aspx?ItemID=597F73406BFE49EFB5DF100C096ABFB0

Alfresco Activiti task assignment back to initiator

I have created a 3 levels activiti workflow in alfresco where initiator initiates the tack & it goes to level1 approver. If level1 approves the task, it goes to level2 approver. If level2 approves the task, it goes to level 2 & soon. It also has timers which assigns the task to next level after expiration.
Similarly, if level 3 rejects the task, it goes to level2. If level 2 rejects, it goes to level1 but if level1 rejects the task, it is not going back to initiator.Except, it is working fine. XML is as below.
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="alfrescoThreeLevelFullWF" name="Alfresco Three Level Full Workflow">
<startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="wf:submitGroupReviewTask" activiti:initiator="${initiator.properties.userName}"></startEvent>
<userTask id="level1ApprovalTask" name="Level 1 Approval" activiti:candidateGroups="GROUP_Group1" activiti:formKey="wf:activitiReviewTask">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<boundaryEvent id="level1ApprovalTimer" name="Level 1 Approval Timer" cancelActivity="true" attachedToRef="level1ApprovalTask">
<timerEventDefinition>
<timeDuration>PT1M</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<exclusiveGateway id="gotLevel1Approval" name="Level 1 Approval Check"></exclusiveGateway>
<userTask id="level2ApprovalTask" name="Level 2 Approval" activiti:candidateGroups="GROUP_Group2" activiti:formKey="wf:activitiReviewTask">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<boundaryEvent id="level2ApprovalTimer" name="Level 2 Approval Timer" cancelActivity="true" attachedToRef="level2ApprovalTask">
<timerEventDefinition>
<timeDuration>PT1M</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<exclusiveGateway id="gotLevel2Approval" name="Level 2 Approval Check"></exclusiveGateway>
<userTask id="level3ApprovalTask" name="Level 3 Approval" activiti:candidateGroups="GROUP_Group3" activiti:formKey="wf:activitiReviewTask">
<extensionElements>
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener">
<activiti:field name="script">
<activiti:string>execution.setVariable('wf_reviewOutcome', task.getVariable('wf_reviewOutcome'));</activiti:string>
</activiti:field>
</activiti:taskListener>
</extensionElements>
</userTask>
<exclusiveGateway id="gotLevel3Approval" name="Level3 Approval Check"></exclusiveGateway>
<endEvent id="endevent1" name="End"></endEvent>
<sequenceFlow id="flow1" name="" sourceRef="alfrescoStartevent1" targetRef="level1ApprovalTask"></sequenceFlow>
<sequenceFlow id="flow2" name="" sourceRef="level1ApprovalTask" targetRef="gotLevel1Approval"></sequenceFlow>
<sequenceFlow id="level1Approved" name="Level 1 Approved" sourceRef="gotLevel1Approval" targetRef="level2ApprovalTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Approve'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow4" name="" sourceRef="level2ApprovalTask" targetRef="gotLevel2Approval"></sequenceFlow>
<sequenceFlow id="level2Approved" name="Level2 Approved" sourceRef="gotLevel2Approval" targetRef="level3ApprovalTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Approve'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow6" name="" sourceRef="level3ApprovalTask" targetRef="gotLevel3Approval"></sequenceFlow>
<sequenceFlow id="level3Approved" name="Level 3 Approved" sourceRef="gotLevel3Approval" targetRef="endevent1">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Approve'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="level1Unapproved" name="Level 1 Unapproved" sourceRef="gotLevel1Approval" targetRef="alfrescoStartevent1">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Reject'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="level2Unapproved" name="Level 2 Unapproved" sourceRef="gotLevel2Approval" targetRef="level1ApprovalTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Reject'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="level3Unapproved" name="Level 3 unapproved" sourceRef="gotLevel3Approval" targetRef="level2ApprovalTask">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${wf_reviewOutcome == 'Reject'}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="flow8" name="" sourceRef="level1ApprovalTimer" targetRef="level2ApprovalTask"></sequenceFlow>
<sequenceFlow id="flow9" name="" sourceRef="level2ApprovalTimer" targetRef="level3ApprovalTask"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_alfrescoThreeLevelFullWF">
<bpmndi:BPMNPlane bpmnElement="alfrescoThreeLevelFullWF" id="BPMNPlane_alfrescoThreeLevelFullWF">
<bpmndi:BPMNShape bpmnElement="alfrescoStartevent1" id="BPMNShape_alfrescoStartevent1">
<omgdc:Bounds height="35" width="35" x="20" y="200"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="level1ApprovalTask" id="BPMNShape_level1ApprovalTask">
<omgdc:Bounds height="55" width="105" x="110" y="190"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="level1ApprovalTimer" id="BPMNShape_level1ApprovalTimer">
<omgdc:Bounds height="30" width="30" x="150" y="230"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="gotLevel1Approval" id="BPMNShape_gotLevel1Approval">
<omgdc:Bounds height="40" width="40" x="252" y="197"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="level2ApprovalTask" id="BPMNShape_level2ApprovalTask">
<omgdc:Bounds height="55" width="105" x="370" y="190"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="level2ApprovalTimer" id="BPMNShape_level2ApprovalTimer">
<omgdc:Bounds height="30" width="30" x="440" y="230"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="gotLevel2Approval" id="BPMNShape_gotLevel2Approval">
<omgdc:Bounds height="40" width="40" x="540" y="197"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="level3ApprovalTask" id="BPMNShape_level3ApprovalTask">
<omgdc:Bounds height="55" width="105" x="640" y="190"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="gotLevel3Approval" id="BPMNShape_gotLevel3Approval">
<omgdc:Bounds height="40" width="40" x="810" y="197"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
<omgdc:Bounds height="35" width="35" x="920" y="200"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
<omgdi:waypoint x="55" y="217"></omgdi:waypoint>
<omgdi:waypoint x="110" y="217"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
<omgdi:waypoint x="215" y="217"></omgdi:waypoint>
<omgdi:waypoint x="252" y="217"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="level1Approved" id="BPMNEdge_level1Approved">
<omgdi:waypoint x="292" y="217"></omgdi:waypoint>
<omgdi:waypoint x="370" y="217"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="14" width="100" x="-40" y="7"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
<omgdi:waypoint x="475" y="217"></omgdi:waypoint>
<omgdi:waypoint x="540" y="217"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="level2Approved" id="BPMNEdge_level2Approved">
<omgdi:waypoint x="580" y="217"></omgdi:waypoint>
<omgdi:waypoint x="640" y="217"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="14" width="100" x="-40" y="7"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
<omgdi:waypoint x="745" y="217"></omgdi:waypoint>
<omgdi:waypoint x="810" y="217"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="level3Approved" id="BPMNEdge_level3Approved">
<omgdi:waypoint x="850" y="217"></omgdi:waypoint>
<omgdi:waypoint x="920" y="217"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="14" width="100" x="-45" y="7"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="level1Unapproved" id="BPMNEdge_level1Unapproved">
<omgdi:waypoint x="272" y="237"></omgdi:waypoint>
<omgdi:waypoint x="272" y="339"></omgdi:waypoint>
<omgdi:waypoint x="155" y="339"></omgdi:waypoint>
<omgdi:waypoint x="37" y="339"></omgdi:waypoint>
<omgdi:waypoint x="37" y="235"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="42" width="100" x="-335" y="-94"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="level2Unapproved" id="BPMNEdge_level2Unapproved">
<omgdi:waypoint x="560" y="197"></omgdi:waypoint>
<omgdi:waypoint x="559" y="102"></omgdi:waypoint>
<omgdi:waypoint x="422" y="102"></omgdi:waypoint>
<omgdi:waypoint x="162" y="102"></omgdi:waypoint>
<omgdi:waypoint x="162" y="190"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="42" width="100" x="-53" y="-12"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="level3Unapproved" id="BPMNEdge_level3Unapproved">
<omgdi:waypoint x="830" y="237"></omgdi:waypoint>
<omgdi:waypoint x="830" y="342"></omgdi:waypoint>
<omgdi:waypoint x="692" y="342"></omgdi:waypoint>
<omgdi:waypoint x="422" y="342"></omgdi:waypoint>
<omgdi:waypoint x="422" y="245"></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds height="42" width="100" x="-54" y="-32"></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
<omgdi:waypoint x="165" y="260"></omgdi:waypoint>
<omgdi:waypoint x="164" y="278"></omgdi:waypoint>
<omgdi:waypoint x="422" y="278"></omgdi:waypoint>
<omgdi:waypoint x="422" y="245"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
<omgdi:waypoint x="455" y="260"></omgdi:waypoint>
<omgdi:waypoint x="454" y="299"></omgdi:waypoint>
<omgdi:waypoint x="692" y="299"></omgdi:waypoint>
<omgdi:waypoint x="692" y="245"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
Do anyone has any idea on how can i reassign this task back to initiator?
You need to have the approval process setup as a sub process. If level 1 rejects the task you set a process variable (i.e. approved = false) and simply exit. Now, setup a simple conditional on exit of the approval sub process to check if the activity was approved or not. If not, handle (i.e. back to initiator) otherwise, move on with the process.
There are other ways of handling, i.e. throw an exception which sends you back to the initiator, but the above will be the easiest to read and hence maintain in the future.
The other nice thing about setting this up as a sub process is that you can reuse the logic in other processes that need this style of approval.
Hope this helps.

R forecast function not picking up seasonality

I am having trouble picking up the seasonality the seems to be implied in the data. I think (though its just a guess that its using additive and not multiplicative seasonality). I am using the forecast function and thought it would automatically pick what I need based on a lecture from Dr. Hyndman. The following snipet of code plots the chart and I would have expected the forecast to be higher then it is. Am I missing a model parameter or something? Any help would be appreciated.
sw<-c(2280, 1754, 1667, 1359, 1285, 1379, 2166, 1053, 1076, 1149, 1277, 1577, 1639, 1719, 1592, 2306, 3075, 2897, 1875, 1966, 2927, 3528, 2948, 2890, 3947, 3913, 3885, 4148, 5293, 5752, 6001, 7719, 5512, 6782, 6320, 6425, 6406, 7237, 8655, 9269, 12447, 13470, 13469, 13949, 17753, 17653, 14531, 14496, 13643, 12652, 12665, 10629, 8962, 8198, 6833, 5027, 4407, 4449, 4399, 5896, 6589, 3786, 4386, 4847, 5597, 5407, 4800, 7803, 9255, 10423, 5523, 8121, 6944, 8434, 9847, 9292, 9794, 10195, 10124, 11310, 12245, 12798, 14611, 15402, 13532, 16154, 15101, 14755, 17139, 16475, 19935, 19980, 25173, 28568, 27839, 28991, 27073, 29615, 25849, 27910, 27067, 21303, 20544, 15188, 13706, 9277, 10815, 7228, 4608, 4409, 9866, 8471, 8223, 6445, 6641, 6833, 11421, 8945, 8127, 10380, 12005, 13272, 9431, 12144, 14934, 14052, 11712, 14888, 15824, 17275, 18067, 19839, 21192, 22763, 22976, 23721, 22681, 20131, 19965, 20539, 19517, 22022, 23076, 30574, 40247, 43111, 39577, 40724, 44982, 44388, 46372, 43153, 36821, 32258, 31256, 27153, 23180, 18252, 16381, 13220, 12500, 10727, 9636, 8892, 8644, 9482, 9170, 10937, 12299, 15781, 11477, 16524, 16752, 18072, 14776, 13388, 18056, 19815, 21263, 22046, 26415, 24247, 25403, 30058, 26331, 32533, 31891, 35973, 27558, 24554, 25692, 25955, 24284, 24930, 28354, 34840, 40055, 42099, 42768, 48279, 50086, 56466, 42244, 51451, 44583, 39091, 33391, 29452, 25533)
swts <- ts(sw, frequency=52, start=c(2006,30))
swfc <- forecast(swts,h=52)
plot(swfc)
Did you data have multiple seasonal periods? If so you could check the tbats function.
Anyway, your seasonal period is greater than 12, so forecast is using a stl decomposition to adjust your seasonal data. Maybe you wanna check ?stlf for more info on what parameters you can change, or try a BoxCox transformation:
lambda <- BoxCox.lambda(sw)
swfc <- forecast(swts,h=52, lambda = lambda, robust = TRUE)
plot(swfc)

Resources