import { ApiProperty } from '@nestjs/swagger';

export class WithdrawalResponseDTO {
  @ApiProperty({ description: '提现订单号', example: 'WD1234567890ABCD' })
  orderNo: string;

  @ApiProperty({ description: '提现金额', example: 100 })
  amount: number;

  @ApiProperty({ description: '手续费', example: 1 })
  fee: number;

  @ApiProperty({ description: '实际到账金额', example: 99 })
  netAmount: number;

  @ApiProperty({ description: '订单状态', example: 'FROZEN' })
  status: string;
}

export class WithdrawalListItemDTO {
  @ApiProperty({ description: '提现订单号', example: 'WD1234567890ABCD' })
  orderNo: string;

  @ApiProperty({ description: '提现金额', example: 100 })
  amount: number;

  @ApiProperty({ description: '手续费', example: 1 })
  fee: number;

  @ApiProperty({ description: '实际到账金额', example: 99 })
  netAmount: number;

  @ApiProperty({ description: '目标链', example: 'BSC' })
  chainType: string;

  @ApiProperty({ description: '提现地址', example: '0x1234...' })
  toAddress: string;

  @ApiProperty({ description: '链上交易哈希', nullable: true })
  txHash: string | null;

  @ApiProperty({ description: '订单状态', example: 'CONFIRMED' })
  status: string;

  @ApiProperty({ description: '创建时间' })
  createdAt: string;
}
