File

apps/recallassess/recallassess-api/src/api/client/subscription/dto/subscription-preview-request.dto.ts

Index

Properties

Properties

Optional billing_cycle
Type : BillingCycle
Decorators :
@Expose()
@ApiProperty({description: 'Billing cycle for the subscription', enum: BillingCycle, example: undefined, required: false})
@IsOptional()
@IsEnum(BillingCycle)
license_count
Type : number
Decorators :
@Expose()
@ApiProperty({description: 'Desired license count for the package', example: 75})
@IsInt()
@IsPositive()
package_id
Type : number
Decorators :
@Expose()
@ApiProperty({description: 'Target package ID', example: 2})
@IsInt()
@IsPositive()
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsInt, IsOptional, IsPositive } from "class-validator";
import { BillingCycle } from "@prisma/client";
import { Exclude, Expose } from "class-transformer";

@Exclude()
export class SubscriptionPreviewRequestDto {
  @Expose()
  @ApiProperty({ description: "Target package ID", example: 2 })
  @IsInt()
  @IsPositive()
  package_id!: number;

  @Expose()
  @ApiProperty({ description: "Desired license count for the package", example: 75 })
  @IsInt()
  @IsPositive()
  license_count!: number;

  @Expose()
  @ApiProperty({
    description: "Billing cycle for the subscription",
    enum: BillingCycle,
    example: BillingCycle.QUARTERLY,
    required: false,
  })
  @IsOptional()
  @IsEnum(BillingCycle)
  billing_cycle?: BillingCycle;
}

results matching ""

    No results matching ""