forked from Yara724/api
20 lines
762 B
TypeScript
20 lines
762 B
TypeScript
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
|
|
/**
|
|
* Body for field expert to request OTP send to one or two parties for expert-initiated IN_PERSON blame.
|
|
* Uses the same SMS flow as /user/send-otp. After this, parties receive SMS with OTP; expert collects and calls verify-party-otps.
|
|
*/
|
|
export class SendPartyOtpsDto {
|
|
@ApiProperty({
|
|
description: "First party phone number (e.g. 09123456789). SMS with OTP will be sent to this number.",
|
|
example: "09123456789",
|
|
})
|
|
firstPartyPhoneNumber: string;
|
|
|
|
@ApiPropertyOptional({
|
|
description: "Second party phone number. Required when blame type is THIRD_PARTY. SMS with OTP will be sent to this number.",
|
|
example: "09187654321",
|
|
})
|
|
secondPartyPhoneNumber?: string;
|
|
}
|