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,26 +1,31 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';
export class PlaidItemDto {
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '123', description: 'The public token' })
publicToken: string;
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '123', description: 'The institution ID' })
institutionId: string;
}
export class PlaidWebhookDto {
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '123', description: 'The Plaid item ID' })
itemId: string;
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '123', description: 'The Plaid webhook type' })
webhookType: string;
@IsString()
@IsNotEmpty()
@ApiProperty({ example: '123', description: 'The Plaid webhook code' })
webhookCode: string;
}