You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
713 B

import { ApiProperty } from '@nestjs/swagger'
export class PlanDTO {
@ApiProperty({ type: String })
name: string
@ApiProperty({ type: Number })
monthlyPrice: number
@ApiProperty({ type: Number })
yearlyPrice?: number
@ApiProperty({ type: String })
polarProductId: string
@ApiProperty({ type: Boolean })
isActive: boolean
}
export class PlansResponseDTO extends Array<PlanDTO> {}
export class CheckoutInputDTO {
@ApiProperty({ type: String, required: true })
planName: string
@ApiProperty({ type: String })
discountId?: string
@ApiProperty({ type: Boolean })
isYearly?: boolean
}
export class CheckoutResponseDTO {
@ApiProperty({ type: String })
redirectUrl: string
}