fix: formatted transaction type

This commit is contained in:
Ahmed Bouhuolia
2025-06-15 15:22:19 +02:00
parent bcae2dae03
commit bbf9ef9bc2
29 changed files with 248 additions and 67 deletions

View File

@@ -1,16 +1,20 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";
import { IsString } from "class-validator";
export class CreateCurrencyDto {
@IsString()
@IsNotEmpty()
@ApiProperty({ example: 'USD', description: 'The currency name' })
currencyName: string;
@IsString()
@IsNotEmpty()
@ApiProperty({ example: 'USD', description: 'The currency code' })
currencyCode: string;
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '$', description: 'The currency sign' })
currencySign: string;
}

View File

@@ -1,12 +1,15 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";
import { IsString } from "class-validator";
export class EditCurrencyDto {
@IsString()
@IsNotEmpty()
@ApiProperty({ example: 'USD', description: 'The currency name' })
currencyName: string;
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '$', description: 'The currency sign' })
currencySign: string;
}