update sub
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user