import { IsEnum, IsOptional, IsString } from "class-validator";

export enum PaymentStatus {
    REQUIRES_ACTION,
    PROCESSING,
    SUCCEEDED,
    FAILED,
    CANCELLED,
    REFUNDED,

}
export class UpdatePaymentStatusDto {
    @IsString()
    orderId!: string;


    @IsEnum(PaymentStatus)
    status!: PaymentStatus

    @IsOptional()
    @IsString()
    failureMessage?: string
}