src/modules/partner/dtos/partner.dto.ts
Properties |
constructor(partner: PartnerEntity)
|
||||||
Defined in src/modules/partner/dtos/partner.dto.ts:18
|
||||||
Parameters :
|
Readonly Optional address |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/modules/partner/dtos/partner.dto.ts:18
|
Readonly Optional contact |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/modules/partner/dtos/partner.dto.ts:15
|
Readonly Optional email |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/modules/partner/dtos/partner.dto.ts:12
|
Readonly name |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/modules/partner/dtos/partner.dto.ts:9
|
Readonly uuid |
Type : string
|
Inherited from
AbstractDto
|
Defined in
AbstractDto:4
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { AbstractDto } from 'common/dtos';
import { PartnerUserDto } from './partner-user.dto'
import { PartnerEntity } from 'modules/partner/entities';
export class PartnerDto extends AbstractDto {
@ApiProperty()
readonly name: string;
@ApiProperty()
readonly email?: string;
@ApiProperty()
readonly contact?: string;
@ApiProperty()
readonly address?: string;
constructor(partner: PartnerEntity) {
super(partner);
this.name = partner.name;
this.email = partner.email;
this.contact = partner.contact;
this.address = partner.address;
}
}