@lendi/integrations-transform 1.2.3 → 1.2.4
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.
|
@@ -22,7 +22,7 @@ export declare function transformIncome(payload: IncomePayload, applicantId?: st
|
|
|
22
22
|
* @param frequency Frequency
|
|
23
23
|
* @param ownership Owners.
|
|
24
24
|
*/
|
|
25
|
-
export declare function createRentalIncome(amount: number, frequency: Frequency, ownership
|
|
25
|
+
export declare function createRentalIncome(amount: number, frequency: Frequency, ownership?: Ownership[]): RentalIncome[];
|
|
26
26
|
export interface SelfEmploymentIncomeMapping {
|
|
27
27
|
year: string;
|
|
28
28
|
companyProfitBeforeTax: string;
|
|
@@ -194,6 +194,7 @@ exports.transformIncome = transformIncome;
|
|
|
194
194
|
* @param ownership Owners.
|
|
195
195
|
*/
|
|
196
196
|
function createRentalIncome(amount, frequency, ownership) {
|
|
197
|
+
if (ownership === void 0) { ownership = []; }
|
|
197
198
|
if (frequency === public_income_1.Frequency.Quarterly) {
|
|
198
199
|
amount = Math.ceil(amount / 3);
|
|
199
200
|
frequency = public_income_1.Frequency.Monthly;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/integrations-transform",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
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",
|