Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concierge web should show Rentals United hosts from api #576

Open
keang opened this issue Nov 29, 2016 · 2 comments
Open

Concierge web should show Rentals United hosts from api #576

keang opened this issue Nov 29, 2016 · 2 comments

Comments

@keang
Copy link
Contributor

keang commented Nov 29, 2016

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>[email protected]</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>[email protected]</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
Copy link
Contributor

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
Copy link
Contributor Author

keang commented Nov 29, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants