-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(src) add process to manager home loans
- Loading branch information
Victor Pino
committed
Sep 6, 2024
1 parent
1cec5c8
commit f582531
Showing
18 changed files
with
508 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,56 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { | ||
IsNotEmpty, | ||
IsBoolean, | ||
IsString, | ||
IsNumber, | ||
IsDate, | ||
ArrayNotEmpty, | ||
} from 'class-validator'; | ||
import { IsBoolean, IsString, IsNumber, ArrayNotEmpty } from 'class-validator'; | ||
|
||
export class CreateHomeLoanDto { | ||
@ApiProperty() | ||
@IsString() | ||
partnerUuid: string; | ||
propertyUsage: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
typeHouse: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
address: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
state: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
city: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
town: string; | ||
|
||
@ApiProperty() | ||
@IsNumber() | ||
priceHome: number; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
paymentInitial: string; | ||
|
||
@ApiProperty() | ||
@IsNumber() | ||
monthlyIncome: number; | ||
|
||
@ApiProperty() | ||
@IsNumber() | ||
monthlyDebt: number; | ||
|
||
@ApiProperty() | ||
@ArrayNotEmpty() | ||
assets: string[]; | ||
|
||
@ApiProperty() | ||
@IsNumber() | ||
assetsAmount: number; | ||
|
||
@ApiProperty() | ||
@IsBoolean() | ||
tc: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsString } from 'class-validator'; | ||
|
||
export class UpdateAddressHomeDto { | ||
@ApiProperty() | ||
@IsString() | ||
address: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
state: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
city: string; | ||
|
||
@ApiProperty() | ||
@IsString() | ||
town: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { PartialType } from '@nestjs/swagger'; | ||
import { UpdateAssetsDto } from 'src/modules/personal-loan/dtos/update.assets.dto'; | ||
|
||
export class UpdateHomeAssetsDto extends PartialType(UpdateAssetsDto) {} |
6 changes: 6 additions & 0 deletions
6
src/modules/home-loan/dtos/update.home-mounthly-details.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { PartialType } from '@nestjs/swagger'; | ||
import { LoanDetailsMounthlyDto } from 'src/modules/personal-loan/dtos/loan-details-mounthly.dto'; | ||
|
||
export class UpdateHomeLoanMounthlyDetailsDto extends PartialType( | ||
LoanDetailsMounthlyDto, | ||
) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNumber } from 'class-validator'; | ||
|
||
export class UpdatePaymentInitialDto { | ||
@ApiProperty() | ||
@IsNumber() | ||
paymentInitial: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsNumber } from 'class-validator'; | ||
|
||
export class UpdatePriceHomeDto { | ||
@ApiProperty() | ||
@IsNumber() | ||
priceHome: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsString } from 'class-validator'; | ||
|
||
export class PropertyUsageDto { | ||
@ApiProperty() | ||
@IsString() | ||
propertyUsage: string; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/modules/home-loan/dtos/update.terms-and-conditions.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsBoolean } from 'class-validator'; | ||
|
||
export class UpdateTermsAndConditionsDto { | ||
@ApiProperty({ | ||
description: 'Indicates whether the terms and conditions are accepted', | ||
example: true, | ||
required: false, | ||
}) | ||
@IsBoolean() | ||
tc: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { IsString } from 'class-validator'; | ||
|
||
export class TypeHomeDto { | ||
@ApiProperty() | ||
@IsString() | ||
typeHome: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export enum StatusHomeLoan { | ||
PROPERTY_USAGE = 'PROPERTY_USAGE', | ||
TYPE_HOME = 'TYPE_HOME', | ||
ADDRESS = 'ADDRESS', | ||
PRICE = 'PRICE', | ||
PAYMENT_INITIAL = 'PAYMENT_INITIAL', | ||
MOUNTLY_FINANCE = 'MOUNTLY_FINANCE', | ||
ASSETS = 'ASSETS', | ||
TC = 'TC', | ||
CREATED = 'CREATED', | ||
PENDING = 'PENDING', | ||
IN_PROCESS = 'IN_PROCESS', | ||
FAILED = 'FAILED', | ||
COMPLETED = 'COMPLETED', | ||
} |
Oops, something went wrong.