import { ApiProperty } from "@nestjs/swagger";
import { IsOptional, IsString } from "class-validator";

export class TelebirrDto {
    @ApiProperty()
    @IsString()
    merch_order_id!: string;


    @IsOptional()
    @IsString()
    payment_order_id!: string;

    @ApiProperty({ default: "SUCCEEDED"})
    @IsString()
    trade_status!: string;

    @IsOptional()
    @IsString()
    trans_id?: string;

    @IsOptional()
    @IsString()
    total_amount?: string;

    @IsOptional()
    @IsString()
    trans_currency?: string;

    @IsOptional()
    @IsString()
    notify_time?: string;

    @IsOptional()
    @IsString()
    trans_end_time?: string;

    @IsOptional()
    @IsString()
    sign!: string;

    @IsOptional()
    @IsString()
    sign_type?: string;


    [key: string]: unknown;
}