import { IsBoolean, IsObject, IsOptional } from 'class-validator';

export class UpdatePaymentSettingsDto {
  @IsBoolean()
  enabled!: boolean;

  @IsOptional()
  @IsObject()
  alipay?: Record<string, string>;

  @IsOptional()
  @IsObject()
  wechatpay?: Record<string, string>;
}

export interface PaymentSettingsVo {
  enabled: boolean;
  alipay?: Record<string, string>;
  wechatpay?: Record<string, string>;
}