AnhLedger's picture
change amount in payment service
494e1c4
raw
history blame contribute delete
664 Bytes
import { IsNumber, IsOptional, IsString } from 'class-validator';
export class CreatePaymentDto {
@IsNumber()
payment_method: number;
@IsNumber()
vnp_amount: number
@IsString()
vnp_bank_code: string
@IsString()
vnp_bank_tran_no: string
@IsNumber()
vnp_card_type: number
@IsString()
@IsOptional()
vnp_order_info: string //Nội dung giao dịch
@IsString()
@IsOptional()
vnp_paydate: string
@IsString()
@IsOptional()
vnp_response_code: number
@IsString()
@IsOptional()
vnp_transaction_no: string
@IsString()
@IsOptional()
vnp_transaction_status: number
}