roomorama / concierge

Roomorama supplier integrations - webhook providers and property synchronisation
https://concierge-web.roomorama.com
3 stars 0 forks source link

Concierge web should show Rentals United hosts from api #576

Open keang opened 7 years ago

keang commented 7 years ago

Now that we have the host creation page, Bridge host service team is logging in to Concierge web admin to create hosts as new host identifiers are given to them (only for multiple host suppliers)

However for RentalsUnited, they are not given this list of "waiting to connect host", but we need to help the admin team to get it by calling the ListAllOwner endpoint: Request:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -H "Postman-Token: 783c7d4e-1684-b7ee-982b-b3ce3358821b" -d '<Pull_ListAllOwners_RQ>
  <Authentication>
    <UserName>rentalsunited@bridgerentals.com</UserName>
    <Password>bridge101</Password>
  </Authentication>
</Pull_ListAllOwners_RQ>' "http://rm.rentalsunited.com/api/Handler.ashx"

Response:

<Pull_ListAllOwners_RS>
    <Status ID="0">Success</Status>
    <Owners>
        <Owner OwnerID="426288">
            <FirstName>Villa-Finder</FirstName>
            <SurName>Team</SurName>
            <CompanyName />
            <Email>bookings@villa-finder.com</Email>
            <Phone>+62082247405813</Phone>
        </Owner>
    </Owners>
</Pull_ListAllOwners_RS>

The feature

  1. From the RU page, https://concierge-web.roomorama.com/suppliers/8, admin clicks a button "Show available hosts"
  2. Opens a new tab which shows a table listing all owners from the RU listAllOwner api, showing fields: OwnerId, FirstName, LastName, CompanyName(if any), Email, and Phone
sharipov-ru commented 7 years ago

So this feature is rentals united - specific only, we need a conditional to show a button which checks if it's RU page or not.

Which way would be more appropriate: checking by supplier_id (which is different on staging and production, but we may hardcode it depending on environment), or maybe by supplier name?

keang commented 7 years ago

hmm instead of having a conditional on the page, maybe we just have a new item on the side bar that says something general, like "Supplier Query"

in the general "Supplier Query" page, there's a button to the RentalsUnited owners page.

We can add access to more suppliers later if we need to.. what do you think?