mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 19:58:11 +00:00
payment
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user