@lendi/integrations-transform 1.6.7-beta.2 → 1.6.7-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,10 +28,7 @@ function transformApplicant(applicant) {
28
28
  dependants: 'dependants',
29
29
  email: `${application_paths_1.paths.PersonApplicant}.Contact.EmailAddress[0].@Email`,
30
30
  firstName: `${application_paths_1.paths.PersonApplicant}.PersonName.@FirstName`,
31
- gender: `${application_paths_1.paths.PersonApplicant}.@Gender`,
32
31
  id: `${application_paths_1.paths.PersonApplicant}.@UniqueID`,
33
- isFirstHomeBuyer: `${application_paths_1.paths.PersonApplicant}.@FirstHomeBuyer`,
34
- isPrimaryApplicant: `${application_paths_1.paths.PersonApplicant}.@PrimaryApplicant`,
35
32
  lastName: `${application_paths_1.paths.PersonApplicant}.PersonName.@Surname`,
36
33
  maritalDetails: `${application_paths_1.paths.PersonApplicant}.MaritalStatusDetails.@x_Spouse`,
37
34
  maritalStatus: `${application_paths_1.paths.PersonApplicant}.@MaritalStatus`,
@@ -50,6 +47,9 @@ function transformApplicant(applicant) {
50
47
  applicant.applicantType = public_applicant_1.ApplicantType.Borrower;
51
48
  }
52
49
  (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonName}.@NameTitle`, lixi_internal_request_1.NameTitleList.Other);
50
+ (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@PrimaryApplicant`, (0, exports.booleanMapping)(applicant.isPrimaryApplicant));
51
+ (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@FirstHomeBuyer`, (0, exports.booleanMapping)(applicant.isFirstHomeBuyer));
52
+ (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@Gender`, applicant_gender_1.applicantGenderMapping[applicant.gender]);
53
53
  if (applicant.applicantType === public_applicant_1.ApplicantType.Guarantor) {
54
54
  const mappedGuarantorRelationship = applicant.guarantorRelationshipToBorrower
55
55
  ? guarantor_relationship_type_1.guarantorRelationshipTypeMappings[applicant.guarantorRelationshipToBorrower.type]
@@ -85,15 +85,6 @@ function transformApplicant(applicant) {
85
85
  case 'citizenship':
86
86
  (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@Citizenship`, enum_mappings_1.countryCodeMapping[value]);
87
87
  break;
88
- case 'gender':
89
- (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@Gender`, applicant_gender_1.applicantGenderMapping[value]);
90
- break;
91
- case 'isFirstHomeBuyer':
92
- (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@FirstHomeBuyer`, (0, exports.booleanMapping)(value));
93
- break;
94
- case 'isPrimaryApplicant':
95
- (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.PersonApplicant}.@PrimaryApplicant`, (0, exports.booleanMapping)(value));
96
- break;
97
88
  case 'title':
98
89
  (0, lodash_1.set)(partialApplication, applicantMapping[key], enum_mappings_1.titleMapping[value]);
99
90
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.6.7-beta.2",
3
+ "version": "1.6.7-beta.3",
4
4
  "description": "Library for kafka event data transforming",
5
5
  "author": "Integrations <integrations@lendi.com.au>",
6
6
  "homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",