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

Provide API to present complete chain that a particular offer belongs to #1202

Closed
cbryanreapit opened this issue May 11, 2020 · 0 comments
Closed
Assignees
Labels
back-end Relates to back end issues feature New feature or request

Comments

@cbryanreapit
Copy link
Contributor

cbryanreapit commented May 11, 2020

Overview

This endpoint will be responsible for presenting the complete conveyancing chain that a specific offer belongs to

Location

GET /conveyancing/{id}/chain (protected: yes)

Request

Parameters

pageSize - int
pageNumber - int

Response

Success

200 OK


***** DRAFT *****
{
  "_embedded": [
    {
      "id": "RPT123456",
      "created": "2019-01-25T15:44:28.0000000Z",
      "modified": "2019-01-25T15:44:28.0000000Z",
       "offerId": "RPT123456",
      "propertyAddress": "15 High Street, Exampletown, WS12 1JJ",
      "propertyId": "RPT190001",
      "vendor": "Mr David Smith",
      "vendorId": "RPT190001",
      "vendorSolicitorId": "FOT201192",
      "buyer": "Mrs Jess Brown",
      "buyerId": "FOT192212",
      "buyerSolicitorId": "RPT19300011",
      "externalAgent": "Agency Estates",
      "externalAgentId": "",
      "upwardChainExists": false,
      "upwardChainId": "",
      "downwardExists": true,
      "downwardChainId": "OXF123412",
      "fixturesAndFittingsCompleted": "",
      "deedRequested": "2019-01-25",
      "deedRecieved": "2019-01-25",
      "enquiriesSent": "2019-01-25",
      "enquiriesAnswered": "2019-01-25",
      "searchesPaid": "2019-01-25",
      "searchesApplied": "2019-01-25",
      "searchesReceived": "2019-01-25",
      "contractSent": "2019-01-25",
      "contractReceived": "2019-01-25",
      "contractApproved": "2019-01-25",
      "contractVendorSigned": "2019-01-25",
      "contractBuyerSigned": "2019-01-25",
      "mortgageRequired": "yes/no/unknown",
      "mortgageLoanPercentage": 40,
      "mortgageSubmitted": "2019-01-25",
      "mortgageOfferRecieved": "2019-01-25",
      "mortgageLenderId": "OXF2131231",
      "mortgageBrokerId": "",
      "mortgateSurveyDate": "2019-01-25",
      "mortgageSurveyorId": "SSD121231",
      "additionalSurveyRequired": "yes/no/unknown",
      "additionalSurveyDate": "2019-01-25",
      "additionalSurveyorId": "SDS123131",
      "exchangedVendor": "2019-01-25",
      "exchangedBuyer": "2019-01-25",
      "completion": "2019-01-25"
    }
  ],
  "pageNumber": 1,
  "pageSize": 1,
  "pageCount": 1,
  "totalCount": 25,
  "_links": {
    "self": {
      "href": "/conveyancing/?PageNumber=1&PageSize=1"
    },
    "first": {
      "href": "/conveyancing/?PageNumber=1&PageSize=1"
    },
    "next": {
      "href": "/conveyancing/?PageNumber=2&PageSize=1"
    },
    "last": {
      "href": "/conveyancing/?PageNumber=25&PageSize=1"
    }
  }
}

Failure

400 Bad Request
401 Authorised
403 Forbidden
404 Not Found

Note

  • The results should be ordered in the order the chain presents them (top down)
  • Default page size 50 to avoid paging but retain familiar contract
@cbryanreapit cbryanreapit added feature New feature or request back-end Relates to back end issues labels May 11, 2020
@cbryanreapit cbryanreapit added this to the Sales progression API milestone May 11, 2020
@cbryanreapit cbryanreapit added this to Backlog in Front end Kanban May 11, 2020
@cbryanreapit cbryanreapit moved this from Backlog to Ready for dev in Front end Kanban May 12, 2020
@RWilcox-Reapit RWilcox-Reapit moved this from Ready for dev to In progress in Front end Kanban May 26, 2020
@RWilcox-Reapit RWilcox-Reapit self-assigned this May 26, 2020
@RWilcox-Reapit RWilcox-Reapit moved this from In progress to Review in progress in Front end Kanban May 26, 2020
Front end Kanban automation moved this from Review in progress to Done May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Relates to back end issues feature New feature or request
Projects
No open projects
Development

No branches or pull requests

2 participants