mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
fix: formatted transaction type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user