Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
1.2 kB
3
Indexable
Never
  } else if (values.type === OCRType.PASSPORT) {
        ekyc = {
          idEng: values.passport[0].value_eng,
          typeEng: values.passport[1].value_eng,
          nameEng: values.passport[2].value_eng,
          gender: values.passport[3].value_eng,
          birthdayEng: values.passport[4].value_eng,
          expireDateEng: values.passport[5].value_eng,
          religionEng: values.passport[6].value_eng,
        };
      } else if (values.type === OCRType.DRIVING_LICENSE) {
        ekyc = {
          idNo: values.driver_license[0].value,
          idEng: values.driver_license[0].value_eng,
          name: values.driver_license[1].value,
          nameEng: values.driver_license[1].value_eng,
          nrc: values.driver_license[2].value,
          nrcEng: values.driver_license[2].value_eng,
          birthday: values.driver_license[3].value,
          birthdayEng: values.driver_license[3].value_eng,
          blood: values.driver_license[4].value,
          bloodEng: values.driver_license[4].value_eng,
          issueDate: values.driver_license[5].value,
          issueDateEng: values.driver_license[5].value_eng,
        };
      }
Leave a Comment