mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
23 lines
385 B
TypeScript
23 lines
385 B
TypeScript
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
|
|
} |