@lendi/integrations-transform 1.9.6-beta.3 → 1.9.7

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.
@@ -27,23 +27,23 @@ function transformApplication(opportunity, options = {}) {
27
27
  };
28
28
  (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetail}.@UniqueID`, `${opportunity.id}-${uniqueIdSuffix}`);
29
29
  const { hasOptedInRateLock = false, isFastRefi = false, preferredRepayment = {} } = opportunity;
30
- const { frequency, method, accountName, bsb, accountNumber } = preferredRepayment;
30
+ const { method, accountName, bsb, accountNumber, frequency } = preferredRepayment;
31
31
  const preferredRepaymentMethod = enum_mappings_1.preferredRepaymentMethodMapping[method];
32
32
  if (preferredRepaymentMethod) {
33
- (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetails}.ProposedRepayment.Method`, preferredRepaymentMethod);
33
+ (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetail}.ProposedRepayment.Method`, preferredRepaymentMethod);
34
34
  }
35
35
  const preferredRepaymentFrequency = enum_mappings_1.preferredRepaymentFrequencyMapping[frequency];
36
36
  if (preferredRepaymentFrequency) {
37
- (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetails}.ProposedRepayment.RegularRepayment[0].Frequency`, preferredRepaymentFrequency);
37
+ (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetail}.ProposedRepayment.RegularRepayment[0].Frequency`, preferredRepaymentFrequency);
38
38
  }
39
39
  if (accountName) {
40
- (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetails}.ProposedRepayment.FromAccount.financialAccountType.AccountName`, accountName);
40
+ (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetail}.ProposedRepayment.FromAccount.financialAccountType.AccountName`, accountName);
41
41
  }
42
42
  if (bsb) {
43
- (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetails}.ProposedRepayment.FromAccount.financialAccountType.BSB`, bsb);
43
+ (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetail}.ProposedRepayment.FromAccount.financialAccountType.BSB`, bsb);
44
44
  }
45
45
  if (accountNumber) {
46
- (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetails}.ProposedRepayment.FromAccount.financialAccountType.AccountNumber`, accountNumber);
46
+ (0, lodash_1.set)(partialApplication, `${application_paths_2.paths.LoanDetail}.ProposedRepayment.FromAccount.financialAccountType.AccountNumber`, accountNumber);
47
47
  }
48
48
  (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.Instructions}.@UniqueID`, `${opportunity.id}-stage`);
49
49
  (0, lodash_1.set)(partialApplication, `${application_paths_1.paths.Instructions}.@Name`, lixi_internal_request_1.EventNameApplicationInstructionsList.ApplicationReceived);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.9.6-beta.3",
3
+ "version": "1.9.7",
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",
package/CHANGELOG.md DELETED
@@ -1,55 +0,0 @@
1
- # 1.9.0
2
-
3
- Changes
4
- * Bump `@lendi/integrations-credit-protocol` to `v1.19.0` which uses the `@lendi/config-integrations-integrations` only
5
-
6
- # 1.8.6
7
-
8
- Changes
9
- * Update `merge-application` to merge the company applicant directors
10
-
11
- # 1.8.5
12
-
13
- Changes
14
- * Update `transfrom-funding-position` to set pledge amount on application if it exists in property
15
-
16
- # 1.8.4
17
-
18
- Changes
19
- * Update `applicant-event` to include SIMPLE_OR_BARE trust type and update mapping in transform
20
-
21
- # 1.8.3
22
-
23
- Changes
24
- * Update `@lendi/transform-events` to support company applicant mappings
25
-
26
- # 1.8.2
27
-
28
- Changes
29
- * Use `@lendi/integrations-protocol@2.7.4`
30
-
31
- # 1.8.1
32
-
33
- Changes
34
- * Update `transformApplicationWorkflow` to support `applicationStatus`
35
- * Use `@lendi/integrations-protocol@2.7.2`
36
-
37
- # 1.7.3
38
-
39
- Fix
40
- * Remove some unnecessary `additionalProperties` from event schema to void AJV warning msg
41
-
42
-
43
- # 1.7.0
44
-
45
- BREAKING CHANGES
46
- * Change to use `@lendi/integration-protocols@2.7.0` for better Identification fields support
47
-
48
-
49
- # 1.6.0
50
-
51
- BREAKING CHANGES
52
- * Change to module `commonjs` to make it compatible with existing codebase
53
-
54
- Changes
55
- * Upgrade `@lendi/integrations-protocol` to `v2.6.4`