update sub

This commit is contained in:
2026-01-05 11:58:46 +03:30
parent 021b6a11cf
commit 31b7dfba7d
3 changed files with 44 additions and 0 deletions
@@ -0,0 +1,14 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsDate } from 'class-validator';
import { Type } from 'class-transformer';
export class UpdateSubscriptionDto {
@ApiProperty({ example: 'sub_1234567890', description: 'Subscription ID' })
@IsString()
subscriptionId!: string;
@ApiProperty({ example: '2025-12-31', description: 'New subscription end date' })
@Type(() => Date)
@IsDate()
subscriptionEndDate!: Date;
}