Update internal-payments.dto.ts

This commit is contained in:
Abubeker Yasin
2026-06-12 12:20:05 +03:00
parent ef7b85c8cb
commit fa6233923c

View File

@@ -30,17 +30,17 @@ export class PaymentEventDto {
@ApiProperty() @IsISO8601() occurredAt!: string; @ApiProperty() @IsISO8601() occurredAt!: string;
@ApiProperty({ enum: PaymentService }) @ApiProperty({ enum: PaymentService })
@IsEnum(PaymentService) @IsEnum(PaymentService)
service!: PaymentService; service!: string;
@ApiProperty() @IsUUID() intentId!: string; @ApiProperty() @IsUUID() intentId!: string;
@ApiProperty({ enum: PaymentReferenceType }) @ApiProperty({ enum: PaymentReferenceType })
@IsEnum(PaymentReferenceType) @IsEnum(PaymentReferenceType)
referenceType!: PaymentReferenceType; referenceType!: string;
@ApiProperty() @IsString() referenceId!: string; @ApiProperty() @IsString() referenceId!: string;
@ApiProperty() @IsString() merchantOrderId!: string; @ApiProperty() @IsString() merchantOrderId!: string;
@ApiProperty({ enum: ProviderMethod }) @ApiProperty({ enum: ProviderMethod })
@IsEnum(ProviderMethod) @IsEnum(ProviderMethod)
provider!: ProviderMethod; provider!: string;
@ApiProperty() @IsInt() @IsPositive() amountMinor!: number; @ApiProperty() @IsInt() @IsPositive() amountMinor!: number;
@ApiProperty() @IsString() currency!: string; @ApiProperty() @IsString() currency!: string;