Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
476 B
3
Indexable
Never
const claimCovers = mydata.covers
  .filter(cover => cover.coverageRole == 10)
  .map(cover => ({
    role: {
      code: cover.coverageRole,
      name: "string"
    },
    coverNumber: {
      code: cover.cover.number,
      name: "string"
    },
    internalCoverNo: cover.internalCoverNo,
    benefitRequestType: 2,
    coverCommencementDate: cover.coverLayers[0].layerEffectiveDate,
    finalAmount: 0,
    originalAmount: 0,
    sumAssured: cover.sumAssuredAmount
  }));
Leave a Comment