Skip to content

Commit

Permalink
Merge pull request #1483 from sriranjan-s/Dev-2.0
Browse files Browse the repository at this point in the history
Added digilocker changes
  • Loading branch information
sriranjan-s authored Oct 22, 2024
2 parents 8eafc81 + 5127151 commit ae5e2d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const DigiLockerService = {
method: "POST",
auth: true,
userService: true,
data:{pdfUrl:data?.TokenReq?.pdfUrl,redirectUrl:""}
data:{ "Transaction":{pdfUrl:data?.TokenReq?.pdfUrl,redirectUrl:"",fileStoreId:data?.TokenReq?.fileStoreId,module:data?.TokenReq?.module,tenantId:data?.TokenReq?.tenantId}}
})
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,14 @@ const ApplicationDetails = () => {
window.open(fileStore[newResponse.filestoreIds[0]], "_blank");
}
};
const fetchDigiLockerDocuments = async (file) => {
const fetchDigiLockerDocuments = async (file,id) => {

let TokenReq = {
pdfUrl:file,
redirectUrl:""
tenantId: "pg.citya",
module:"TL",
redirectUrl:"",
"fileStoreId":id
}
const res1 = await Digit.DigiLockerService.pdfUrl({TokenReq})
console.log("res1res1res1res1res1",res1)
Expand All @@ -255,7 +258,7 @@ const ApplicationDetails = () => {
let res = await Digit.TLService.TLsearch({ tenantId: applicationDetails?.tenantId, filters: { applicationNumber:applicationDetails?.applicationData?.applicationNumber } });
const TLcertificatefile = await Digit.PaymentService.generatePdf(tenantId, { Licenses: res?.Licenses }, "tlcertificate");
const receiptFile = await Digit.PaymentService.printReciept(tenantId, { fileStoreIds: TLcertificatefile.filestoreIds[0] });
fetchDigiLockerDocuments(receiptFile[TLcertificatefile.filestoreIds[0]])
fetchDigiLockerDocuments(receiptFile[TLcertificatefile.filestoreIds[0]],TLcertificatefile.filestoreIds[0])
//window.open(receiptFile[TLcertificatefile.filestoreIds[0]], "_blank");
setIsDisplayDownloadMenu(false)
}
Expand Down

0 comments on commit ae5e2d4

Please sign in to comment.