src/order/http/response/order.response.ts
Properties |
creatorId |
Type : string | null
|
Decorators :
@ApiPropertyOptional()
|
Defined in src/order/http/response/order.response.ts:41
|
facilityId |
Type : string | null
|
Decorators :
@ApiPropertyOptional()
|
Defined in src/order/http/response/order.response.ts:45
|
invoiceNumber |
Type : string | null
|
Decorators :
@ApiPropertyOptional()
|
Defined in src/order/http/response/order.response.ts:32
|
packingListNumber |
Type : string | null
|
Decorators :
@ApiPropertyOptional()
|
Defined in src/order/http/response/order.response.ts:37
|
productDescription |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/order/http/response/order.response.ts:22
|
purchasedAt |
Type : Date | number | null
|
Decorators :
@ApiPropertyOptional({type: Number, example: 1662704035})
|
Defined in src/order/http/response/order.response.ts:17
|
purchaseOrderNumber |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/order/http/response/order.response.ts:9
|
quantity |
Type : string
|
Decorators :
@ApiProperty()
|
Defined in src/order/http/response/order.response.ts:27
|
supplierId |
Type : string | null
|
Decorators :
@ApiPropertyOptional()
|
Defined in src/order/http/response/order.response.ts:49
|
createdAt |
Type : number
|
Decorators :
@ApiProperty()
|
Inherited from
BaseEntityResponse
|
Defined in
BaseEntityResponse:11
|
id |
Type : string
|
Decorators :
@ApiProperty()
|
Inherited from
BaseEntityResponse
|
Defined in
BaseEntityResponse:7
|
updatedAt |
Type : number
|
Decorators :
@ApiProperty()
|
Inherited from
BaseEntityResponse
|
Defined in
BaseEntityResponse:15
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsInt, IsNotEmpty, IsOptional, IsString, IsUUID } from 'class-validator';
import { BaseEntityResponse } from '~core/http/response/base-entity.response';
export class OrderResponse extends BaseEntityResponse {
@ApiProperty()
@IsString()
@IsNotEmpty()
purchaseOrderNumber: string;
@ApiPropertyOptional({
type: Number,
example: 1662704035
})
@IsOptional()
@IsInt()
purchasedAt: Date | number | null;
@ApiProperty()
@IsString()
@IsNotEmpty()
productDescription: string;
@ApiProperty()
@IsString()
@IsNotEmpty()
quantity: string;
@ApiPropertyOptional()
@IsOptional()
@IsString()
invoiceNumber: string | null;
@ApiPropertyOptional()
@IsOptional()
@IsString()
packingListNumber: string | null;
@ApiPropertyOptional()
@IsUUID()
creatorId: string | null;
@ApiPropertyOptional()
@IsUUID()
facilityId: string | null;
@ApiPropertyOptional()
@IsUUID()
supplierId: string | null;
}