125 lines
1.8 KiB
TypeScript
125 lines
1.8 KiB
TypeScript
|
|
import { ApiProperty } from '@nestjs/swagger'
|
||
|
|
import { Type } from 'class-transformer'
|
||
|
|
import { IsArray, IsString, ValidateNested } from 'class-validator'
|
||
|
|
|
||
|
|
export class NamaTaxBodyItemDto {
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
sstid: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
vra: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
sstt: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
fee: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
dis: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
mu: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
am: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
consfee: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
bros: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
spro: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export class NamaTaxHeaderDto {
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
ins: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
inp: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
inty: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
unique_tax_code: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
inno: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
tins: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
indatim: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
name: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
tob: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
address: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
mobile: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
bid: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export class NamaTaxRequestDto {
|
||
|
|
@ApiProperty({ type: [NamaTaxBodyItemDto] })
|
||
|
|
@IsArray()
|
||
|
|
@ValidateNested({ each: true })
|
||
|
|
@Type(() => NamaTaxBodyItemDto)
|
||
|
|
body: NamaTaxBodyItemDto[]
|
||
|
|
|
||
|
|
@ApiProperty({ type: [Object] })
|
||
|
|
@IsArray()
|
||
|
|
payment: unknown[]
|
||
|
|
|
||
|
|
@ApiProperty({ type: NamaTaxHeaderDto })
|
||
|
|
@ValidateNested()
|
||
|
|
@Type(() => NamaTaxHeaderDto)
|
||
|
|
header: NamaTaxHeaderDto
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
uuid: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
economic_code: string
|
||
|
|
|
||
|
|
@ApiProperty()
|
||
|
|
@IsString()
|
||
|
|
fiscal_id: string
|
||
|
|
}
|