Skip to content

Commit

Permalink
Synced loan.json with specs. (#46)
Browse files Browse the repository at this point in the history
- PledgeDocuments changes
- Get Additional Pledged Documents Request
- Get Additional Pledged Documents Response

Co-authored-by: dhruvthakker <dhruvthakker@gmail.com>
  • Loading branch information
DhruvThakker and dhruvthakker authored Jul 4, 2024
1 parent 2ddf7ce commit 6399ca0
Showing 1 changed file with 202 additions and 2 deletions.
204 changes: 202 additions & 2 deletions apis/journey/loan.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,191 @@
}
}
},
"/v4.0.0alpha/loanApplications/getAdditionalPledgedDocumentsRequest": {
"post": {
"tags": [
"Offers"
],
"summary": "Get Additional Pledged Documents Request",
"description": "This API will be invoked by the Lender to pull any additional documents available. The hasAdditionalDocuments flag in the pledgedDocuments object of the loan application will be set to true if there are any additional documents available.",
"operationId": "GetAdditionalPledgedDocumentsRequest",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"metadata",
"productData",
"loanApplicationId"
],
"properties": {
"metadata": {
"$ref": "#/components/schemas/MetaData"
},
"productData": {
"$ref": "#/components/schemas/ProductData"
},
"loanApplicationId": {
"type": "string",
"description": "UUID for the loan application.",
"examples": [
"e8cc6822bd4bbb4eb1b9e1b4996fbff8acb1e1b4"
]
},
"requestedDocumentPagination": {
"type": "object",
"properties": {
"pageNumber": {
"type": "integer",
"description": "Page number to be fetched.",
"examples": [
1
]
},
"pageSize": {
"type": "integer",
"description": "Number of documents to be fetched per page.",
"examples": [
10
]
}
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "Acknowledgement of Request Received",
"headers": {
"X-Rate-Limit": {
"description": "calls per hour allowed by the user",
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ack"
}
}
}
}
}
}
},
"/v4.0.0alpha/loanApplications/getAdditionalPledgedDocumentsResponse": {
"post": {
"tags": [
"Offers"
],
"summary": "Get Additional Pledged Documents Response",
"description": "This API will be invoked by the Loan Agent to push additional documents available againgst the loan application in a paginated manner as requested by the Lender.",
"operationId": "GetAdditionalPledgedDocumentsResponse",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"metadata",
"productData",
"loanApplicationId"
],
"properties": {
"metadata": {
"$ref": "#/components/schemas/MetaData"
},
"productData": {
"$ref": "#/components/schemas/ProductData"
},
"loanApplicationId": {
"type": "string",
"description": "UUID for the loan application.",
"examples": [
"e8cc6822bd4bbb4eb1b9e1b4996fbff8acb1e1b4"
]
},
"requestedDocumentPagination": {
"type": "object",
"properties": {
"pageNumber": {
"type": "integer",
"description": "Page number to be fetched.",
"examples": [
1
]
},
"pageSize": {
"type": "integer",
"description": "Number of documents to be fetched per page.",
"examples": [
10
]
},
"totalDocumentCount": {
"type": "integer",
"description": "Total number of documents available.",
"examples": [
100
]
}
}
},
"pledgedDocuments": {
"type": "object",
"required": [
"totalDocumentCount",
"hasAdditionalDocuments",
"documents"
],
"totalDocumentCount": {
"type": "integer"
},
"hasAdditionalDocuments": {
"type": "boolean"
},
"documents": {
"type": "array",
"items": {
"$ref": "./Document.yaml"
}
}
}
}
}
}
}
},
"responses": {
"200": {
"description": "Acknowledgement of Request Received",
"headers": {
"X-Rate-Limit": {
"description": "calls per hour allowed by the user",
"schema": {
"type": "integer",
"format": "int32"
}
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Ack"
}
}
}
}
}
}
},
"/v4.0.0alpha/consent/consentHandleRequest": {
"post": {
"tags": [
Expand Down Expand Up @@ -5139,6 +5324,12 @@
"data"
],
"properties": {
"id": {
"type": "string",
"examples": [
"docref12"
]
},
"source": {
"type": "string",
"default": "",
Expand All @@ -5148,7 +5339,8 @@
"FIP",
"FSR",
"FIU",
"USER"
"USER",
"OTHER"
]
},
"sourceIdentifier": {
Expand All @@ -5164,7 +5356,9 @@
"DOC",
"IMAGE",
"CSV",
"XML"
"XML",
"PDF",
"URL"
]
},
"reference": {
Expand Down Expand Up @@ -6324,6 +6518,12 @@
"e8cc6822bd4bbb4eb1b9e1b4996fbff8acb"
]
},
"isMappedtoDocument": {
"type": "boolean"
},
"documentId": {
"type": "string"
},
"validTill": {
"type": "string",
"format": "date"
Expand Down

0 comments on commit 6399ca0

Please sign in to comment.