import { ApiProperty } from "@nestjs/swagger"
import { IsNotEmpty, IsString } from "class-validator"
import { messageKey } from "src/constants/message-keys"
import { validationMessage } from "src/utils/helpers"

export class CreateStripeSettingsDto {
  @ApiProperty({
    description: "Stripe Secret Key",
    example: "sk_test_...",
  })
  @IsString()
  @IsNotEmpty({
    message: validationMessage(messageKey.field_required, {
      ":field": "stripe_secret_key",
    }),
  })
  stripe_secret_key: string

  @ApiProperty({
    description: "Stripe Publishable Key",
    example: "pk_test_...",
  })
  @IsString()
  @IsNotEmpty({
    message: validationMessage(messageKey.field_required, {
      ":field": "stripe_publishable_key",
    }),
  })
  stripe_publishable_key: string
}
